[Jn5189] How to do CRP and PDM erase in DK6Programmer

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

[Jn5189] How to do CRP and PDM erase in DK6Programmer

Jump to solution
795 Views
seunghokims
Contributor III

How to set CRP and delete PDM in jn5189? (DK6Programmer)

 

Jn5169 provided the CRP option and the --eepromerase option. (JN51xx Production Flash Programmer)

 ---example

      Bootloader code protection:

      CRP_LEVEL0 (None)
      CRP_LEVEL1 (Flash read disabled)
      CRP_LEVEL2 (all access disabled)

 

 

0 Kudos
Reply
1 Solution
732 Views
seunghokims
Contributor III

Thanks for the reply @EduardoZamora.

Very helpful.

 

Regards,
Seungho.

View solution in original post

0 Kudos
Reply
4 Replies
771 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @seunghokims

Hope you are doing well.

According to the JN5189 User Manual, Chapter 7 Reset, Boot and Wakeup, Section 7.3.2 Code protection, the following features are provided to protect the access to the memory:

  • SWD and JTAG control
  • Configuration of memory protection mechanism (MPU), by the boot code, to minimize threats such as code injection

It is possible to restrict access to (or even disable) the ISP functionality, for instance in order to protect code in the flash. For more information on this, please consult Chapter 38 In-System Programming (ISP), and Section 38.8 Usage restrictions.

Also, you may find some useful programming commands using DK6Programmer software in the DK6 User Guide [3127] (included in JN5189 SDK > docs); and also, by typing DK6Programmer.exe -s COMx --help in a command console.

Regards,
Eduardo.

0 Kudos
Reply
759 Views
seunghokims
Contributor III

Hi EduardoZamora,

Thanks for your quick response.


The DK6 device programmer included in the SDK is (Build 4564).

However, the DK6-UG-3127-Production-Flash-Programmer included in the Doc is an older version, JN-UG-3127 v3.0.


Therefore, there is no explanation for Unlockmode.
DK6 Device Programmer (Build 4564) : --unlockmode <mode>=<filename>

 

1. Where can I find the latest user guide for unlockmode?

2. Please give an example on how to erase eeprom to clear PDM.
- Jn5169 provided the --eeprom erase option. (JN51xx Production Flash Programmer)


Thanks,

Seungho

0 Kudos
Reply
745 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

To erase memory, you could simply use DK6Programmer.exe -s COMxx --erase.

For ISP Level and SWD, you can refer to these commands:

EduardoZamora_0-1701994162982.png

EduardoZamora_1-1701994162982.png

"write only, unsecure" option disables all memory accesses to all memory regions except write to flash and erase all flash (flash data cannot be read).

Regards,
Eduardo.

0 Kudos
Reply
733 Views
seunghokims
Contributor III

Thanks for the reply @EduardoZamora.

Very helpful.

 

Regards,
Seungho.

0 Kudos
Reply