An error occurred after the library file was imported

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

An error occurred after the library file was imported

ソリューションへジャンプ
1,582件の閲覧回数
zenging
Contributor I

I am using S32K311, I added the library file to the project through new, after compiling, there will be an error. May I ask if there is any solution

viewfile.png

2.png3.png

0 件の賞賛
返信
1 解決策
1,431件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

the app_callbacks.h is not visible for the Release configuration. Please check the Include paths. 

 

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,531件の閲覧回数
stanish
NXP Employee
NXP Employee

Hi,

This linking error indicates the data sections do not fit into internal SRAM memory.

If this happen after you add a library to the project - it may indicate that the linker does not dead-strip the unused library functions.

Could you check if the linker option is enabled: 

--gc-sections

stanish_0-1724683088057.png

enable the option and rebuild the project.

If it does not help, please check your code/data may not fit into the memory.

 

Hope it helps.

Stan

 

0 件の賞賛
返信
1,510件の閲覧回数
zenging
Contributor I

HI,@stanish 

As you suggested, I enabled --gc-sections and recompiled the project. When I use Debug_Flash, I can enter the debug phase normally.

97bbb590e7ba5823994d23466ee8cc5.png

However, I find that I still get an error when I use release_Flash. I want to ask how to solve it.

8f0cce10766b2e1adaaac59052742dd.png

0 件の賞賛
返信
1,432件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

the app_callbacks.h is not visible for the Release configuration. Please check the Include paths. 

 

0 件の賞賛
返信