EZdenki / STM32F103-CMSIS-Setup

Procedure to install CMSIS-based command line toolchain to program STM32F103 (Blue Pill) under Linux or Windows
0 stars 0 forks source link

Running CMSIS-Blinky on a Waveshare XNUCLEO STM32F103RB Board #1

Open Wifiunterputzdose opened 2 weeks ago

Wifiunterputzdose commented 2 weeks ago

Hello, thanks for this great HowTo described here (https://github.com/ezdenki/STM32F103-CMSIS-Setup)

Is it possible to get it run on a XNUCLEO STM32 Board? From this site (https://www.waveshare.com/nucleo-f103rb.htm) I know that the board has its ST-Link/V2 on board.

If I type in the command promt make clean && make I get thje following error: No Debug probe detected

grafik

Can you help me out here to get the blinky running? Later I will change the port pin setting in the main.file

EZdenki commented 2 weeks ago

Hi! Thanks for checking out my site. From the start, I should mention that I have only used clone ST-Link programmers with bare chips. Though it's hard to believe that that would be a factor.

Regarding your error, it looks like the STM32_Programmer_CLI.exe program is not seeing your board. So the first step would be to confirm that your hardware is properly connected and working. Please try programming the XNUCLEO board using the normal STM32 toolchain. For example, try to use the STM32CubeProgrammer GUI program to upload the .elf file manually. If that doesn't work, then you might have a USB cable that only passes power and no data. Also, I notice that your XNUCLEO board has some jumpers. That might be something to look into if the above suggestions fail. Of course another idea would be to compile and upload a simple program using the normal STM32CubeMX environment, just as a sanity check.