compuphase / Black-Magic-Probe-Book

A guide plus associated utilities for the Black Magic Probe.
Apache License 2.0
147 stars 26 forks source link

Truncate MCU name for STM devices #12

Closed sidprice closed 4 years ago

sidprice commented 4 years ago

Ensure the MCU name is always "STM32Fx" where "x" is the first digit of the device name from BMP.

sidprice commented 4 years ago

@compuphase This PR fixes the problem I noted in issue #11

compuphase commented 4 years ago

@sidprice I implemented your idea slightly differently in commit 0d8d0d2a284faf6c8f9c1653785562bd5b7a81e4. Instead of making a special case for STM32 microcontrollers, the names in the MCU list of s script can now have a wildcard. For example, the script for all STM32F4xxx microcontrollers now lists "STM32F4*" as the match target.

sidprice commented 4 years ago

Nice generic solution ... I will try it :)

sidprice commented 4 years ago

THis patch seems to work ... thank you.