Closed esden closed 6 years ago
IMHO "STM32F2/F4/F7" fine for now or STM32DFx MCU Family or so..
The problem came up as some STM32F4 register, needed for setting up the memory map, can not be accessed without halting the target. At the moment, probe happens with the target not halted. So probe and memory map setup was split. However L0 and F7 can not be probed at all without halting the target. So I strongly proposed to halt all target when probing. Then we can set up again the F4 and other dual bank memory maps with probe again and use the right device string.
The #349 PR fixes the issue. Closing.
https://github.com/blacksphere/blackmagic/blob/48d232807ee6096bfa839d91b1708252db0e1a59/src/target/stm32f4.c#L198
Scanning a target that is not an STM32F4 will lead to a misleading message. This driver is not just STM32F4 any more. Scanning STM32F7 or STM32F2 targets might lead to the following message:
Even if the target is an F2 or an F7. This is quite misleading. The target type strings are being set correctly later during
attach
.I think either the generic driver string should be changed to
STM32F2/F4/F7
or the correct target name associated with the ID should be set at scan and not later during attach.Let me know what you think. :)