Markus Gritsch wrote:It probably depends on whether the code which is executed is already in the instruction cache or must be fetched from the flash memory.
Ah hah! Thanks for that.
After I posted that last message, I started getting totally random results on the first led again. However, after adding the ICACHE_FLASH_ATTR to the timing critical method things started working again... mostly.
I still find it odd that it's only the very first led that shows an issue.