Build Error: “undefined reference to '_start'”, Invalid Include Path, and Missing .elf File in S32DS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Build Error: “undefined reference to '_start'”, Invalid Include Path, and Missing .elf File in S32DS

Jump to solution
1,150 Views
Sanjana_k
Contributor II

#Hello Team

I am encountering a build error while compiling the S32K344_HSE_FW_INSTALL project in S32 Design Studio. The error occurs during linking, as shown below:

undefined reference to `_start'
collect2.exe: error: ld returned 1 exit status
make: *** [S32K344_HSE_FW_INSTALLS32K344_HSE_FW_INSTALL.elf] Error 1

Steps I followed:

  1. Using S32 Design Studio version 3.5.14.

  2. Project path: C:\NXP\S32K3_HSE_DemoExamples_1_0_0\S32K3_HSE_DemoExamples\Device_Configuration\S32K344_HSE_FW_INSTALL.

  3. Using default linker and startup files.

Could you please advise what might be causing this _start undefined reference and how to resolve it?

Thank you for your support.

0 Kudos
Reply
1 Solution
1,080 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

I just tested it with your setup, all you need to do is import the project and edit the patches referencing the pink file to be installed in the linker command file. This also means you need to download the HSE FW to your computer.

View solution in original post

0 Kudos
Reply
3 Replies
1,081 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

I just tested it with your setup, all you need to do is import the project and edit the patches referencing the pink file to be installed in the linker command file. This also means you need to download the HSE FW to your computer.

0 Kudos
Reply
1,064 Views
Sanjana_k
Contributor II

This is our entire project details please hep us with these errors

0 Kudos
Reply
1,073 Views
Sanjana_k
Contributor II

#Hello @davidtosenovjan

We are currently facing an issue where the .elf file is not being generated during the build process. We are not exactly sure what the cause is. Could you please help us with some guidelines or steps to identify and resolve this issue?

Thank you for your time and support.

0 Kudos
Reply