Re:Programming ARM Cortex-M Microcontrollers with Rust
by pantalaimon on Sunday April 09, 2017 @07:53AM
(#14071834)
What is the advantage of blackmagic probe over plain ST-Link?
Genuine question, I've never used the ST-Link for more than flashing the image and some debugging, so what am I missing?
Re:Programming ARM Cortex-M Microcontrollers with Rust
by flowless on Sunday April 09, 2017 @08:22AM
(#14071925)
It implements GDB stub directly so you don't need to run OpenOCD to be able to attach to it from GDB.
Also UART bridge is nice but this might be supported newer in ST-Link too. I haven't used STLink for a while - flashing all the stuff with blackmagic right away.
Re:Programming ARM Cortex-M Microcontrollers with Rust
by rvense on Sunday April 09, 2017 @08:53AM
(#14072031)
Quite sure they do have the UART bridge now, but the black magic probe looks interesting. Thanks for the link.
Re:Programming ARM Cortex-M Microcontrollers with Rust
by foldr on Sunday April 09, 2017 @10:30AM
(#14072464)
I'm curious about the uses of the UART bridge. I've only used small chips with few pins to spare, so I've always used RTT or semihosting for logging. Is there an advantage to doing that using the UART instead? Or is the UART bridge for something else entirely?
After this is done you'll get /dev/ttyACM0 and ACM1 for GDB interface and UART bridge. From GDB you can connect to it directly with 'target extended-remote /dev/ttyACM0' (no need for OpenOCD middleware).
https://wiki.base48.cz/STM32#Running_BMP_on_Discovery_boards