IAP calls from GCC - workaround

Started by viskr in LPC200011 years ago 2 replies

I think I've resolved the IAP problem and its due to a GCC "feature", maybe a bug. Anyway if you call IAP the way it is specified in the...

I think I've resolved the IAP problem and its due to a GCC "feature", maybe a bug. Anyway if you call IAP the way it is specified in the doc's, it works sometimes- #define iap_entry ((IAP) 0x7FFFFFF1) // IAP entry point ... iap.cmd = 50; // IAP Command: Prepare Sectors for Write iap.par[0] = GET_SECNUM(flash_addr);// s...


IAP lock up issue!

Started by Gus in LPC200013 years ago 3 replies

Hello, I am using IAP to reprogram the LPC chips. On some chips, I call the IAP but the IAP never returns! I assume that my...

Hello, I am using IAP to reprogram the LPC chips. On some chips, I call the IAP but the IAP never returns! I assume that my code is fine because it has been running on many many chips with no problems. All chips I have are the same IAP (philips boot loader) version.


IAP timout

Started by zizahum in LPC200012 years ago 2 replies
IAP

I use PLC2106 for my project, and have to store some data into emulated EEPROM in flah using IAP. But I am not so shure about how does IAP...

I use PLC2106 for my project, and have to store some data into emulated EEPROM in flah using IAP. But I am not so shure about how does IAP operations works and manual is lack of informations about that. The thing I don't understand if I want to erase one sector (8 k) will my program be able to continue, or I have to wait that IAP operation finishes. I have the sa


IAP problem

Started by Michal Krestan in LPC200012 years ago 4 replies

Hi, I'm using IAP programming in my application with LPC2106. It works fine, but in one of about 5 tries my procedure for firmware update...

Hi, I'm using IAP programming in my application with LPC2106. It works fine, but in one of about 5 tries my procedure for firmware update will hang somewhere (probably in callIAP) and after hardware reset, in MCU still remains the same code without any modification. Does anyone have recommended flowchart for using IAP? Do I have to check result of IAP prepare command and result o


IAP trouble

Started by dpavli2 in LPC200011 years ago 4 replies

Hello, I own a LPC2138 (ARM7TDMI) development board from iSystem and I am developing my firmwares with the WinIDEA software. I know there...

Hello, I own a LPC2138 (ARM7TDMI) development board from iSystem and I am developing my firmwares with the WinIDEA software. I know there has already been some discussion about IAP, but I really cannot get it to work for me. The C code follows: IAP IAP_entry = (IAP) 0x7ffffff1; int IAP_result[10]; int IAP_command[5]; IAP_command[0] = 50; //prepare sectors IAP_c...


LPC 2478 IAP

Started by mike_schwarzer in LPC20008 years ago 7 replies

Hi to Everyone, I would need some hints, information, templates in using IAP with LPC2478. I have written a Application using IAR Workbench,...

Hi to Everyone, I would need some hints, information, templates in using IAP with LPC2478. I have written a Application using IAR Workbench, using LPC2478, TFT, external RAM, .... I'm also using IAP Functions to store some Data in the Processor Flash. Now I like to use IAP to update my Application. As far as i have found out, there seems to bee to possibilities: 1. Building 2 Projects,...


IAP Samples?

Started by Greg Esmond in LPC200011 years ago 8 replies

I posted a few days ago about a need to store variables in flash, and Saurabh suggested using IAP (thanks!). However, I can't figure IAP out. I...

I posted a few days ago about a need to store variables in flash, and Saurabh suggested using IAP (thanks!). However, I can't figure IAP out. I found an app in the files section that creates a pseudo EEPROM in flash using IAP, but it would be helpful to see some more examples. Any suggestions? What I need to do is store, update, and read an array of 8 bit numbers. As you can tell from readi...


IAP help

Started by groeselt in LPC20009 years ago 2 replies

Hi, I want to use IAP on a lpc2148 to store some variables, which are needed when the system restarts. I found several examples of IAP,...

Hi, I want to use IAP on a lpc2148 to store some variables, which are needed when the system restarts. I found several examples of IAP, but non are working, I think so. I'm using IAR embedded workbench. I can view the memory, but where I write my data it is not changing. The code I use: struct iap_in { unsigned int cmd; unsigned int par[4]; }; typedef void (*IAP)(struc...


IAP Basic Question!!

Started by acarbuncle in LPC200012 years ago

Hello, I am not really understand the function and capability of IAP. Here are some questions could anyone help me to clarify it. 1....

Hello, I am not really understand the function and capability of IAP. Here are some questions could anyone help me to clarify it. 1. In my opinion the IAP function is used to read/write flash memory. Thus,I can use my flash memory to store some data that I do not want to vanish after power down. Is that right? 2. IAP function can be use


IAP Gotcha( Don't do this) and Internal Flash question

Started by lhaddix in LPC200011 years ago 2 replies

Hi, I'm working with an LPC2138 and spent the day getting IAP and interrupts all working at the same time. In the course of this I think I...

Hi, I'm working with an LPC2138 and spent the day getting IAP and interrupts all working at the same time. In the course of this I think I scanned every IAP post on the list. Lots of folks reported erratic behavior afterward. I too had 'erratic behavior', the cause was the IAP API using the top 32 bytes of RAM. Nothing up there anyhow right? Well my stack was up there and it's much be...


should IAP application's RW/ZI section be mapped only to internal RAM

Started by Embedded Techie in LPC20009 years ago

Hello, =A0 The IAP routine returns erroneous value (non-zero) when the IAP ZI/RW secti= on of the application is mapped to external memory. But...

Hello, =A0 The IAP routine returns erroneous value (non-zero) when the IAP ZI/RW secti= on of the application is mapped to external memory. But i read an article w= hich says In Application Routine uses the bootloader commands that are stor= ed in the internal FLASH. Also the IAP occupies the top 32 bytes of the int= ernal RAM. So the data holder for storing the IAP commands and results shou...


I need IAP help...

Started by albin_martinsson in LPC200013 years ago 6 replies

Hi I really need some IAP help for the LPC2129. I need to reprogramm the code area in my application and this is done...

Hi I really need some IAP help for the LPC2129. I need to reprogramm the code area in my application and this is done in my own bootloader. My routines follows the IAP commands that philips has in theire applicatione notes. like this


where to find IAP code

Started by "fouquet.yann" in LPC200010 years ago

Hello, I am using IAP with the LPC2103 with IAR developement. I have found some differences between the generated simple code and the code I...

Hello, I am using IAP with the LPC2103 with IAR developement. I have found some differences between the generated simple code and the code I should use for IAP.The differences are at the end and at the beginning of the file. It seems IAR adds some characters. How can I get the final code to use in IAP ? Thanks for help


IAP and then strange behavior

Started by fl429 in LPC200012 years ago 8 replies

Hi, Folks, Hopefully, someone can shed some light to this. Thanks. First, this is not my first app on the LPC2138. I had no trouble before,...

Hi, Folks, Hopefully, someone can shed some light to this. Thanks. First, this is not my first app on the LPC2138. I had no trouble before, until I use IAP in this one. The IAP calls seem working OK. No error reported. Flash memory does program as expected, as far as I can see. But, a simle C structure in one of the functions now behaves wierdly SOMETIMES. This is called repeatedly in


pre-empting iap

Started by bue...@lyngklip.dk in LPC200010 years ago

I know it is possible to handle interrupts while erasing and programming sectors of the flash, but is it possible to pre-empt the iap...

I know it is possible to handle interrupts while erasing and programming sectors of the flash, but is it possible to pre-empt the iap altogether? The iap return code 11 (busy) makes me suspect so. It would require mapping interrupts to RAM and running the application from RAM as well, not referencing any constants in the flash. The question is; can the iap be pre-empted? The specific dev...


Re: LPC 2103 IAP with IAR C compiler

Started by jom1...@gmail.com in LPC20008 years ago

hi, I am using Lpc2148 to use its IAP functions too, I am meeting a problem just like that. Could you give me a specific instruction about how to...

hi, I am using Lpc2148 to use its IAP functions too, I am meeting a problem just like that. Could you give me a specific instruction about how to set the xcl to make the IAP function work? Regards~ 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


Lpc2148 using IAP (IDE:IAR EW)

Started by jiaomj in LPC20008 years ago

Hi, everyone~ I just want to use IAP functions to load the data from RAM to Flash. I followed the LPC214x_User_Manual. In the manual I got...

Hi, everyone~ I just want to use IAP functions to load the data from RAM to Flash. I followed the LPC214x_User_Manual. In the manual I got every steps to accomplish this IAP task. ----------------------------------------------------- // I define the osc like this as the frequency of the system: #define OSCILLATOR_CLOCK_FREQUENCY 12000000 // and when i use the fosc i make it divide ...


IAP Erase operation

Started by gogotimmo in LPC200011 years ago 5 replies

Hi Everyone- I'm getting frustrated with the IAP implementation on the LPC2138. I've followed the application note describing how to make the...

Hi Everyone- I'm getting frustrated with the IAP implementation on the LPC2138. I've followed the application note describing how to make the function calls from C, and that part seems to be working. For example, if I try to erase a sector I first call the IAP function with command 50 (Prepare Sector) and it returns CMD_SUCCESS as expected. Next, I call IAP with command 52 (Erase Sect...


Can I use IAP routines with PLL multiplier other than 1x.

Started by lhaddix in LPC200012 years ago 4 replies

Hi, Does anyone know if you can use the IAP routines on an LPC2138 to write the flash while running at crystal x6. I saw a note somewhere...

Hi, Does anyone know if you can use the IAP routines on an LPC2138 to write the flash while running at crystal x6. I saw a note somewhere that said you had to drop the clock multiplier to 1x to use the IAP, but only prior to a certain version. Has anyone tried this? The Phillips boot loader gives evidence that you must run at 1x be


IAP problems (LPC2131)

Started by adelacruz01 in LPC200011 years ago 8 replies

Hi, I'm currently on a project which uses the LPC2131 mp. The problem I'm trying to tackle at the moment is trying to get the IAP to...

Hi, I'm currently on a project which uses the LPC2131 mp. The problem I'm trying to tackle at the moment is trying to get the IAP to successfully copy RAM data into flash. After browsing through the 15,000+ messages on this board regarding the IAP, I could not get any of the solutions posted to work for me (unless I'm missing something very simple). This device runs with 1 FIQ process...