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.

跳至解决方案
2,013 次查看
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,997 次查看
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,998 次查看
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,989 次查看
BigJulie
Contributor II

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

Best Regards.

0 项奖励
回复