LPC1768 programmer using ISP

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

LPC1768 programmer using ISP

773 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by i0n on Wed Jan 09 04:16:30 MST 2013
Hi everybody,

I'm currently in trouble with reading the first 512 bytes in flash memory in ISP mode (verirfication after writing). The memory I read back is not actually flash memory at 0-511 address but the boot rom which is remapped automatically on reset in ISP mode. I'm pretty sure that I have written to flash memory correctly because chip works properly after being reset.

I have also try changing the MEMMAP bit in Memory Mapping Control register so I could read the real first 512 bytes of flash memory. But chip reply the address of the register (0x400F C040) is out of memory address.

Moreover, I saw that flash magic has done this task very well. I almost can't see the difference between reading sector 0 and other sectors.

My assumption is that other well worked programmers has to write a small application on RAM. In that application, we need to change the MEMMAP bit to remap the first bytes to user flash memory, then enter IAP to re-invoke ISP. Then we could read the sector 0 normally. Is my assumption right? is it the only solution? Is there any other simpler way to do the task?

If you have any idea, please kindly share with me. If you are not ready to share in public, so please contact with me via my email address : [email]n.b.tr.87@gmail.com[/email].

Thank you very much!
Have a good time.
0 Kudos
Reply
0 Replies