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

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

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

713件の閲覧回数
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
タグ(1)
0 件の賞賛
返信
4 返答(返信)

673件の閲覧回数
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 件の賞賛
返信

439件の閲覧回数
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 件の賞賛
返信

388件の閲覧回数
LewisThin
Contributor III
thx, i will try it later
0 件の賞賛
返信

684件の閲覧回数
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 件の賞賛
返信