cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX after updating existing Keil project broke debugger config

Pavel A.
Evangelist III
Posted on February 13, 2018 at 16:25

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-uvision
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on February 13, 2018 at 16:38

Could you diff the XML file?

Might suspect JTAG vs SWD selection.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2
Posted on February 13, 2018 at 16:38

Could you diff the XML file?

Might suspect JTAG vs SWD selection.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on February 17, 2018 at 23:17

Not only JTAG vs SWD, it was something else. To recover, I had to power off both board and ST-LINK dongle.

-- pa