2018-02-13 07:25 AM
I have a project for STM32F446 generated by CubeMX.
After changing some pins and re-generated the code, it builds successfully but the debugger settings in the uvoptx file are broken: Keil's debugger cannot connect and shows 'unknown target' in debugger settings. But it sees the ST-Link dongle and its serial number.
The solution for me was to restore the uvoptx file from backup. It may be caused by the recent CubeMX update (4.24) or not, I'm not sure.
Another suspicious thing after CubeMX update is that it inserts spaces between components of include path in Keil project (uvprojx). But Keil does not mind...
Hope this may help to others with the debugger issue, I've lost a lot of time today checking all cables, boards etc.
Regards,
-- pa
#cubemx-4.24 #keil-uvisionSolved! Go to Solution.
2018-02-13 07:38 AM
Could you diff the XML file?
Might suspect JTAG vs SWD selection.
2018-02-13 07:38 AM
Could you diff the XML file?
Might suspect JTAG vs SWD selection.
2018-02-17 03:17 PM
Not only JTAG vs SWD, it was something else. To recover, I had to power off both board and ST-LINK dongle.
-- pa