MicroPython source-level debugging on STM32C071 with only 24 KB RAM
We recently added support for STM32C071 to our free, MIT-licensed MicroPython Debugger for VS Code.
The interesting part is that the STM32C071 has only 24 KB of RAM and 128 KB of Flash, yet you can still use source-level debugging directly from VS Code.
Set a breakpoint in your MicroPython source, press F5, and debug the code running on the actual STM32 MCU.
The debugger supports:
- Breakpoints
- Step Over / Step Into / Step Out
- Variable inspection
- Watch
- Call Stack
- Break on exceptions
- Continue / Pause
GitHub: https://github.com/ghi-electronics/micropython-vsc-extension
VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=ghielectronics.micropython-debugger
For testing, I used an STM32C071KBU6 running MicroPython with SPI and PWM on a DUELink Holiday Tree: Holiday Tree | DUELink
Here is example source: micropython-vsc-extension/examples/stm32c07/chrismastree_example at main · ghi-electronics/micropython-vsc-extension
I'm interested in hearing from other STM32 + MicroPython users — what STM32 device are you using, and what would you like to see supported?
