Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I2C in the bootloader #97

Open
CatalinPopovici opened this issue Mar 16, 2021 · 2 comments
Open

I2C in the bootloader #97

CatalinPopovici opened this issue Mar 16, 2021 · 2 comments

Comments

@CatalinPopovici
Copy link

Hello, I am trying to implement Bitbang I2C protocol in the bootloader. I was not able to find any code that would work for any bootloader. After that, I have found an Arduino Bitbang I2C library which I have successfully compiled to the bootloader using Arduino IDE and was able to use the lib with Arduino IDE code but when I tried to implement the source code in the bootloader, I realized that it uses Linux API’s (which the bootloader compiler does not support)

@dhalbert
Copy link
Collaborator

Any low-level library like this will vary by the chip family. Which chip family are you targeting?

Is this the library you are using? https://www.arduino.cc/reference/en/libraries/bitbang_i2c/. It supports AVR-style chips, but you are probably targeting something else.

@CatalinPopovici
Copy link
Author

CatalinPopovici commented Mar 16, 2021

Hello Dan, that is indeed the library I was trying to implement. I am working with Adafruit ItsyBitsy M4 Express, Cortex-M processor family.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants