lpcware

Flash Write on LPC1114/333 causing hang

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by george.thaliath on Fri May 09 01:09:01 MST 2014
Hi all,
I have been trying to write data to the flash memeory sector 13 to 13(0xD000) using IAP funtions provided by NXP.
But while trying to do so, on multiple wirttes the microcontroller hangs.

I have a uart running on interupt which is disabled while a flash write occours.

The other thing that has been happening is, it not nessasarley hang strait, but probabaley after 20 writes at a gap of 35 seconds between them.
The other main thing is when it hangs, it looks like the flash is getting corrupted as the data that was stored in the memory is lost.

It would be greateley appreciated if some  could suggest, why or what could cause this.

I am eracing and preparing the sector before  a write is operated.

Looking forward to hearing from you guys soon.
Regards
George

Outcomes