[TriEmbed] ESP8266 Programming tip
Pete Soper
pete at soper.us
Tue Jan 26 09:19:54 CST 2021
Does ESP-12E support JTAG debugging? It might be interesting to figure
out what the crash is about (maybe there isn't actually a task scheduler
present and if you don't "yield" back you've violated the API
contract?). But you've stuck with the pragmatic approach, John. Thanks
for the tip.
Getting SparkFun "Micromod" boards with ESP32 and ESP8266 (no idea what
flavors) and the "All the Pins" carrier board today. But these go on the
shelf as I wait for the RP2040 Micromod board, and my stack is pushed
anyway. Particle Land, here I come. :-)
-Pete
On 1/26/21 10:03 AM, John Vaughters via TriEmbed wrote:
> In my playing around with the ESP-12e's that I have, I found something that may save someone some time. Using the Ticker library to schedule a task, I quickly found out that the task better be quick or it will crash the program. To define quick, my task was maybe 25ms, which was enough to crash the program. To get around this I found on the web a quick tip that made alot of sense. Just use the Ticker task to flip a bool and then have an if statement run the task and reset the bool.
>
> It's not what I consider a great programming technique, but I consider it a valid workaround on the limitation. And it still beats running the task on every loop cycle.
>
> I am certainly open to other suggestions, but it works quite well and I will be sticking with it for now.
>
> John Vaughters
>
> _______________________________________________
> Triangle, NC Embedded Computing mailing list
>
> To post message: TriEmbed at triembed.org
> List info: http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
> TriEmbed web site: http://TriEmbed.org
> To unsubscribe, click link and send a blank message: mailto:unsubscribe-TriEmbed at bitser.net?subject=unsubscribe
>
More information about the TriEmbed
mailing list