Deep Dive w/Scott: ESP32-S2 Sleep! #adafruit
I’m sponsored by Adafruit to work on CircuitPython. Support them, and by extension me, by purchasing hardware from https://adafruit.com
Chat with me and lot of others on the Adafruit Discord at https://adafru.it/discord.
Deep Dive happens every week. Normally Fridays at 2pm Pacific but occasionally shifted to Thursday at 2pm. Typically goes for two hours or more. Questions are welcome.
Next week is on Friday too.
0:00 Getting going and hellos
7:00 - Distributors in India
08:06 Housekeeping
12:45 Plan
18:06 debugging process for SAMD21
20:28 power monitoring tools
23:01 debugging the hang
24:00 git submodule update --init ../..
27:04 git push --force-with-lease
30:33 ESP32-S2 tweaks - Beta 2 is out w/ preliminary sleep support
33:00 Using print on control-c when half-hung ( rtos/usb running, but CP is hung )
34:56 RTOS …
37:20 UF2 on nrf52840
38:00 Back to the tls debugging code
43:00 Nina firmware - adafruit branch
47:00 Print a backtrace code ( for each thread )
49:49 Lots of Sleep
50:00 shared-bindings ( reason codes for waking up / restarting )
1:02:00 Recommending starting projects with python
1:16:00 Question about External Interrupt - ( next week ? )
1:19:00 watching Joulescope - ( a hang has occurred )
1:31:28 another crash - while in pretend deep sleep ( safe mode crash )
1:35:32 back to boot loader ( boot & reset )
1:37:49 rebuild after adding backtrace in sleep_tweaks branch
1:41:00 b.r.b…
1:47:52 reset and back in pretend deep sleep....
1:53:41 save to file during fake deep sleep - needed to be tested
1:55:46 perhaps the display is not re-initialized ?? investigating…
1:56:30 main.c dive ( fix board display while in deep sleep )
2:01:52 wrap up …...
Links:
First sleep implementation: https://github.com/adafruit/circuitpython/pull/3767
Json parsing speedup is merged in
No task switching during flash erase: https://github.com/adafruit/circuitpython/pull/3780
Switch to nina-fw certs: https://github.com/adafruit/circuitpython/pull/3775
Socket timeout and no broken socket error: https://github.com/adafruit/circuitpython/pull/3776
Exit earlier from closed sockets: https://github.com/adafruit/circuitpython/pull/3759
Visit the Adafruit shop online - http://www.adafruit.com
-----------------------------------------
LIVE CHAT IS HERE! http://adafru.it/discord
Adafruit on Instagram: https://www.instagram.com/adafruit
Subscribe to Adafruit on YouTube: http://adafru.it/subscribe
New tutorials on the Adafruit Learning System: http://learn.adafruit.com/
-----------------------------------------