S32G3 Bootloader link error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32G3 Bootloader link error

跳至解决方案
1,020 次查看
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 项奖励
回复
1 解答
1,011 次查看
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 项奖励
回复
1 回复
1,012 次查看
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 项奖励
回复