interesting lcd.print memory bug
Posted: Wed Jan 06, 2021 9:46 am
I have an interesting bug in my code.
First a little background I'm trying to make a "simple" menu system together with freeRTOS, an encoder and an I2C LCD (16x2).
I have a string array just sitting there in the code doing nothing. Somehow it's printed to the LCD.
Never does Lcd.print make a call to that string.
here below is the sting on line 44 - 46.
Then I thought well let's remove this string and when that bug happens t esp32 crashes with a LoadProhibited fault.
I know what this error means (it means you can't read this bit of memory) so think this is just the way I send the data out to the lcd.
I have uploaded the code to Github https://github.com/sebasdt/BUGS/tree/ma ... ystem_test and here is a video what happens https://youtu.be/LcgOLV3JvBM.
thank you for the help in advance.
First a little background I'm trying to make a "simple" menu system together with freeRTOS, an encoder and an I2C LCD (16x2).
I have a string array just sitting there in the code doing nothing. Somehow it's printed to the LCD.
Never does Lcd.print make a call to that string.
here below is the sting on line 44 - 46.
Code: Select all
const int numOfSettingsBox = 7 ;
String settings[numOfSettingsBox] = {{"Choose Mode:"}, {"Brightness:"}, {"Back"}, {"Brightness:"}, {"Sensitivity"}, {"Reacts on:"}, {"Back"},
};
I know what this error means (it means you can't read this bit of memory) so think this is just the way I send the data out to the lcd.
I have uploaded the code to Github https://github.com/sebasdt/BUGS/tree/ma ... ystem_test and here is a video what happens https://youtu.be/LcgOLV3JvBM.
thank you for the help in advance.