admin管理员组

文章数量:1388105

I am starting my first step in STM programming. I have nucleo dev board with cortex M0 processor. I written by code for printing hello world. As M0 doenst have SWV we have to use openOCD debugging setup to view the PRINTF result in the console. So initially i build and debugged the code successfully and the result got printed. Next time when I tried to build and debug the at the time of debugging i was encountering this error. I am attaching the snippet of the complete error detail and the code written. Detailed error msg

Code snippet

I tried flashing it without open OCD instead used STLINK Flash which successfully flashed the code and debugged it. Tried reinstalling the software

本文标签: debugginginit mode failed (unable to connect to the target)Stack Overflow