Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 1 month ago.
BLE Nano I2C on P0_10
Hi,
I have a project where an nRF51822 is an I2C master and communicates with an Atmega328. I have communication working over I2C just fine using various pins. However, when attempting to use P0_10 as SDA it stops working.
I've tried this on a BLE Nano v1.5 board and on a BLE400 dev board. Both boards function correctly when using other pins for SDA, but when using P0_10, which is the specified SDA pin, it no longer works.
I've programmed these boards using Arduino IDE using P0_10 as my SDA and that works just fine, so it appears to be an issue related to mbed but I have no idea why this would be.
This is an issue because I have boards on order that use this pin as my SDA and will have to manually fix them if the error cannot be fixed in software.
Thanks, Adam
1 Answer
6 years, 1 month ago.
Hi Adam, I tried a I2C hello world with LM75BD (https://os.mbed.com/teams/mbed_example/code/I2C_HelloWorld/) with NRF52_DK and it worked as expected.
I haven't used the BLE Nano device, but can you please make sure if you are only enabling I2C mode on this device and UART/SPI features are disabled? The reason I ask this question is because on BLE Nano, the same pins can be multiplexed for I2C/SPI or UART interface.
Thanks,
Naveen
Team mbed.