Skip to main content
Pavel A.
Super User
February 13, 2018
Solved

CubeMX after updating existing Keil project broke debugger config

  • February 13, 2018
  • 1 reply
  • 920 views
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
This topic has been closed for replies.
Best answer by Tesla DeLorean
Posted on February 13, 2018 at 16:38

Could you diff the XML file?

Might suspect JTAG vs SWD selection.

1 reply

Tesla DeLorean
Guru
February 13, 2018
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 VenmoUp vote any posts that you find helpful, it shows what's working..
Pavel A.
Pavel A.Author
Super User
February 17, 2018
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