I understand your question, but what is the reason? what do you want with an all-0xff hex-file?
At a guess, he wants a method of measuring some operation being performed either by recording the operation into flash, or by the flash chip being programmed with the firmware image (if that is what he is measuring)
Here's the original post: Flash Write ALL 1/0
"ALL 1 Hex File" is necessary because I want to do a retention test of Flash.
Flashのリテンションテストを行いたいため、"ALL 1 Hex File"が必要です。
A flash retention specification was already made by Cypress, you really may trust that. Check the PSoC family datasheet.
You do not need to check the whole flash for retainig data, a single row would do.
BTW: What will the CPU do when executing all '1' program?
＞A flash retention specification was already made by Cypress, you really may trust that. Check the PSoC family datasheet.
＞You do not need to check the whole flash for retainig data, a single row would do.
⇒Since we want to check not only Cypress data but also by me, a Hex file of All "1 (0xFF)" is necessary.
A program of all 0xFF would have odd behavior when running, since you wouldn't be allowing for a small section of space to be used for a running application.
You could try using some sort of hack with a programmer to write/read to the chip the "1"s and "0"s, but that would be a lot of effort.
Hi Ryuuji san,
Creating a hexfile with all ones will be not helpful as check sum verification is an important step as per programming spec and it will note be possible. Can't you check this at some specific rows(as bob suggested) if you want to do it ?