Skip to main content
pbenj
Associate
October 25, 2018
Question

Create Black-magic-probe with STM32

  • October 25, 2018
  • 7 replies
  • 3257 views

Hello,

I am having trouble into using Black-magic-probe with my stm32f103c8.

First of all I tried this tutorial : https://medium.com/@paramaggarwal/converting-an-stm32f103-board-to-a-black-magic-probe-c013cf2cc38c

to create my own black-magic-probe, but it didn't work.

I found some binaries files in this git : https://github.com/rogerclarkmelbourne/blackmagic_archive_version/tree/master/binaries

I have succeed to upload one in my stm32 this way :

and it seems to work, I can use gdb, until I make this command : monitor swdp_scan

It's been 2 days now that I am on this error, I absolutely Don't understand what I am doing wrong.

If you have any idea you would help me a lot!

Thank you!

    This topic has been closed for replies.

    7 replies

    Andrew Neil
    Super User
    October 25, 2018

    Surely, you should be asking Param Aggarwal about this - he's the one that wrote it!

    His website is given (twice) in the article, and his various contact details are there.

    Or you could just get a Nucleo board - which has a free ST-Link built in ...

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    pbenj
    pbenjAuthor
    Associate
    October 25, 2018

    I tried to send him an email, but it doesn't work, maybe his email doesn't exist anymore.

    Do you think I coul program a nrf51822 with a nucleo board?

    Andrew Neil
    Super User
    October 25, 2018

    People have reported managing to get such a Hack to work - but why bother?

    Nordic make their own low-cost dev boards with a built-in J-Link - I would strongly suggest that you get one of those rather than faff about trying to get some hack to work ...

    So I guess this is also you: https://devzone.nordicsemi.com/f/nordic-q-a/39745/stm32f103c8tb-nrf51822-connection-and-programming/154101#154101 ?

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    pbenj
    pbenjAuthor
    Associate
    October 25, 2018

    You're right, that's me.

    which one do you recommend me?

    Andrew Neil
    Super User
    October 25, 2018

    As for any development project, I recommend that you go to the manufacturer's product page, and see what tools they recommend ...

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Uwe Bonnes
    Chief
    October 25, 2018

    https://github.com/blacksphere/blackmagic/tree/master/src/platforms/swlink describes the setup for the minimal STM32F103 boards and the Stlink on a STM8S Discovery.

    Andrew Neil
    Super User
    October 25, 2018
    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.