cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX Project does not generate .elf file

Henrik Baum
Associate II
Posted on June 13, 2018 at 15:34

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.0
8 REPLIES 8
AvaTar
Lead
Posted on June 13, 2018 at 15:37

... 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.

Henrik Baum
Associate II
Posted on June 14, 2018 at 16:39

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?

Posted on June 15, 2018 at 07:30

Don't know.

Perhaps someone adding built output (.ELF) as 'source' to the project ?

Posted on June 15, 2018 at 19:10

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.

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

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?
Posted on June 16, 2018 at 19:06

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.
Posted on June 16, 2018 at 19:51

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Tilen MAJERLE
ST Employee
Posted on June 16, 2018 at 22:34

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