Error: No J-Link device found.
已回答
I am trying to setup an STM32 project and followed the instructions here https://www.jetbrains.com/help/clion/openocd-support.html
- GNU Tools Arm Embedded/9 2019-q4-major
- OpenOCD-20200503-0.10.0
- ST-Link/V2 driver (i am using Windows)
however compilation was successful, when i run OCD, i got
Error: No J-Link device found.
what did I miss?
请先登录再写评论。
Hello!
It seems in your OpenOCD Download & Run configuration you selected the J-Link board config file while you have the ST-Link board. Please select the appropriate board config file.
Hi Anna
Thank for replying, I installed ST-Link just because the web instructions said it is necessary. I am, in fact, using a USB type SWD debug adapter to connect to my target, called CMSIS-DAP. this one worked perfectly in Keil environment.
It's appreciated if you can give me any suggestion on what board config should i use? there are tens of board types, i have no idea what to use. Maybe i shouldn't use openOCD?
What target do you use?
I use STM32F103ZET6
In case of cmsis-dap and stm32 you need to write the config file on your own (you can use configs for some Atmel Xplained board and the ST chip as a basis).
Note that when setting up the board config file, you can click Assist and then click "Copy to Project & Use" in order to adjust the board config file to your needs: the selected file will be copied into your project tree, and you'll be able to open it in the editor and modify as required.
OK, it is good to know CLion can handle this setup :)
I will try your advice and learn about the way how to write openOCD.
thank you again Anna.
To be honest, we haven't tested this setup, but it might work.
It looks like your flasher is able to connect to the chip successfully, and fails when actual flashing is done.
You may try to play with reset settings.
Here is the documentation
http://openocd.org/doc/html/Reset-Configuration.html