In this post, we will cover the essential functionality in CLI mode which is extremely useful in cases when we don’t have the luxury of using a full-featured development environment.
For anyone trying to go through this article and test by themselves with a different platform and board (in my case Nucleo F401RE with a STM32F4xxx MCU). There is one important thing to remember when you are testing the “debug” command, specify the environment aswell!
The command in the article I’m refering to is:
$ pio debug --interface=gdb -x .pioinit
In my case, working with the STM32 platform, it chooses the stm32f0xxx by default (while I was working on a stm32f4xxx) which leads to an unexpected idcode! So, to save you from a bit of frustration, remember to specify the environment aswell, as such:
$ pio debug --interface=gdb -x .pioinit -e nucleo_f401re
1 Like