If for some reason your flash has been damaged and normal re-Program flash will not work. Here is how to get recovered.
(Read the A7 and RPC, If R7 is not 200xxx you MUST do the following,
)
Then you can do the normal
Code: Select all
init
ldram code
flshdct code
program code
This can save back your box. Now we know PH7/8/9 need good EEPROM data, so make sure your data from 404000 length 100 has the proper data.
I hope this can save people that accidentally erase the flash and have the box sitting there forever.