I use lpc2378 and can write to flash with IAP, but if I have working ethernet (based on easyweb sample) then... then a number of things occure exept normal work.
Anybody uses write data to flash with ethernet ?
Hi,
Can you please explain your situation more clearly?
Specifically, what does this mean: "then a number of things occure exept normal work"?
I am using the IAP interface to flash my LPC2468 (with TCPnet) successfully via Ethernet. However, I do run into some problems when trying to flash the portion of my ROM that TCPnet resides in. As a temporary solution, I have assigned TCPnet its own section of ROM and simply not flashed over that.
-Eric
I want to store my lpc's programm data at flash location.
May be problem is that I use user flash mode (MEMMAP=0x01) and access to flash via IAP. But strange thing then is that access to flash is working just after LPC initialization.
"then a number of things occure exept normal work"?
sometime program jumps to main, that work some small time, than jumps somewhere to previous location, sometimes I found it at SWI_Handler B SWI_Handler PAbt_Handler B PAbt_Handler
Well, if you are writing over your interrupt vectors, then you certainly are going to be having problems. I first copy my interrupts into RAM and then change MEMMAP to reflect this.
A couple more thoughts -Be sure that you are disabling interrupts before you call an IAP function. -Be sure that you are not flashing over your application (execute from RAM if you have to)
Be sure that you are disabling interrupts before you call an IAP function.
ups.... right text should be Be sure that you are disabling interrupts not with __diable_irq() before you call an IAP function.
That all sounds a lot like you're indeed trying to pull out the rug while standing on it. If you're lucky, you just won't manage to move it --- if not, you'll end up kissing the floor rather violently.
As you say, that you first copy your interrupts into RAM and then change MEMMAP to reflect this.
I am also trying for the same.
I am able to map the interrupt vectors in RAM.But my problem is how to execute irq from RAM while IAP.
I am working with LPC2468
Awaiting reply.
Anu