cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure I2C connection in BLE Mesh

EBozb
Associate II

I want to create a mesh in which every node (BlueNRG 2) share some sensor measurements to each other. The measurements should be transmitted over an I2C connection from a sensor module. My Problem is now that I can't configure a working I2C connection because the device can't be found at the sensor module. I'm just copying the I2C slave polling project for this purpose. The I2C slave polling project works fine when I exceute it allone without the mesh stuff in TrueStudio. But when I compile it in Keil with the mesh project (version 1.007) the problem appears again.

13 REPLIES 13

The I2C slave polling sample project in DK works well for me,

with the followed scenario:

0690X000009Z4V5QAK.png

Hello Winfred,

thank you for checking, could you please specify which IDE you used to build the example?

With Truestudio I am having the same issue as Ertugrul, the slave doesn't seem to write to the TxFIFO. I also tried compiling the project with Keil MDK lite, which worked - until I activated the license for STM32 devices (http://www2.keil.com/stmicroelectronics-stm32/mdk) and rebuilt the project. After that, the slave stopped responding to master requests entirely. Apparently the license changed the toolchain, could you tell me how to set the right one? I cannot keep using the MDK-ARM lite edition for my application, since the binary becomes too big. I have been using Truestudio and Keil only to build the projects, and the BlueNRG-1_2 Flasher Utility to flash the binaries to the boards.

I've now compiled and flashed the original firmware for the mesh. Here I got a similar problem. It doesn't work as it should and as shown in the video [https://www.youtube.com/watch?v=8ocXQmQa-dA&t=103s] or [https://www.youtube.com/watch?v=MV5M5AHMuU0]. In the app, if there is more than one node, just the last added one is being recognized. The first added node is not recognized and the led's cannot be controlled.  So I guess I/we have some settings errors with the IDE's. I've just downloaded the Keil compiler like @Stevenj from the mentioned link. Furthermore I've checked all optimization levels with Keil. Please tell me your setting or if there is something else I can modify in the IDE.

@StevenJ​ 

Both IAR EWARM and Keil MDK-ARM work for me. I did not test TrueStudio, but i am confident that it shall work as well.

My uVision is V5.24.2 and MDK-ARM version is 5.24.1, for your information. I am not aware of the IDE version difference that can cause the problem that you mentioned.

Thank you.