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

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

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

ソリューションへジャンプ
795件の閲覧回数
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 件の賞賛
返信
1 解決策
732件の閲覧回数
seunghokims
Contributor III

Thanks for the reply @EduardoZamora.

Very helpful.

 

Regards,
Seungho.

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
771件の閲覧回数
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 件の賞賛
返信
759件の閲覧回数
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 件の賞賛
返信
745件の閲覧回数
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 件の賞賛
返信
733件の閲覧回数
seunghokims
Contributor III

Thanks for the reply @EduardoZamora.

Very helpful.

 

Regards,
Seungho.

0 件の賞賛
返信