GCC optimization and IAP

Started by andersryl in LPC200011 years ago 1 reply

Hi, I'm using an LPC2214 together with the GNUARM tools and are having some problems with IAP. I have one source file with all the IAP...

Hi, I'm using an LPC2214 together with the GNUARM tools and are having some problems with IAP. I have one source file with all the IAP function calls (to iap_entry @ 0x7FFFFFF1, called iap.c). This file is compiled with the -mthumb-interwork flag. The rest of the files are compiled without this flag. When compiling the source files with -O0 (no optimization) preparing, erasing and wr...


IAP command query

Started by amb...@seatechnik.com in LPC200011 years ago 3 replies

Firstly can anyone point me in the right direction for a document which gives decent details of exactly what the IAP functions actually do?...

Firstly can anyone point me in the right direction for a document which gives decent details of exactly what the IAP functions actually do? I've seen info which effectively gives an overview but it doesn't answer all the questions... For example: IAP command 50 prepares sectors for write and 51 copies ram to flash. Does this combination of commands allow you to do multiple updates to fl...


IAP error SRC_ADDR_NOT_MAPPED

Started by Joe in LPC20009 years ago 1 reply

I am getting the SRC_ADDR_NOT_MAPPED error when the source address is in the USB RAM (0x7fd0000 - 0x7fd01fff). Is it possible to "map" this...

I am getting the SRC_ADDR_NOT_MAPPED error when the source address is in the USB RAM (0x7fd0000 - 0x7fd01fff). Is it possible to "map" this memory so IAP can work with buffers stored there??? Or is the USB RAM just not supported for a IAP write source? This is on a 2478. I have no problem using this memory area for other purposes, it is just that IAP fails when it is used for the RAM buffe...


IAP return

Started by jpsg123 in LPC200014 years ago 1 reply
IAP

Hi All, It seems returning from an IAP call, I need to insert some delays after returning from an IAP or else my results would...

Hi All, It seems returning from an IAP call, I need to insert some delays after returning from an IAP or else my results would be wrong. Is this because of the switch from ARM->THUMB- >ARM? For now, I'm just inserting a delay loop. -John G-


IAP

Started by subb...@gmail.com in LPC20007 years ago 13 replies

Hi I am using LPC2138 for my design. I want to use the IAP mode . In ISP pin p0.14 should be low after reset. Does it true for IAP mode also....

Hi I am using LPC2138 for my design. I want to use the IAP mode . In ISP pin p0.14 should be low after reset. Does it true for IAP mode also. Should I reset the MC and drive the p0-14 pin low to enter into IAP mode? Would it be possible for me invoke ISP mode while the system is running. Thanks in advance. Regards, Subbiah ------------------------------------


IAP doc/example error for result array size (LPC21xx) ?

Started by phmaresh4 in LPC200012 years ago

All - I've just joined this board to see if there's any info on IAP issues. There seems to be ... a lot. But one particular that I...

All - I've just joined this board to see if there's any info on IAP issues. There seems to be ... a lot. But one particular that I haven't seen mentioned explicitly in any posts (that i could find) is that the "result" array you pass to the iap function should probably be 3 words (12 bytes) rather than just 2 which is what I see in many of the examples. One of the forum users di...


2138 iap problem

Started by good...@acanac.net in LPC20009 years ago 3 replies

Hi, I am experiencing troubles with iap fucntions for the LPC2138. The code executes correctly with no error status and the bootversion ...

Hi, I am experiencing troubles with iap fucntions for the LPC2138. The code executes correctly with no error status and the bootversion and Chip ID codes it returns are correct, however the flash is not updated. (Not erased nor writtten). The bootversion is 2.12 , i am using Rowley Crossworks with GCC , interrupts are disabled while using iap, switching to thumb mode is done...


LPC2146 IAP Erase & Write not working.

Started by mark_dell555 in LPC200012 years ago 10 replies

Hi, I'm having a problem erasing the flash with IAP calls on my lpc2146. I'm making calls to the IAP, and get the chip id fine from the...

Hi, I'm having a problem erasing the flash with IAP calls on my lpc2146. I'm making calls to the IAP, and get the chip id fine from the IAP. Next I make a call to Prepare the flash for writing (50d), and I get CMD_SUCCESS (0d) as the response. Then I make a call to Erase to wipe some sectors where I know I have data (min sector=5 max sector=14), and again i get C


IAP routine location in LPC

Started by topandurangs in LPC200012 years ago 1 reply

Hi all, I am using LPC2136 IAP and gone through following important sentense, 1.The IAP routine resides at 0x7FFF FFF0 location and it...

Hi all, I am using LPC2136 IAP and gone through following important sentense, 1.The IAP routine resides at 0x7FFF FFF0 location and it is thumb code. 2.The flash memory is not accessible during a write or erase operation. IAP commands, which results in a flash write/erase operation, use 32 bytes of space in the top portion of the on-chip RAM for execution. > From Memory map


LPC2106 and IAP from app code

Started by Branko Karaklajic in LPC200012 years ago 1 reply

Hello everyone, I just sign in for those group... greetings to all. I work on some project with LPC2106, and need to write some user...

Hello everyone, I just sign in for those group... greetings to all. I work on some project with LPC2106, and need to write some user data tu flash via IAP. I use IAR Workbench for ARM, and RTOS with 3 task. I download IAP code from KEIL site and try it but 2106 always hang when I include call to writing function. So anyone know w


Crashing in iap function

Started by cynergized in LPC20006 years ago 3 replies
IAP

I've been using iap functions with great success, including reflashing the user app on my device and writing various device settings. However,...

I've been using iap functions with great success, including reflashing the user app on my device and writing various device settings. However, now that I am using them more extensively I find that I occasionally crash in or returning from an iap function that erases a sector. In this event, the program counter is lost and some memory may be corrupted. In the past I'd seen this behavior if I did...


Re: IAP calls through JTAG

Started by Joel Winarske in LPC200010 years ago 3 replies

ek1mus wrote: > A few problems I have with it is: > > 1. The IAP function will not branch back. Currently I go back into > debug-mode by...

ek1mus wrote: > A few problems I have with it is: > > 1. The IAP function will not branch back. Currently I go back into > debug-mode by just writing commands in the pipeline. > > 2. The processor will go into Abort > > 3. It doesn't complete some IAP routines. 'Blank Check' runs fine, but > 'Copy RAM to Flash' does not. It doesnt even returns an error-message. > 'Erase Sector' gives ba


LPC1788 - IAP Issue- IAP_EraseSectors returns busy

Started by dowlingeoin in LPC20006 years ago 15 replies

Hi All, I have used IAP previously on LPC2000 family. I have an interesting issue with using IAP on the LPC1788. I know its relatively new just...

Hi All, I have used IAP previously on LPC2000 family. I have an interesting issue with using IAP on the LPC1788. I know its relatively new just wondering has anyone else has had similar issues.. I trying to implement a firmware upgrade utility. I am using an RTOS with multiple tasks. At the current point I am just concerned with erasing and reprogramming a block of the internal flash running...


IAP and Keil RTX

Started by in LPC20009 years ago 3 replies

Hello, I am trying to use the ARM flash in order to store application data. According to the manual all interrupts must be disabled prior...

Hello, I am trying to use the ARM flash in order to store application data. According to the manual all interrupts must be disabled prior calling the IAP functions. Does anyone have called the IAP function in a RTX task ? The RTX uses interrupts in order to work. Regards, Andre ------------------------------------


In progress: IAP from external miniSD card and/or USB

Started by smt5211 in LPC200013 years ago 4 replies

Hi, Does anyone have sample source code for a bootloader, for the LPC2106? We wish to upgrade an application. We can't use...

Hi, Does anyone have sample source code for a bootloader, for the LPC2106? We wish to upgrade an application. We can't use RS232, so we have to write our own. We are doing IAP from an external miniSD flash memory card. Later on, we are going to do IAP via U


LPC 2103 IAP with IAR C compiler

Started by Ghislain Djanang Tchami in LPC20009 years ago 5 replies

Hi, Programming the LPC2103 the IAP command to write data into flash do not work after the command to prepare the sectors. The...

Hi, Programming the LPC2103 the IAP command to write data into flash do not work after the command to prepare the sectors. The programming function is running from RAM during flash. The same code works with lpc2134 and lpc2214. Is there any special setting in iar programming the lpc2103 using IAP? How to use the iap command (copy RAM to Flash = 51) with the lpc2103? Thanks. -----------...


IAP problem - LPC2148

Started by Sutton Mehaffey in LPC20008 years ago 1 reply

I looked at J.Cs code, but he uses assembly language, which is not the way I am doing IAP. I am using the way the user's manual describes on...

I looked at J.Cs code, but he uses assembly language, which is not the way I am doing IAP. I am using the way the user's manual describes on pages 309-310 under IAP commands. It seems to work when I define the BIOS entry point locally for each routine. If I define it globally, so that each routine can use it, it locks up on any 2nd pass. I don't know why. Here is some sample code ...


LPC2478 IAR Bootloader/IAP

Started by mike_schwarzer in LPC20008 years ago 3 replies

Dear Group, I hope someone could help me with following troubles: I'm trying to implement a Firmware Update Funktion to my Application. I use...

Dear Group, I hope someone could help me with following troubles: I'm trying to implement a Firmware Update Funktion to my Application. I use the LPC2478 and IAR Workbench. My first try was to use IAP direct withhin my application, of course, the IAP Functions themself where put to a 'special' Flash Region (Thanks to Mark for giving me the correct #pragma Option). On that way i could ...


Interrupts during IAP

Started by Karl Olsen in LPC200013 years ago 4 replies
IAP

Hello all, Normally all interrupts should be disabled during IAP calls. But if the interrupt vectors and all interrupt code...

Hello all, Normally all interrupts should be disabled during IAP calls. But if the interrupt vectors and all interrupt code are relocated to RAM, are there any limits as to how much time interrupt handlers may "steal" from the foreground program during IAP


IAP problem

Started by icapapindi in LPC200012 years ago 2 replies

Hi !! I'm trying to erase a sector with iap command with this code: IAP iap_entry =3D (IAP) IAP_LOCATION; disableIRQ(); ...

Hi !! I'm trying to erase a sector with iap command with this code: IAP iap_entry =3D (IAP) IAP_LOCATION; disableIRQ(); command[0] =3D 0x50; // Command command[1] =3D 0x10; // Sector command[2] =3D 0x10; // Sector iap_entry(command, result); enableIRQ(); UART0WriteChar((char)result[0]); And then I tr...