How connect Pixracer with Black Magic Probe

Here is how to connect your Pixracer with Black Magic Probe.

You can see images with proper wiring.

Once when you are done with wiring you can execute commands in Linux to see if everything is working. 
target extended-remote /dev/ttyACM0
monitor tpwr enable
monitor swdp_scan

Command monitor tpwr enable will power up your pixracer, and monitor swdp_scan will search for the microcontroller.

The result is shown in the image below.

To see more commands use help command.

monitor help


  1. Good day, can you give me pls some info about the correct program i can run under windowsill 10 coz after many trials i cannot connect the blackmagic magic probe to the target.. ive the indication NO Target found.

    1. These instructions are for Linux. The difference is in serial port. Here is ttyACM0
      In your case, it will be one of the COM ports. You should check what COM port you get end then instead of ttyACM0 use something like this:
      target extended-remote\\.\COM13

      But check the number of your com port first after you connect BMP.

    2. Good day, i don't have any problem with the com port, but after i sent the following command ( monitor swdp_scan) ive the line no target found.. it seems cannot find the stm32 chip.

    3. Check if you power up your board where is STM32.
      Check if SWDIO and SWCLK pins are properly connected. If after that is not working then could be a problem with the chip.

      Which one black magic probe do you have? You can try with ST-LINK and ST Utility software at windows to see if you can connect to your STM32 MCU.

    4. Good day, with st link v2 with the utility i don't have any problem.
      I've the problem only with the blackmagic magic probe v2

    5. Do you get voltage after monitor swdp_scan?

  2. yes i got the voltage

    1. Can you copy/paste the message you get when you do
      mon att 1

    2. Good day, sorry for la reply, i was able to make it work.
      Is it possible flash .bin file instead . elf.?
      if yes what i must type for flash the .bin

    3. Good day, ive already solved the issue about connect the probe to pixracer, but i found out that maybe ive wrong one command and now I cannot flash the bootloader..
      How i can unlock now the memory for flash it

    4. If you have bricked your STM you can change the jumper on BOOT pins to make it boot from bootloader address. Then you will be able to erase it.
      I think BMP doesn't have support to flash bin. Only elf or hex.


Post a Comment

Popular posts from this blog

AUTOSAR and CRC calculation

Flashing/debugging/running code at external memory in the memory-mapped mode

Debugging EK-TM4C123GXL with Visual Studio Code on Linux