petronel wrote:Probably I was expecting Download from and Upload to .. it makes more sense to me.

I have 2 other questions now:

1. After a sketch is uploaded and the STM32 is resetting, the Serial connection drop for a second, and I have to close/open the Serial Monitor. Is that normal ?

2. Uploading a sketch that compile ok but crash when running (like my test with RFID) make the DFU / com disappear and getting again "Unknown device". I can still reset the STM32 and upload an working sketch.

1. Yes this is normal. The Bootloader only does uploading it doesnt handle the Serial USB (thats handled inside the sketch binary)

If you have SWD debugger hardware you can get GDB to tell you where its crashed, otherwise you'll need to just need to add code in line by line and keep trying things, and see which think you add in or which function you call that makes it crash.

RogerClark wrote:You can make one from another Blue Pill, by Flashing the Blackmagic probe to it (see the Blackmagic probe thread)

You can also get STLink clones really cheaply, but I think you'd need to use OpenOCD to use them

Either way, using GDB from the command line takes a bit of getting used to.

Otherwise you'd need to use Eclipse + the Arduino plugin, to get a nice UI for debugging.

Its probably easier just to comment out code and use Serial.print to work out whats going wrong

I recently made a Black magic probe, and was wondering: isn't it time to consolidate the info about it on a wiki page?
There is the blackmagic probe thread, but for the nrf51822 you published some other binaries on your github with extra support, are those better than what can be found in the thread on this forum? Also you had bin files for a maple mini, a bluepill (and also a generic version i think?)
And the st link part was also annoying >_<. I had an st link with outdated firmware, so figuring out how to get it up to date, and which tool i had to use to get the black magic probe file loaded on my maple mini also took some time >_<.

I think the master Blackmagic probe repo now has good support for the nRF51 but I think when Rick took his original fork of the BMP the nRF51 support was minimal

Although I still have my modified fork of the BMP based on Ricks fork + my changes for nRF51, I'm now trying to migrate back to the official master repo by Blacksphere as its loads of commits and bug fixes ahead of my fork (and also ahead of Ricks fork)

The problem is that I can't simply merge from the Blacksphere master as the API structure of the "platform" code has changed.

So my long term plan is to remake Rick's version for the BluePill and send a PR to add it to the Blacksphere master repo

However, I've been too busy recently with the official STM32 core, and also some urgent commercial work that I had to get to grips with.

We could add a wiki page for the current state of play, mainly linking to Rick's repo for use on the STM32, we can always update it when I finally get around to re-making the BluePill platform version etc