| Details | Message |
|---|
Read-Only Author Evgeny Kotsuba Posted 5-Dec-2009 15:28 GMT Toolset ARM |  using IAP for flash writing with working ethernet Evgeny Kotsuba 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 ? |
|
Read-Only Author Eric Severson Posted 5-Dec-2009 17:06 GMT Toolset ARM |  RE: using IAP for flash writing with working ethernet Eric Severson 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 |
|
Read-Only Author Evgeny Kotsuba Posted 5-Dec-2009 17:19 GMT Toolset ARM |  RE: using IAP for flash writing with working ethernet Evgeny Kotsuba 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. |
|
Read-Only Author Eric Severson Posted 5-Dec-2009 18:54 GMT Toolset ARM |  RE: using IAP for flash writing with working ethernet Eric Severson 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) |
|
Read-Only Author Evgeny Kotsuba Posted 5-Dec-2009 22:08 GMT Toolset ARM |  RE: using IAP for flash writing with working ethernet Evgeny Kotsuba 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. |
|
Read-Only Author Anu Ambre Posted 12-Apr-2010 05:23 GMT Toolset ARM |  RE: using IAP for flash writing with working ethernet Anu Ambre Hi, 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 |
|
Read-Only Author Evgeny Kotsuba Posted 5-Dec-2009 17:24 GMT Toolset ARM |  RE: using IAP for flash writing with working ethernet Evgeny Kotsuba "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 |
|
Read-Only Author Hans-Bernhard Broeker Posted 5-Dec-2009 22:15 GMT Toolset ARM |  RE: using IAP for flash writing with working ethernet Hans-Bernhard Broeker 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. |
|