Ways to Crash ESP32/FreeRTOS

the compiler is the one actually allocating the variable in SRAM (on the stack here), you are not giving an address of anything ➜ it knows it's not hardware related

if you were to define it as a pointer to somewhere in memory and pass the address then I would agree

Fair enough. Just to muddy the waters more, shall we move on to std::atomic :grin: :laughing: :sweat_smile: :rofl: :joy:

something like volatile uint8_t *portPtr = &PORTB; would do

let's not hijack @DrDiettrich 's threads, we are out of topic

Agree, sorry, my last post on topic. Let's say it's complicated. See Here starting at 1:31:23.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.