2018-06-13 06:34 AM
Hello,
I have just generated a new Project in CubeMX and imported it to Atollic True Studio, but I can't debug it.
apparently I am missing a .elf file, and I am not sure how to generate it. Why doesn't CubeMX do this automatically?I hope someone could help me.Thanks and Greetings
Henrik
#cubemx-4.26 #truestudio-9.0.02018-06-13 06:37 AM
... and I am not sure how to generate it.
By building it ?
Cube supposedly creates the source code, and you need Atollic or another toolchain to build (compile + link) it.
2018-06-14 07:39 AM
Okay, thanks!
True Studio (9.0.0) when building the Project does not generate that file, but just complains that its missing. Is there maybe a setting that I am missing? I used to never have that problem. My older projects are fine, as True Studio can just use their .elf files.What could be the problem?
2018-06-15 12:30 AM
Don't know.
Perhaps someone adding built output (.ELF) as 'source' to the project ?
2018-06-15 10:10 AM
So when you build, successfully, what files IS the linker generating as output? Do you get a .MAP file? A.OUT?
Can it generate a makefile, what are the parameters being feed to the linker?
This isn't really an Atollic support forum, most of the key players aren't using Atollic.
2018-06-15 11:46 AM
I don't fully understand what you mean by that?
I upgraded to TrueStudio 9.0.1. and switched to a new workspace.I checked the debug settings, and I cant find the 'source' as you said.Thanks for sticking with me, but there must be a way to run new projects, or generate the project.elf file in the debug folder when I build the project.
Does it work for you?2018-06-16 12:06 PM
Thanks for the Reply. I know you are right, but the Atollic Website is currently down.
Additionally ST bought Attolic and removed the code size limit and gave full feature access for ST users. Thats why I am using it.Which toolchain would you suggest using?I might consider switching then.About the linker, I am not sure where it generates its output files. I think mine gave me a project.launch file.I have found a setting in ATS which will let me select the type of Linker I want to use, but there are no settings/parameters for the linker itsself.2018-06-16 12:51 PM
I suspect some of the support for Atollic will move over here at some point.
I favour Keil and Rowley, and use GNU/GCC via makefiles, others here use IAR
2018-06-16 01:34 PM
Hello
Br_ckerbaum.Henrik
,if you exported project from CubeMX to Atollic, then just open project in Atollic and compile it first (CTRL + B shortcut). Once you have build files, you may start debug session. You do not need .elf file for that.
Best regards,
Tilen