Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Cherry_L
Level 2
Level 2
10 sign-ins 10 replies posted 5 questions asked

Hi ,all:

 我想问一下LIN组件的内存占用大小是否可以裁剪?目前发现生成底层的代码,debug模式下会占用9.6K左右,release模式会少2k,是否有基于占用内存小的方式?谢谢!

0 Likes
1 Solution
Vison_Zhang
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 250 sign-ins

这个没有特别好的办法,LIN 的固件驱动层不好做裁剪(固件架构中大量使用了选择编译 #if #endif,未用到的代码逻辑也不会参加编译)。

在 LIN Config Services 配置界面中勾选掉不需要的功能,选择 Raw API, 选择优化度更高 MDK 编译器都可以减少 FLASH 的占用,但是都只是很有效的节省及时几百个 bytes 这样,做不到降低几K FLASH 占用的效果。

View solution in original post

0 Likes
1 Reply
Vison_Zhang
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 250 sign-ins

这个没有特别好的办法,LIN 的固件驱动层不好做裁剪(固件架构中大量使用了选择编译 #if #endif,未用到的代码逻辑也不会参加编译)。

在 LIN Config Services 配置界面中勾选掉不需要的功能,选择 Raw API, 选择优化度更高 MDK 编译器都可以减少 FLASH 的占用,但是都只是很有效的节省及时几百个 bytes 这样,做不到降低几K FLASH 占用的效果。

0 Likes