PN7642 code read protect

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

PN7642 code read protect

跳至解决方案
1,036 次查看
artem_pn
Contributor II

Hello! 

I am using PN7642 in my project. I would like to ask, how to protect code from reading properly?

In the datasheet I found description of CRP Levels (CRP1, CRP2, CRP3).  In library the is function PN76_Status_t PN76_Sys_OTPConfigs_EnableCRP(). I would like to ask how to use it properly? Where in code it should be called? What level of code read protection it provides? How to check if it works? 

I called it from main() function, it returned 0x07 value (what can cause that? it seems like possible values are 0x00 and 0x08) and I still can read memory using JLink utility. 

Thank you in advance!

Artem 

0 项奖励
回复
1 解答
995 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Please open the API User documentation.

2025-03-26 12_49_34-AN13936.pdf - Adobe Acrobat Reader (32-bit).png

 

Then go to the OTP (One Time Programable) calls:

2025-03-26 12_48_05-PN7642 NFC Controller_ SYS OTP Config Interface.png

 

You could find all kind of security features to protect the chip such as Read protection, SWD disable and so on.

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
996 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Please open the API User documentation.

2025-03-26 12_49_34-AN13936.pdf - Adobe Acrobat Reader (32-bit).png

 

Then go to the OTP (One Time Programable) calls:

2025-03-26 12_48_05-PN7642 NFC Controller_ SYS OTP Config Interface.png

 

You could find all kind of security features to protect the chip such as Read protection, SWD disable and so on.

 

0 项奖励
回复
792 次查看
KB1
Contributor II

I also am getting a 0x07 return code.  The API documentation you pointed to has no useful information about what code 7 "PN76_STATUS_AUTH_ERROR" means or how to deal with it.

Can you please provide more information on how to utilize the Code Read Protection functionality in the chip?

 

0 项奖励
回复
736 次查看
artem_pn
Contributor II

Hello!

The function PN76_Sys_OTPConfigs_EnableCRP() can be called only once. After that trying to debug it, I have got this 0x07 message, but it turned off an ability for me to run device in USB FW update mode by selecting boot from USB on evaluation board

0 项奖励
回复