stlink v2 (metal case) with BMP(?swv swo?)

Post Reply
mvcorrea
Posts: 3
Joined: Wed Dec 28, 2016 4:37 pm

stlink v2 (metal case) with BMP(?swv swo?)

Post by mvcorrea » Sat Jan 28, 2017 6:58 am

Hi there,

finished reading all 27 pages of the topic on putting BMP on a stm32f103c8 :) interesting reading
I am a newbie in programming ARM's and just start researching about the flashers!
I ordered a few bluepills, 2 st-links(metal enclosure) and an "CJMCU-Jlink for SWD". And working perfectly.
So I have an spare stlink and would like to try it as an BMP!

But before, a few questions if you don't mind!

When researching, I noticed that SWO/SWV is related to a single wire, and in the original BMP We have an UART (rx/tx) connection.
Its better to have an UART? BMP does have single wire trace capabilities?

so I reach this post: https://developer.mbed.org/forum/bugs-s ... opic/4747/

then I find those:
https://lujji.github.io/blog/stlink-clone-trace/ that enable tracing via a simple patch via PA10.
https://youtu.be/anop2wrf5rU minute 8 (I don't know any Russian but looks the same)

With those I will be able to "printf" messages from source?

From flashing, do I need two images to be burn? Why should I need 2 of them? 0x800000 and 0x8002000
So whats their purpose?

compiling from source with "make PROBE_HOST=stlink" I got
  • mvcorrea@osx% ls -1 src/*.{bin,hex}
    src/blackmagic.bin*
    src/blackmagic_dfu.bin*
    src/blackmagic_dfu.hex
    src/dfu_upgrade.bin*
    src/dfu_upgrade.hex
So what/how to flash those files?

thanks for your help,

regards,

parasole
Posts: 4
Joined: Tue Mar 28, 2017 3:07 am

Re: stlink v2 (metal case) with BMP(?swv swo?)

Post by parasole » Thu May 18, 2017 3:34 pm

In the main topic some where I found the link to one file which turn out my bluepill in to BMP. In my understanding you need to load DFU and then upload the BMP part using DFU mode... however I don't know the exact procedure for second part...

Post Reply