the code of Icu in Emios_Icu_Ip.c wastes lots of memeory

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

the code of Icu in Emios_Icu_Ip.c wastes lots of memeory

356 Views
LewisThin
Contributor III
S32K3 RTD is 2.0.0 in Emios_Icu_Ip.c the variable eMios_Icu_Ip_ChState 's size is 5472 bytes, whose size is all of the icu channle resource and the field of the structure contains lots member which can be defined as const
Tags (1)
0 Kudos
4 Replies

316 Views
LewisThin
Contributor III

hi @danielmartynek 

I am sorry to tell you that I set the compiler options as recommanded。

the real issue is that the definition of eMios_Icu_Ip_ChStateType is too large.

LewisThin_0-1701770853273.png

Firstly , i just config 4 channels in EB, but  the size of array is 3 * 24 = 72

secondly, many members in the eMios_Icu_Ip_ChStateType structure can be set as const

 

0 Kudos

82 Views
cuongnguyenphu
NXP Employee
NXP Employee

Hi @LewisThin ,
In current latest release S32K3XX RTD 4.0.0 P20, the definition of eMios_Icu_Ip_ChState has been changed:

cuongnguyenphu_0-1716377486107.png


I belive it can reduce size of code in this case

 

 

0 Kudos

31 Views
LewisThin
Contributor III
thx, i will try it later
0 Kudos

327 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @LewisThin,

RTD_ICU_RamSizeReport.xlsx

RTD_ICU_SizeReport.xlsx

can be found in SW32K3_RTD_4.4_2.0.0_D2203_QualityPackage.zip

Plese make sure the compiler options are set as per the SW32K3_RTD_4.4_2.0.0_D2203_ReleaseNotes.pdf

 

Regards,

Daniel

 

0 Kudos