Deep Dive w/Scott: ESP BLE Debugging & Fun Friday Hacking #adafruit
Join Scott as he continues to debug BLE on ESP chips, gives up and does some fun coding and also answers questions.
0:00 Getting started and hellos
3:00 Welcome to Deep Dive w/Scott
5:30 Lego tangent.. Rebrickable https://rebrickable.com/
9:40 Plan for the day (BLE progress, StemaG0/new build system, github copilot debug logging trace analysis)
15:53 how did the Metro M7 RT1011 with SWD+TRACE project go? What tracing tools did it work with
16:43 OrbTrace min
19:30 Renode https://renode.io/
20:30 modification to Renode to trace circuitpython
21:10 Return to espressif BLE work
22:20 Espressif dev board with dual USB esp 32-S3 8MB
24:00 Pairing with phone to get time service
25:05 BLE demo code.py
28:01 experiment with control-c / doesn't stay connected on phone
30:40 see what happens after power cycle
32:30 describing bonding / remembering
33:13 Adapter.c - consider 'forgetting connection'.
34:02 github esp-idf/examples/bluetooth/nimble/bleprph/tutorial/bleprph_walkthrough.md
37:56 ble_store_util_delete_peer might be it?
38:42 search github - find ble_store.h
41:00 looking at the lsp-log files
47:17 local identy resolving key (irk) and understanding security keys ( allaboutcircuits.com )
1:00:20 getting ready to create a PR / git work, including rebase
1:04:00 review CP BLE issues
1:05:08 look at potential PR using sublime merge / commit amend
1:11:30 prepare to switch to Stema G0 board
1:16:48 tried to connect to STM32G030F6 with JLinkGDBServer
1:19:46 one revision works, the other doesn't
1;21:00 - wrap up the PR https://github.com/adafruit/circuitpython/pull/9289
1:23:23 looking up the jaycarlson.net cheapest Arm M0
1:24:35 st.com value chip
1:26:22 using the build system
1:28:00 connect gdb to chip via openocd
1:30:00 debug the elf file using svd_load
1:31:30 use the svd command in gdb to view the SCB ( system control block )
1:32:32 generated vector table
1:33:40 use SCR to determine the actual vector used
1:42:50 now we get to hard fault in main - debug the linker scripts
1:59:00 copilot proposed fix to build.py, but it's not right?
2:06:00 compare-sections seemed ok
2:10:19 push and wrap up
2:11:27 should be around next week
Visit the Adafruit shop online - http://www.adafruit.com
-----------------------------------------
LIVE CHAT IS HERE! http://adafru.it/discord
Subscribe to Adafruit on YouTube: http://adafru.it/subscribe
New tutorials on the Adafruit Learning System: http://learn.adafruit.com/
-----------------------------------------