When i use NXP CSEc module in S32K146, my program code into exception interrupt handle function.

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

When i use NXP CSEc module in S32K146, my program code into exception interrupt handle function.

ソリューションへジャンプ
1,274件の閲覧回数
BigJulie
Contributor II

Hi, i got a question,when i use CSEc module in S32K146,when the program code access the CSE_PRAM space,it will be into exception interrupt in Debug mode.point it in the below:

#define REG_WRITE32(address, value) ((*(volatile uint32*)(address))= (value))

#define CRYPTO_PRAM_HDR_ADDR32 (0x14001000u)

REG_WRITE32(CRYPTO_PRAM_HDR_ADDR32, u32CommandHeader);

QQ拼音截图未命名.png

The highlighted code is shown in the figure above, mean that the command to write PRAM cause progarm into exception Interrupt.

Do you know that problem ?

Could you give me some advice or resolution?

Best Regards,

BigJulie.

 

タグ(2)
0 件の賞賛
返信
1 解決策
1,258件の閲覧回数
namnguyenviet
NXP Employee
NXP Employee

Hello,

There are two things that you can check before entering Csec operation:

- Check if your S32K silicon has supported CSEc in it, by checking SIM_SDID[FEATURES]

- In order to enable the CSEc, the Memory need to be partitioned for EEPROM, and FTFC registers need to be programmed.

Unfortunately, MCAL CSEc code hasn't implemented these steps, and you need to implement in your application code.

Here is the link for our CSEc training program that you can refer to: https://community.nxp.com/t5/Technology-Days-Training/MCU-Technology-Topic-Hands-On-Workshop-Writing...

Best Regards,

Nam

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,259件の閲覧回数
namnguyenviet
NXP Employee
NXP Employee

Hello,

There are two things that you can check before entering Csec operation:

- Check if your S32K silicon has supported CSEc in it, by checking SIM_SDID[FEATURES]

- In order to enable the CSEc, the Memory need to be partitioned for EEPROM, and FTFC registers need to be programmed.

Unfortunately, MCAL CSEc code hasn't implemented these steps, and you need to implement in your application code.

Here is the link for our CSEc training program that you can refer to: https://community.nxp.com/t5/Technology-Days-Training/MCU-Technology-Topic-Hands-On-Workshop-Writing...

Best Regards,

Nam

0 件の賞賛
返信
1,250件の閲覧回数
BigJulie
Contributor II

Thank you for your reply,that's useful for me,it working.

Best Regards.

0 件の賞賛
返信