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?
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?
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
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
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