K32W DK6Programmer.exe

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

K32W DK6Programmer.exe

1,630 Views
danieltseng
Contributor V

When I execute  " DK6Programmer.exe -s COM29 -p heart.bin"
Only the appropriate size will be cleared
1. What is the sector block?
2. How can I clear all Flash?

Labels (1)
  • KW

4 Replies

1,543 Views
danieltseng
Contributor V


Thanks for your reply, I have understood.

1,543 Views
danieltseng
Contributor V

The following is my interpretation:
1.  First example: Erase all Flash
2.  Second example: only Erase 64k
So Erase is based on page, not sector block (example: KW41, sector block = 2k)
Is the above description correct?

0 Kudos

1,543 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Daniel,

The second example is erasing a page of 512 bytes with an offset of the 64KB. The binary.bin must be less than 64KB.

This erase process is based on page

Regards,

Mario

0 Kudos

1,543 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Daniel,

I hope you are doing great.

You could look at the table in the 2.1Command Options Chapter.

DK6 Production Flash Programmer User Guide JN-UG-3127

pastedImage_1.png

Please look at the next examples.

The following command will first erase all the flash and then flash the binary (binary.bin) at address 0x00000000:
DK6Programmer.exe -s COM56 -e FLASH -p binary.bin

As another example, the following command will first flash the binary (binary.bin) at address 0x00000000 and then erase one page of flash (512 bytes) at offset = 64Kb (the assumption is made here that size of binary.bin is less than 64K):
DK6Programmer.exe -s COM56 -p binary.bin -e FLASH:512@65536

Regards,

Mario