I2C And BLE Nano - Question - Mbed
Maybe your like
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.
10 years, 6 months ago.
I2C and BLE nano
Hi,
I have connected a BLE nano to a LPC2368 via I2C (pulled up with 10k resistors).
The BLE nano is the master. It sends the address of the slave (0x44), the slave reply with an ACK. The master then send the data byte, the slave reply with an ACK, but then the SCL and SDA line stays low and are never freed.
It looks like the problem doesn't come from the slave, as I have successfully managed to communicate between that slave and another LPC2368 as master.
"Code running on the BLE nano (master)
I2C i2c_port(P0_10,P0_8); ... while(1) { char switch_word='B'; i2c_port.write(0x44, &switch_word, 1); }"Code running on the slave
while(1) { int i = slave.receive(); if(i == I2CSlave::WriteAddressed) { word_back = slave.read(); } }I am almost sure that the problem is linked to the mbed library, as my BLE nano was communicating perfectly fine with another board by programming it with Arduino (the board works with both Arduino and mbed).
Does anyone have any idea ?
Regards
Tag » Arduino Nano Ble I2c
-
Connecting Two Nano 33 BLE Sense Boards Through I2C
-
How To Read External I2C From Arduino Nano 33 BLE Board?
-
Can We Use Nano BLE 33 Sense As I2C Master? - Arduino Forum
-
Unable To Send Data Via I2C In Nano BLE 33 And BlE Sense Board
-
Nano BLE 33: Softwire I2C Not Working - Arduino Forum
-
Nano 33 Ble (non-sense) External I2c Scan Isn't Working
-
Advice: I2C Communication With Internal Sensors BLE / BLE Sense
-
Nano 33 BLE Sense Cheat Sheet - Arduino Documentation
-
Problem Initializing I2C On Arduino Nano 33 BLE - Nordic DevZone
-
Measure LSM9DS1 Sensor Outputs Using Nano 33 BLE Sense
-
Arduino Nano 33 BLE Sense Classification Result On OLED I2C Display
-
I2C – ITP Physical Computing
-
I2C Pins On Arduino Nano 33 BLE Sense - Pinterest