2020-04-22 08:08 AM
We use STM32 microcontrollers pretty often, and I took stm32g030f6 for some specific project. I used STLink-2 + openocd before, but I think I cannot use it on that particular one. So I take JLink but I don't have much experience JLink.
I spent whole day troubleshooting SPI interface, and suddenly I found that I have no MOSI output while debugger attached and working, but I have it fine, when I disconnect JLink. I measured, there no connection between JLINK pins and SPI pins. I never seen something like that with STM32 microcontrollers.
I run JLINK with following command: JLinkGDBServer -device STM32G030F6 -if SWD -port 3333 -nosinglerun