PN7642 C100 - fuse the OTP bit that skips USB-MSC boot

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

PN7642 C100 - fuse the OTP bit that skips USB-MSC boot

Jump to solution
1,707 Views
UdiO
Contributor II

Hi,

I have a working target that is based on Pegoda 3 with PN7642 C100.

I'm looking to fuse the OTP bit so that the device will no longer expose the USB mass-storage boot path - permanently force the pin-less download.

I couldn't find the address of this fuse to access it with Segger J-Flash or with direct C code.

 

Your support is highly appreciated

Thanks

Udi

0 Kudos
Reply
1 Solution
1,684 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @UdiO

Hope you are doing well.

Please refer to PN7642 SDK > docs > PN76-FW-apiguide. OTP Configuration APIs are described in path: Modules > System Service > SYS OTP Config Interface; there you should find some security features such as Code Read protection and SWD disable.

You could, for example, consider PN76_Sys_OTPConfigs_EnableCRP() API.

Regards,
Eduardo.

View solution in original post

0 Kudos
Reply
4 Replies
1,663 Views
UdiO
Contributor II

Thanks Eduardo,

Would it be better to use :
PN76_Sys_OTPConfigs_DwnldReqLessBoot(0);
PN76_Sys_OTPConfigs_LockSettings();

Thanks
Udi

0 Kudos
Reply
1,685 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @UdiO

Hope you are doing well.

Please refer to PN7642 SDK > docs > PN76-FW-apiguide. OTP Configuration APIs are described in path: Modules > System Service > SYS OTP Config Interface; there you should find some security features such as Code Read protection and SWD disable.

You could, for example, consider PN76_Sys_OTPConfigs_EnableCRP() API.

Regards,
Eduardo.

0 Kudos
Reply
1,663 Views
UdiO
Contributor II
Thanks Eduardo,

Would it be better to use :
PN76_Sys_OTPConfigs_DwnldReqLessBoot(0);
PN76_Sys_OTPConfigs_LockSettings();

Thanks
Udi
0 Kudos
Reply
1,647 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

PN76_Sys_OTPConfigs_DwnldReqLessBoot is used to configure the value to wait in bootloader if pin-less download is enabled. Refer to PN7642 frequently asked questions, Section 2.7.

PN76_Sys_OTPConfigs_LockSettings LOCKS the configurations done by OTP interfaces and does not allow further modification.

Being OTP (One Time Programmable) API calls, these functions shall be used carefully.

Regards,
Eduardo.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2161906%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EPN7642%20C100%20-%20fuse%20the%20OTP%20bit%20that%20skips%20USB-MSC%20boot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2161906%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20have%20a%20working%20target%20that%20is%20based%20on%20Pegoda%203%20with%26nbsp%3BPN7642%20C100.%3C%2FP%3E%3CP%3EI'm%20looking%20to%20fuse%20the%20OTP%20bit%20so%20that%26nbsp%3Bthe%20device%20will%20no%20longer%20expose%20the%20USB%20mass-storage%20boot%20path%20-%20permanently%20force%20the%20pin-less%20download.%3C%2FP%3E%3CP%3EI%20couldn't%20find%20the%20address%20of%20this%20fuse%20to%20access%20it%26nbsp%3Bwith%20Segger%20J-Flash%20or%20with%20direct%20C%20code.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EYour%20support%20is%20highly%20appreciated%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3EUdi%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2163053%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PN7642%20C100%20-%20fuse%20the%20OTP%20bit%20that%20skips%20USB-MSC%20boot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2163053%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3EPN76_Sys_OTPConfigs_DwnldReqLessBoot%20is%20used%20to%20configure%20the%20value%20to%20wait%20in%20bootloader%20if%20pin-less%20download%20is%20enabled.%20Refer%20to%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN13936.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EPN7642%20frequently%20asked%20questions%3C%2FA%3E%2C%20Section%202.7.%3C%2FP%3E%0A%3CP%3EPN76_Sys_OTPConfigs_LockSettings%20LOCKS%20the%20configurations%20done%20by%20OTP%20interfaces%20and%20does%20not%20allow%20further%20modification.%3C%2FP%3E%0A%3CP%3EBeing%20OTP%20(One%20Time%20Programmable)%20API%20calls%2C%20these%20functions%20shall%20be%20used%20carefully.%3C%2FP%3E%0A%3CP%3ERegards%2C%3CBR%20%2F%3EEduardo.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2162678%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PN7642%20C100%20-%20fuse%20the%20OTP%20bit%20that%20skips%20USB-MSC%20boot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2162678%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%20Eduardo%2C%3C%2FP%3E%3CP%3EWould%20it%20be%20better%20to%20use%20%3A%3CBR%20%2F%3EPN76_Sys_OTPConfigs_DwnldReqLessBoot(0)%3B%3CBR%20%2F%3EPN76_Sys_OTPConfigs_LockSettings()%3B%3C%2FP%3E%3CP%3EThanks%3CBR%20%2F%3EUdi%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2162675%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PN7642%20C100%20-%20fuse%20the%20OTP%20bit%20that%20skips%20USB-MSC%20boot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2162675%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThanks%20Eduardo%2C%3CBR%20%2F%3E%3CBR%20%2F%3EWould%20it%20be%20better%20to%20use%20%3A%3CBR%20%2F%3EPN76_Sys_OTPConfigs_DwnldReqLessBoot(0)%3B%3CBR%20%2F%3EPN76_Sys_OTPConfigs_LockSettings()%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%3CBR%20%2F%3EUdi%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2162323%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PN7642%20C100%20-%20fuse%20the%20OTP%20bit%20that%20skips%20USB-MSC%20boot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2162323%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F254344%22%20target%3D%22_blank%22%3E%40UdiO%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EHope%20you%20are%20doing%20well.%3C%2FP%3E%0A%3CP%3EPlease%20refer%20to%20PN7642%20SDK%20%26gt%3B%20docs%20%26gt%3B%20PN76-FW-apiguide.%20OTP%20Configuration%20APIs%20are%20described%20in%20path%3A%20Modules%20%26gt%3B%20System%20Service%20%26gt%3B%20SYS%20OTP%20Config%20Interface%3B%20there%20you%20should%20find%20some%20security%20features%20such%20as%20Code%20Read%20protection%20and%20SWD%20disable.%3C%2FP%3E%0A%3CP%3EYou%20could%2C%20for%20example%2C%20consider%20PN76_Sys_OTPConfigs_EnableCRP()%20API.%3C%2FP%3E%0A%3CP%3ERegards%2C%3CBR%20%2F%3EEduardo.%3C%2FP%3E%3C%2FLINGO-BODY%3E