IAP-commands in application code?

Started by Anonymous in LPC200014 years ago

Hello, I want to use the IAP Commands in my program to erase/program sectors of the LPC2124 device. I try to...

Hello, I want to use the IAP Commands in my program to erase/program sectors of the LPC2124 device. I try to follow the guidelines given by the manual and have successfully used the following commands; Blanck check Read Part ID Rea


IAP_Flash Programming Time

Started by Ralf Knorr in LPC200013 years ago 8 replies

Hi Chris, I'm writing an IAP bootloader for the LPC2114 and test it also on an LPC2106 and I saw, that the flash erase takes about 100ms....

Hi Chris, I'm writing an IAP bootloader for the LPC2114 and test it also on an LPC2106 and I saw, that the flash erase takes about 100ms. I think this depends on the charge pumps to get the internal stable programming voltage for the flash. I tested erasing one or all sectors and the time is nearly constant. If you use the keil IAP example there is also


Re: IAP Erase operation

Started by willem_zx6r in LPC200010 years ago 1 reply

Hi, when calling the IAP erase command, you have CCLK in flashParams[4]. This should be flashParams[3]. I guess you mistyped this at your...

Hi, when calling the IAP erase command, you have CCLK in flashParams[4]. This should be flashParams[3]. I guess you mistyped this at your post, as other secotrs get erased. Could you verify this? Regards, Willem --- In l...@yahoogroups.com, vinicius.bernardi@... wrote: > > Hi, > > I'm having the same problem at a LPC2368. > > The problem is some times I try to ERASE a sector (


adress of variables in ram - pointer problem?? HEEEEELP ;-(

Started by boje_d in LPC200010 years ago 2 replies

Hi im trying to use the iap functions on a LPC2292. before the piece of code shown below i have filled the program buffer with data to be...

Hi im trying to use the iap functions on a LPC2292. before the piece of code shown below i have filled the program buffer with data to be programmed in the processor. my interface to the iap routine is working!! compilation gives the folloving error message: Error: invalid conversion from 'char (*)[4146] to 'long unsigned int' but why and what to do?????? thank you in advance Best ...


Brown out detect and IAP

Started by gabriel_rosu in LPC200011 years ago

Hi, Does anyone have any code examples of how I can use a LPC2148 to save in Flash same variables when my board is turn OFF. It's possible...

Hi, Does anyone have any code examples of how I can use a LPC2148 to save in Flash same variables when my board is turn OFF. It's possible using Brown out detect and IAP commands? I am very new to ARM microcontrollers and some code examples or guidance would be greatly appreciated. Thanks Gabriel Rosu


is IAP possible using ARM Mode..?

Started by dhp_ec in LPC200013 years ago 5 replies

hello all, This is abt Flash Programming,,is onchip flash programming BY USING IAP, possible in ARM mode.? i found a flash programming...

hello all, This is abt Flash Programming,,is onchip flash programming BY USING IAP, possible in ARM mode.? i found a flash programming example by using IAP in THUMB Mode in the group here it is ... ********************************************************************** static void callIAP(void) __attribute((naked)); static void callIAP(void)


IAP question

Started by Markus Zingg in LPC200010 years ago 1 reply

Hi group What's the minimum requiered steps to write to the same flash memory area multiple times using IAP? After reading the user manual...

Hi group What's the minimum requiered steps to write to the same flash memory area multiple times using IAP? After reading the user manual (LPC2378) I'm not sure if I have to always use "Erase Sector" first, or if it's sufficient to use "prepare sectors for write" and then "copy RAM to flash" withouth the erase operation first? TIA Markus ------------------------------------ ...


Struggling with LPC2138 IAP.

Started by r_bottleneck in LPC200013 years ago 4 replies

Hi, I'm struggling with IAP of the LPC2138. I got some program examples, but all fail . I'm getting 0x0000000C (prefetch aboard) ...

Hi, I'm struggling with IAP of the LPC2138. I got some program examples, but all fail . I'm getting 0x0000000C (prefetch aboard) during execution of iap_entry (command,result); As far as I can verify command and result are correct, as well as the address of IAP_LOCATION. Could sombody advice or guess what's going wrong , p


IAP and external SRAM

Started by vzyk in LPC200012 years ago 3 replies

Does LPC2292 support IAP programming from external SRAM? I mean, using "Copy RAM to Flash" command, and a source of data to be external SRAM....

Does LPC2292 support IAP programming from external SRAM? I mean, using "Copy RAM to Flash" command, and a source of data to be external SRAM. I didn't find this information in data sheet. Thanks.


IAP not programming in sector 0 (2138)?

Started by SR in LPC200012 years ago 4 replies

Does anyone have this problem,. When using the IAP set of flash programming commands, sector 0's at 0x00000000 is never been able to be...

Does anyone have this problem,. When using the IAP set of flash programming commands, sector 0's at 0x00000000 is never been able to be programmed when you are running the code on RAM, the vector address is mapped onto the internal Flash location 0x00000000. Any help, Samuel Yahoo! Groups Links


IAP encrypted flash re-programming

Started by bobtransformer in LPC200013 years ago 2 replies

Anybody here ever seen (or done) an IAP flash programming app that re-loads flash with updated code that the end user downloads from their...

Anybody here ever seen (or done) an IAP flash programming app that re-loads flash with updated code that the end user downloads from their PC ? I would think one could do this without too much trouble on an LPC2XXX and might even fit into one sector. Un-encryption of the downloaded code would be a benefit as well so code copying wouldn't be so much of a pro


IAP to read part ID

Started by Sridhar gadda in LPC200013 years ago

Hello Friends, I have written IAP to read PART IDENTIFICATION NUMBER for LPC2129. I am using ULINK to burn firmware and want to display...

Hello Friends, I have written IAP to read PART IDENTIFICATION NUMBER for LPC2129. I am using ULINK to burn firmware and want to display part ID on hyperterminal ...but unable to get succed ..am I doing error in my code ... #include #include struct iap_non_volatile { unsigned int cammand; unsigne


Remember to not be in User Mode when attempting to use IAP

Started by Colby Boles in LPC200010 years ago

Hi- I just wanted to point out a mistake I made in case others run into the same problem. I had written a bunch of IAP based USB reflashing...

Hi- I just wanted to point out a mistake I made in case others run into the same problem. I had written a bunch of IAP based USB reflashing code, and most of it was working except for the "copy RAM to FLASH" function. I was disabling interrupts, checking parameters, setting the clock frequency parameter correctly, seemingly doing everything right, but the flashing function would hang (or a...


Re: CAN bootloader

Started by riccardo ventrella in LPC200011 years ago

Hi Jaya, thank for your quick and clear answer . I have not to deal with CRP, 'cause the code reaches the master via GPRS and it's already...

Hi Jaya, thank for your quick and clear answer . I have not to deal with CRP, 'cause the code reaches the master via GPRS and it's already secure. I thought I have to use IAP, but what is not clear is where to put the client code which calls IAP, and where to inject the code in FLASH. I mean: 1) the code which receives the packets from CAN, can't put directly the packet in the right place st...


help with IAP on 2129

Started by John in LPC200010 years ago 2 replies

I am having trouble Erasing Flash. I can program it once, but then subsequent writes or erases don't effect the Flash. All IAP Result[s] are...

I am having trouble Erasing Flash. I can program it once, but then subsequent writes or erases don't effect the Flash. All IAP Result[s] are coming back 0 (=success). I've only been trying 512 bytes at a time. The PLL is enabled, running 60Mhz with a 10Mhz clock. MAMCR = 2 (fully enabled Memory accelerator) MAMTIM = 3 Any ideas? //////////in main.c ////////////////// byte buffer[5...


LPC2294 IAP

Started by David Beaulieu in LPC200011 years ago 2 replies

I've got two identical boards that use a LPC2294, one exhibits a problem and one does not. They are both configured the same and they both have...

I've got two identical boards that use a LPC2294, one exhibits a problem and one does not. They are both configured the same and they both have properly functioning electronics. The problem is that one of the boards has no problem at all programming its internal flash (either from my internal software using IAP or through JTAG) the other board will not program, erase or even successfull...


IAP Flash Erase/Write Sector 0

Started by davidxytac in LPC20008 years ago 1 reply

Hi, IAP commands for erasing and writting Internal Flash failed. I found the first 62 ( about ) of the sector 0 can not be erased, which leads...

Hi, IAP commands for erasing and writting Internal Flash failed. I found the first 62 ( about ) of the sector 0 can not be erased, which leads to the failure of writting. Does anyone know why the first 62 bytes are protected. And how to disable the protection for erasing and writting? Thank you, david ------------------------------------


Instable data in Flash after IAP

Started by ovidearistide in LPC200012 years ago 9 replies

I do not have that much hair left, but what's left I am pulling out right now: I have successfully been using IAP for a while for firmware...

I do not have that much hair left, but what's left I am pulling out right now: I have successfully been using IAP for a while for firmware updates. Now I started using the same mechanism to write calibration data to Flash. But when I call the exact same erase routine (after a prepare) my program enters my data abort handler. A stack trace indicates that execution was coming from an une...


IAP data mismatch LPC2468

Started by boia3333 in LPC200010 years ago 3 replies

Hi everyone, I'm trying to use IAP to store a data buffer in flash (i.e. at sector 14 of my LPC2468). I successfully did it using IAR IDE...

Hi everyone, I'm trying to use IAP to store a data buffer in flash (i.e. at sector 14 of my LPC2468). I successfully did it using IAR IDE v. 5.20 and locating a simple code in RAM, but when I moved to my real application, which runs from flash, I encountered the following problem: iap_entry return CMD_SUCCESS (== 0) but data written in memory are inconsistent. for istance if I try to...


IAP problem ..... again

Started by ovidearistide in LPC200012 years ago 7 replies

I keep having troubles with IAP. Last time I posted a problem it appeared to be caused by stack corruption. The problem was solved by...

I keep having troubles with IAP. Last time I posted a problem it appeared to be caused by stack corruption. The problem was solved by increasing my stacks. However, the problem is back and the stacks are fine. I wrote down the instructions executed from the moment my erase command is executed (the prepare already successfully finished) until the last instruction that fails and I end up i...