2022-01-25 04:30 PM
Hi, I was developing I2C code on the NUCLEO-F410RB to work with the BH1750 light sensor from adafruit when I came across multiple errors in debug mode. The errors can be seen in the "ErrorMessages" attached photo.
The "result" mentioned in the error messages can be seen in the "BH1750_ReadLight" method within the bh1750.c file attached below.
The error can be replicated with/without the BH1750 sensor. I have attached the project "LightSensor" in its entirety for ease of replication.
I saw a similar question asked on the web where the solution to this issue was modifying the GCC compiler optimization which did not work for me.
Some clarification would be greatly appreciated.
Thanks,
Brandon