You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to initiate an I2C connection with my custom board following the documentation. I can blink the LED and monitor the serial output to see my logs.
However, when I start adding the I2C code, there are errors:
With SERCOM1 or SERCOM3:
I can flash the device and see my LED blinking; however, I get an error in my logs: "invalid clock pin," which is, I believe, coming from this part of the code.
With SERCOM0 or SERCOM2:
When flashing the device, it apparently succeeds, but nothing is happening on my board - no LED flashing and no serial output to monitor. It is not even appearing. Using GDB, I can get the information that there has been a HardFault.
Here are some pieces of information about the board I am trying to add. It uses ATSAMD21E18A, which is already implemented. This is the PR that adds my board - CryptoAuth Trust Platform.
I have been trying for two weeks now to make my board work with TinyGo without success and am a bit desperate right now. Thanks in advance for your help.
@hugolgst have you tried looking into which SERCOMs are used for I2C (and possibly other peripherals) in other board support packages? You need to use the right SERCOM and can't re-use them for both I2C and UART for example (so if you use SERCOM0 for UART, you can't use it again for I2C).
deadprogram
changed the title
cannot initiate I2C connection – atsamd21e18a
custom board: cannot initiate I2C connection – atsamd21e18a
May 12, 2024
Hello,
I am trying to initiate an I2C connection with my custom board following the documentation. I can blink the LED and monitor the serial output to see my logs.
However, when I start adding the I2C code, there are errors:
With SERCOM1 or SERCOM3:
I can flash the device and see my LED blinking; however, I get an error in my logs: "invalid clock pin," which is, I believe, coming from this part of the code.
With SERCOM0 or SERCOM2:
When flashing the device, it apparently succeeds, but nothing is happening on my board - no LED flashing and no serial output to monitor. It is not even appearing. Using GDB, I can get the information that there has been a HardFault.
Here are some pieces of information about the board I am trying to add. It uses ATSAMD21E18A, which is already implemented. This is the PR that adds my board - CryptoAuth Trust Platform.
I have been trying for two weeks now to make my board work with TinyGo without success and am a bit desperate right now. Thanks in advance for your help.
Some additional information:
–hugo
The text was updated successfully, but these errors were encountered: