S32G3 Bootloader link error

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

S32G3 Bootloader link error

Jump to solution
503 Views
superyyf
Contributor II

I encountered the following error while building the S32G399A bootloader project. I just disable the Eep module and MemDal module and remove MemDal_init and MemDal_Deinit from the InitList of the SysDal module.

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: ./bin/Gpt_PBcfg.o:(.mcal_const_cfg+0x1c): undefined reference to `OSIF_Millisecond'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:90: bin/Bootloader.elf] Error 1
0 Kudos
Reply
1 Solution
494 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

This is due to the OSIF related function being available under the "OsIf_rtd_fatfs.c" file, which is available under the SDHC stack:

"C:\nxp\S32DS.3.4\S32DS\software\PlatformSDK_S32XX_2022_03\stacks\sdhc\code\osif"

Since MemDal/Eep modules make reference to the SDHC stack, the compiler can take this reference. Once they are disabled, all references are lost, hence it is not finding them.

You could delete all MemDal references under SysDal, but still have enabled the modules for the SDHC reference.

Also, you could try and move these functions to a different file, but we understand that they may have several links that need to be accomplished. Care should be taken.

Please, let us know.

View solution in original post

0 Kudos
Reply
1 Reply
495 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

This is due to the OSIF related function being available under the "OsIf_rtd_fatfs.c" file, which is available under the SDHC stack:

"C:\nxp\S32DS.3.4\S32DS\software\PlatformSDK_S32XX_2022_03\stacks\sdhc\code\osif"

Since MemDal/Eep modules make reference to the SDHC stack, the compiler can take this reference. Once they are disabled, all references are lost, hence it is not finding them.

You could delete all MemDal references under SysDal, but still have enabled the modules for the SDHC reference.

Also, you could try and move these functions to a different file, but we understand that they may have several links that need to be accomplished. Care should be taken.

Please, let us know.

0 Kudos
Reply