I get the following message on the serial monitor "VMDPV_1|1_".. and nothing else executes. The strange thing is, that this happens immediately at the start of the program, even if I change code that is executing at a much later time, so it's not related to the details of the code itself.
For example, in the loop(), which begins ~30 seconds after setup, the program won't execute with this code:
Code: Select all
void loop()
{
Result result;
int eventId = _TFT.ProcessEvents();
if (eventId == INTERRUPT_TIMER)
{
_TFT.crashtest(testTFT); //<---- notice this is a boolean variable argument
testTFT = !testTFT;
}
else if (eventId == UNKNOWN_EVENT)
{
Serial.println(F("Main Menu - Unexpected Event."));
}
delay(150);
}
Code: Select all
void loop()
{
Result result;
int eventId = _TFT.ProcessEvents();
if (eventId == INTERRUPT_TIMER)
{
_TFT.crashtest(true);//<---- fixed variable as true
testTFT = !testTFT;
}
else if (eventId == UNKNOWN_EVENT)
{
Serial.println(F("Main Menu - Unexpected Event."));
}
delay(150);
}
It's as if there is some sort of memory alignment issue.. but I have no idea how to change or diagnose that using the Visual Micro and Arduino tools. I am using the ESP32 Dev Module project settings, tweaked for D2WD in Visual Micro. Perhaps there is a setting there that can fix this?
Any suggestions?
Thanks