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