1939176_en-US

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

1939176_en-US

1939176_en-US

An error occurred after the library file was imported

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

HiRe: An error occurred after the library file was imported

Hi, 

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


Re: An error occurred after the library file was imported

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

Re: An error occurred after the library file was imported

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


Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 09:04 PM
Updated by: