2020-05-13 10:21 AM
We have a project created in CubeMX (inside CubeIDE) and developed in CubeIDE. Everything works fine.
However, we wanted to use a Makefile so we could have the same build process on our CI server and within CubeIDE.
So we now generated a Makefile from stand-alone CubeMX with the same IOC file and imported the result as an unmanaged Makefile project into CubeIDE.
This works fine for development and building but debugging is not possible. When we try to debug, an error message dialog comes up, saying: "Not able to get mcu target. " See attached image.
Can anyone tell me what I am missing?
Thanks
2020-05-14 01:42 AM
I just confirmed this behaviour with just a NUCLEO-F401RE and an unmodified CubeMX config.
So, I:
Then I copy the IOC file from the project to another folder and open it with a stand-alone CubeMX with the same version number as the one integrated into CubeIDE and
So the problem is not caused by anything coming from our project. It's plain CubeMX code that does not work in CubeIDE when created as unmanaged Makefile project.
Still, I hope I just have to tick one checkbox or something to get it working.
Any hints?
Thanks.
2020-05-14 04:10 AM
A few more observations.
3. The file STM32F401RETX_FLASH.ld is different in the two toolchains
4. The startup file has stayed the same but has a different name and location: Core/Startup/startup_stm32f401retx.s -> startup_stm32f401xe.s
Not sure if these are related to the issue I observe but they sure seem weird.
I also found differences in the CubeIDE settings and project files but those are unsurprising. They are also extensive so I will go through them now and add anything I can find there later.
2020-07-12 09:09 AM
2021-09-21 05:49 AM
Over a year later, the problem remains.
2021-09-21 07:08 PM
Over a year, we have CubeIDE v 1.7 which supports quick creation of unmanaged project from a bare ELF file and debugging it.
But it still cannot cast the debugging magic on existing CubeIDE unmanaged makefile projects, or generic Eclipse CDT projects.
This is a pity.