IAP: write operation needs erase command before?

Started by gl4com in LPC200012 years ago 2 replies

Hi, I'm working with an lpc2106 and I got a weird behavior when I try to write some data into the FLASH (using IAP prepare sector + IAP...

Hi, I'm working with an lpc2106 and I got a weird behavior when I try to write some data into the FLASH (using IAP prepare sector + IAP copy RAM2FLASH commands). Can somebody confirm me that if I want to write some data to the FLASH memory I HAVE TO Erase the sector that I'm going to use just before calling the IAP copy command? When I say erase I mean that is not enough to use the "...


IAP command

Started by ronak bhalani in LPC20008 years ago 4 replies

Hello All, ????????? I am using IAP command to write into the flash of lpc2103. Is it necessary to disable all the interrupts before calling...

Hello All, ????????? I am using IAP command to write into the flash of lpc2103. Is it necessary to disable all the interrupts before calling IAP routine? If so then how i can disable and unable the interrupts.


Trouble with IAP and Thumb-Interworking

Started by firegenie1980 in LPC200013 years ago

Hi, I have been trying to get some IAP commands working with a program I am developing. I have got the IRQ...

Hi, I have been trying to get some IAP commands working with a program I am developing. I have got the IRQ disable/enable commands working fine, well the system accepts the commands and runs them. However when my program encounters an IAP command it just fr


Looking for IAP example

Started by r_bottleneck in LPC200013 years ago 2 replies

Hi, Does anybody know a source where to find a IAP program example ? I'm not yet familiar with the LPC21xx family and I would like to...

Hi, Does anybody know a source where to find a IAP program example ? I'm not yet familiar with the LPC21xx family and I would like to use that feature in a new project. Thank you for any hint.


LPC2148 IAP, Strange Behaviour

Started by Shahzeb Ihsan in LPC200012 years ago 1 reply

Hi, I'm trying to enter IAP mode for LPC2148. At the moment I'm not trying to do anything extensive, just want to get a basic setup working....

Hi, I'm trying to enter IAP mode for LPC2148. At the moment I'm not trying to do anything extensive, just want to get a basic setup working. I've looked through the message archives but wasn't able to figure out the problem. The problem is, whenever I call the function which should (supposedly) jump to the IAP thumb code, I see strange behaviour (described below). I am using ADS 1.2 and ...


LPC2124/01 IAP

Started by Kerem Or in LPC200011 years ago

Hello, Does anyone know if the IAP programming in LPC2124 has a clock limitation? I experience with bit errors at random flash locations when...

Hello, Does anyone know if the IAP programming in LPC2124 has a clock limitation? I experience with bit errors at random flash locations when using NXP's IAP flash write functions. Can it be related to my slow CPU clock which is nearly 5MHz? Any ideas, experiences appreciated... Programming thru JTAG works fine though. Thanks, Kerem


LPC2478 IAP Troubles

Started by mike_schwarzer in LPC20008 years ago 9 replies
IAP

Hi Guys, I have some confusing troubles with IAP on an LPC2478. I have written Routines for IAP Prepare, Erase, Write, ... These Routines are...

Hi Guys, I have some confusing troubles with IAP on an LPC2478. I have written Routines for IAP Prepare, Erase, Write, ... These Routines are working on all 4kB Sektors (0 .. 7 / 22 .. 27) as acpected. I use them to store some 'nearly' const Variables (eg. Touch Range) Now i have started to write an Application Update Funktion, which of course use also the 32kB Sectors. But there I ran...


LPC2478 IAP

Started by kunilov in LPC20006 years ago 4 replies

Hi everybody,I develop firmware updating module (via IAP) on LPC2478. Flash memory is divided into 2 sectors - main (0x0-0x60000) and...

Hi everybody,I develop firmware updating module (via IAP) on LPC2478. Flash memory is divided into 2 sectors - main (0x0-0x60000) and updater (0x60000-0x80000). Firstly, new firmware binary is placed into RAM, then I call the IAP fuctions in loop. After that, I validate the firmware using ISP, and validator says that everything is correct. But after restart the device hangs... Here is my cod...


LPC2368 IAP problem

Started by suvidhk in LPC200011 years ago 1 reply
IAP

I am experiencing a problem on LPC2368 with IAP functionality.(Using an MCB2300 Board). Erase is working fine.The IAP status returns ok for...

I am experiencing a problem on LPC2368 with IAP functionality.(Using an MCB2300 Board). Erase is working fine.The IAP status returns ok for programming but the programmed bytes are different then the data in RAM buffer. Every 5th byte is programmed differently(Change in One bit Eg. 78 is programmed as 7C). Has anybody observed similar problem or is it I am missing something. Note : I...


LPC2103 and IAP

Started by sds597 in LPC200011 years ago

Hello, I am running an LPC2103 with an external clock of 25MHz. I am trying to use the IAP code to erase and reprogram a section of flash but...

Hello, I am running an LPC2103 with an external clock of 25MHz. I am trying to use the IAP code to erase and reprogram a section of flash but it is not working. I am issuing the IAP erase sector command and the return code is showing 0x0 indicating success but the actual flash content is not changeing. Has anyone run into similar situations to this? Thanks in advance for any insight. ...


IAP Problem

Started by sig5534 in LPC200013 years ago 3 replies
IAP

I am getting an Invalid Instruction Exception trying to get my IAP routines running. When it branches to the IAP service routine at ...

I am getting an Invalid Instruction Exception trying to get my IAP routines running. When it branches to the IAP service routine at 0x7FFFFFF0, it goes to the next instruc which is invalid. ==>> 0x7FFFFFF0 F7FFB580 LDRNVB R11,[PC,+R0,LSL #0xb] 0x7FFFFFF4 BC80F949 DD 0xBC80F949 ; INVALID OPCODE 0x7FFFFFF8 4718BC08 LDRMI R11,[R8,-R8,LSL #0x18


getting IAP working

Started by SR in LPC200013 years ago 1 reply

Hello all, I am using the IAR ARM compiler and can't seem to get the code compiled with the example given by the datasheet to handle IAP...

Hello all, I am using the IAR ARM compiler and can't seem to get the code compiled with the example given by the datasheet to handle IAP programming for LPC2138, does anyone have a sample on this, it is much appreciated.. Thanks Samuel


IAP command problems

Started by koerner_stefan in LPC200014 years ago 4 replies

Could anyone help me to run the IAP commands on KEIL MCB2100 (LPC2129)? I am working with the ARM RVDS tools (& RV ICE) and...

Could anyone help me to run the IAP commands on KEIL MCB2100 (LPC2129)? I am working with the ARM RVDS tools (& RV ICE) and tried to run a small sample calling the IAP commands (program runs from iRAM). Most time I get a "memory access violation" several


IAP use of SRAM in the LPC17XX

Started by mjbcswitzerland in LPC20007 years ago 9 replies

Hi All Quote from the LPC17XX manual - "IAP commands, which result in a FLASH write/erase operation, use 32 bytes of space in the top portion...

Hi All Quote from the LPC17XX manual - "IAP commands, which result in a FLASH write/erase operation, use 32 bytes of space in the top portion of the on-chip RAM for execution. The user program should not use this space if IAP flash programming is permitted in the application." Does anyone know which space is being referred to exactly? The LPC1766 which I use for tests has three SRAM banks: ...


Not returning from IAP: 2138

Started by weldcon in LPC20009 years ago 3 replies

I am using EINT0 as Power Fail Interrupt and configured the ISR to save application critical data to Flash using IAP. Hardware configuration is...

I am using EINT0 as Power Fail Interrupt and configured the ISR to save application critical data to Flash using IAP. Hardware configuration is such that EINT0 occurs when the power fails OR at some periodical interval. As far as saving data to flash is concerned, everything works fine. However, I am not able to resume my normal program after finishing the IAP routine. Can anybody guide me? ...


IAP / Memory mapping issues

Started by timojaask in LPC20009 years ago 7 replies

Hi! Maybe someone with experience on IAP could give me some guidelines? I'm having quite a hard time with writing to flash (IAP) in my...

Hi! Maybe someone with experience on IAP could give me some guidelines? I'm having quite a hard time with writing to flash (IAP) in my program. I am using LPC2388 and my application needs to download lots of stuff from UART and write that into into flash. I am using GNU tools. My application is receiving 512bytes at a time from UART and saves that into a uint8 buffer[512]. Once buffer is fu...


Questions about IAP work with IAR workbench on LPC2148

Started by jiaomj in LPC20009 years ago 1 reply

HI~ I am using IARWB v4.2 developing IAP on LPC2148. I read the user manual and got the specific discription of how to use IAP functions. But...

HI~ I am using IARWB v4.2 developing IAP on LPC2148. I read the user manual and got the specific discription of how to use IAP functions. But when I began to do that programming in the IAR workbench following the user manual, I found that it was not working. Somebody told me that I should set configuration for the *.xcl file. But I really have no clue how to make that configured. Could somebod...


Regarding IAP command

Started by ronak bhalani in LPC20008 years ago 1 reply

Hi All, ??? I am using IAP commands given in the user manual for writing into the flash memory of lpc2103. But it's not working properly. The...

Hi All, ??? I am using IAP commands given in the user manual for writing into the flash memory of lpc2103. But it's not working properly. The system clock is 60Mhz. What could be the problem? ???? Kindly help me on this issue.


IAP throwing Undefined Instruction on some units

Started by sig5534 in LPC200012 years ago 5 replies

CPU: LPC2104 Compiler: GCCARM This is a really strange problem. I am using IAP on some of my internal routines, my code was basically done...

CPU: LPC2104 Compiler: GCCARM This is a really strange problem. I am using IAP on some of my internal routines, my code was basically done for sometime now. Everything was working. I built somemore proto boards and now a problem has shown up on 2 out of 11 boards. When the IAP call executes to do a CopyRamToFlash, the CPU locks up going into the UIE vector (Undefined Instruction Exc


How does IAP reset jumper...

Started by mayotte_d in LPC200010 years ago 4 replies

I would like to load an IAP program into the flash and think I can get the data sectors loaded but don't quite understand how the vector page...

I would like to load an IAP program into the flash and think I can get the data sectors loaded but don't quite understand how the vector page gets the new crc and jump address. This must be an easy question for someone who knows what there doing. Help please. regards;