How do I generate the .ioc file after importing a CMake based project?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-25 9:11 AM
I've inherited an existing project. It's got STM HAL / auto-generated code. It's set up with CMake to be compiled at the command line.
I have an ST-Link attached to the SWD pads of an Adafruit STM32F405 Feather board.
I can import the project okay, and it'll compile, but I cannot get any debugging or firmware loading working. Adding a run/debug configuration always leaves the Run/Debug button greyed out.
I can start a new project and get that loading, running and debugging.
What is missing from the existing project that is present in the new scratch project is the *.ioc and *.mxproject files.
Is there a way to get STM32CubeIDE to generate the missing files?
- Labels:
-
STM32CubeIDE
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-25 4:33 PM
I don't think you can go from code to IOC file. You can only go from IOC to code. In general, existing code isn't going to map 1:1 with an IOC file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-25 5:27 PM
The missing bit for debugger is probably the target MCU info. Try to transplant it from other working project for same board.
You don't need .ioc file to build and debug. All pre-CubeIDE ST examples do not have .ioc but can be debugged. (and of course you don't need .mxproject)
-- pa
