s32k312 Link problem when printf(overlaps section .data LMA)

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

s32k312 Link problem when printf(overlaps section .data LMA)

89 Views
squirrel_rin
Contributor I

I'm developing with the s32k312 evb board.
After installing the provided HSE_DEMOAPP_S32K3XX_0_2_6_0.exe, I try to printf, but an error occurs in the link.

printf("Demo App Start\n"); -> normal
printf("Demo App Start = %d\n", 1); -> overlaps section .data LMA

c:/nxp/s32ds.3.5/s32ds/build_tools/gcc_v9.2/gcc-9.2-arm32-eabi/bin/../lib/gcc/arm-none-eabi/9.2.0/../../ ../../arm-none-eabi/bin/real-ld.exe: section .ARM.exidx LMA [00411874,0041187b] overlaps section .data LMA [00411874,00415b9b]
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:65: S32K3XX_demo_app.elf] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.

I added .heap to S32K3XX_flash.ld. How can I solve this?

 

 

0 Kudos
Reply
1 Reply

39 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @squirrel_rin 

take a look at slide 12 in attached presentation. This could solve the problem.

And I would probably used rather these HSE demo examples instead of HSE DEMO APP:

https://www.nxp.com/webapp/Download?colCode=S32K3_HSE_DemoExamples

HSE DEMO APP requires T32. HSE demo examples package is a port of the DEMO APP and it is more straightforward and it can be used with any debugger, not just with T32.

Regards,

Lukas

0 Kudos
Reply