I am working on a sensor project where I want to retrieve data from the sensor via i2c. (And send it out via BT)
The code runs perfectly well in a super loop on my EFR32BG1B based on one of the example codes, but when I port the same code to a Micrium example (thermometer-rtos) nothing seems to work.
Are there any examples of running i2c on Micrium, preferably with an EFR32BG1B?
Hi Enrst, I suggest posting your question on the Micrium forum (https://www.micrium.com/forums/) and elaborate on "nothing seems to work" (i.e. no traffic on I2C pins, emlib function call not returning, can't hit breakpoint in interrupt handler, etc).
will try that and let know here the result.
The rather disappointing result was that the guys in the micrium forum suggest me to post the question,...right, .... here, in this forum.
Apparently nobody knows. Therefore again, are there any examples, or can we make one?
Sorry for the confusion! We'll keep the conversation on this forum going forward.
did you find any examples of running i2c on Micrium ?
and is the micrium os can worked with i2c
I was able to rebuild the example (temperature-sensor-rtos) to use the onboard si7021 via I2C and got that to work.
If using the devboard make sure that you define the HAL_I2CSENSOR_ENABLE in Hal-config.h, which takes care of enabling the right clocks and pins (The HFPERF clock en I2C0 clock to be precise).
Will take it from here with my own I2C sensor and see if that works as well.
Also looking for an example of I2C Micrium OS, but for EFM32GG11.
Anybody can share it?