Re-Generating with CubeMX sets the project to ST-LinkV2 instead of ST-LinkV3. It will not recover until I delete the generated folders. Initially CubeMX generates correctly.
I am working with IAR EWARM 9.10.1 and STM32CubeMX 6.2.1 on a NUCLEO-H743ZI2.
To reproduce:
- Create NUCLEO-H743ZI2 project in STM32CubeMX
- Generate it
- Start IAR
- Download to target (compile & flash succeed)
- Change something in IAR, e.g. add a source file to project tree.
- Save project.
- Download to target (compile & flash succeed)
- Go to STM32CubeMX and generate again.
- HERE my git tool shows the change from ST-LinkV3 to ST-LinkV2
- Go to IAR
- Download to target (will compile, but fail to flash, as it is now falsely set to ST-Link V2)
STM32CubeMX generation falsely changes the EWARM/<projectname>.ewd file, when working with modified EWARM project files.
<option>
<name>CCSTLinkProbeList</name>
<version>1</version>
<state>3</state> //this needs to stay at 3 for the NUCLEO-H743ZI2, but gets changed to 2
</option>
3 -> ST-Link V3
2 -> ST-Link V2
I am happy to help, as this is really annoying for my daily work.
