IAP Read part ID returns 0

Started by araft0 in LPC200014 years ago

Hi, I am trying to use the IAP commands using lpc2114. The result[0] is allways 0. when the C compiler does not have...

Hi, I am trying to use the IAP commands using lpc2114. The result[0] is allways 0. when the C compiler does not have -interwok option, the uC hangs. Is there anything I forgot? is there any other configuration to the compiler any command to execute? the cod


IAP problems

Started by haim_ec in LPC200013 years ago

Hi everybody!!! I'm new in the group. I'm working with an LPC2194 and the uVision3 Keil Software using the GNU compiler. My boot loader...

Hi everybody!!! I'm new in the group. I'm working with an LPC2194 and the uVision3 Keil Software using the GNU compiler. My boot loader version (from the Flash Utility is 1.64) My problem is related with the IAP. I get to write in the flash, but the program a few miliseconds later do not work anymore. Before writing to the flash I di


lpc2368 IAP Blank check sector(s) corrupts ram when sector not blank

Started by john bougs in LPC200011 years ago 1 reply
IAP

I was wondering if anyone else has had this problem or have any suggestions? Thanks in advance, any help would be appriciated. I am having...

I was wondering if anyone else has had this problem or have any suggestions? Thanks in advance, any help would be appriciated. I am having problems with the IAP...when I call the blank check sector (s) command and the sector is blank I have no problems. If I call it and it is not blank it seems to corrupt RAM. I have not had any problems with any of the other IAP commands. typedef v...


regarding IAP

Started by Yashashri A in LPC20008 years ago 1 reply

#include #include #define radd 0x40000100 void hex_asc(unsigned int); void lcd_init(); void delay(); void datar(); void...

#include #include #define radd 0x40000100 void hex_asc(unsigned int); void lcd_init(); void delay(); void datar(); void comdr(); void ramclear(); void space24(); void display(); void main1(); char comd,data; char k; char i,*p,*s; typedef void (*IAP)(unsigned int [],unsigned int []); IAP iap_bypointer; void iap_byfunction (unsigned *cmd,unsigned *rslt,un


A strange problem when i reable the interrupt

Started by sunnyloves1983 in LPC200010 years ago

Hi all! I wrote a IAP program .Before operating the FLASH i disable all the interrupts,but when i reable the intertupts after finishing the...

Hi all! I wrote a IAP program .Before operating the FLASH i disable all the interrupts,but when i reable the intertupts after finishing the IAP,i found that the program dead ,it would jump the ASM code PreFetch.... SO PLZ tell me why it happened? Did I do something wrong ? ------------------------------------


LPC2300 IAP

Started by Baldur Gislason in LPC200010 years ago 1 reply

I'm developing code on LPC23xx, previously on LPC2378 which I then swapped out for an LPC2387 (Nice that the MCB2300 has pads for...

I'm developing code on LPC23xx, previously on LPC2378 which I then swapped out for an LPC2387 (Nice that the MCB2300 has pads for both packages) I recently started playing with in application programming of the flash memory. I must say it has disappointed me somewhat, the IAP documentation in the user manual is not very good. What disappoints me the most is the extremely slow speed I'm getti...


REG: IAP in LPC2138.

Started by rockraj_2003 in LPC200013 years ago

Hi Freind, Had anybody tried an IAP routine in LPC2138 using IAR Ewarm version. I want to write data to the FLASH. Had anybody has got...

Hi Freind, Had anybody tried an IAP routine in LPC2138 using IAR Ewarm version. I want to write data to the FLASH. Had anybody has got some example code on how to write into flash then plz send me. with regards, Rajendra R


JTAG vs ISP/IAP

Started by zerealbigboss in LPC200010 years ago 3 replies

Can anyone tell me why I would use JTAG programming if I can do the same, except debugging, with ISP/IAP? I wrote a very small application...

Can anyone tell me why I would use JTAG programming if I can do the same, except debugging, with ISP/IAP? I wrote a very small application (DOS/Windows98, Linux) for automated production programming that works on 68HCs, PICs and the LPC2119 I am testing. ------------------------------------


Weird behavior of IAP

Started by Anonymous in LPC200014 years ago

Hello, I'm using the LPC2119's IAP, and when I use the... iap_entry(command, result); I'm experiencing some weird...

Hello, I'm using the LPC2119's IAP, and when I use the... iap_entry(command, result); I'm experiencing some weird behavior... most of the time when I try to erase a sector (previously prepared for write) it just doesn't do anything... and when I Copy fro


IAP and GNU

Started by riccardoventrella in LPC200012 years ago 6 replies

Hi, I'm using the EE_demo_1_1 on a 2194. I've chnaged the sectors in order to write in the 5, 6 and 7 sectors with addresses 0000A000 and...

Hi, I'm using the EE_demo_1_1 on a 2194. I've chnaged the sectors in order to write in the 5, 6 and 7 sectors with addresses 0000A000 and 0000FFFF. I've also moved the BUFFER_SIZE to 512 etc. etc. All works fine. Now I'm trying to move the same example to be used with GNU compiler. The code hangs when the iap call is made, may be it's for different stack management from the Keil com...


Re: REPROGRAMMING THE FULL FLASH MEMORY USING IAP THROUGH RS485 NETWORK

Started by yaqu...@yahoo.com in LPC200010 years ago

Thanks Herbert and mike for your response and support. Maybe It's not so quick achievable as I was thinking it is But I think is possible. I...

Thanks Herbert and mike for your response and support. Maybe It's not so quick achievable as I was thinking it is But I think is possible. I have some experience with microcontrollers PIC but I have never used sram and IAP in a proyect. This last month I've been in a kind of migration from PIC to philips ARM architecture. I have done some basic programs (using interrupts, UARTs) and now I need t...


IAP using LPC2214

Started by Ashutosh Kulkarni in LPC20009 years ago 1 reply

Hello, I was searching on Embeddedrelated.com for IAP firmware. I am using the Hex file coming on UART and then after receiving 512 bytes of...

Hello, I was searching on Embeddedrelated.com for IAP firmware. I am using the Hex file coming on UART and then after receiving 512 bytes of that, I start the flash writing. Its same as what timojaask having problem. Then I couldnt send the reply to Timo for this issue since I wasnt on Yahoo groups. So Timo, if you are on this group and everyone else who has worked on this concept, ple...


problem in IAP

Started by Yashashri A in LPC20008 years ago 2 replies

I want store my ADC readings in flash. I am studying IAP for that. I referred user manual of LPC2148. But I am stuck at this concept, with the...

I want store my ADC readings in flash. I am studying IAP for that. I referred user manual of LPC2148. But I am stuck at this concept, with the following program, i am unable to check if it really works. I tried to check whether contents are actually stored at location 0x0000a000 or not using pointer. Can anyone please help me? Theoretically i find this program correct. But is it working or no...


New bootloader (1.52) and IAP problems?

Started by gilles_baracoda in LPC200014 years ago

Hello, I am using "old" LPC2106, and had to manually upgrade their bootloader to version 1.52. I can always program the...

Hello, I am using "old" LPC2106, and had to manually upgrade their bootloader to version 1.52. I can always program the prototypes using ISP, but some of the prototypes (about 10%...) become non functional when they are upgraded using IAP. A


IAP & Interworking problem

Started by rjwal3 in LPC200014 years ago

When programing with IAP commands with interworking enabled I get several warnings that some of the libraries I am using do not ...

When programing with IAP commands with interworking enabled I get several warnings that some of the libraries I am using do not support interworking, even when I include the interworking directory. Has anyone had this problem? I am using GNU 3.3.1 on a LPC2129.


Re: IAP calls through JTAG

Started by Joel Winarske in LPC200011 years ago

> > > I am not preparing the sector prior to programming. I first like to > > > get the error-message...

> > > I am not preparing the sector prior to programming. I first like to > > > get the error-message SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION. Right > > > now there isn't anything written into my resultspace when I use Copy > > > RAM to Flash. > > > > > Regardless, have you *tried *calling "prepare sector" prior to erase or > > program calls? > > > yes I think if the IAP example works fine on your t


Some questions about IAP on LPC21XX.

Started by foyyyof in LPC200014 years ago

the same program ,I debug it in the RAM,IAP operation completed and Compare function can return the current result (00). ...

the same program ,I debug it in the RAM,IAP operation completed and Compare function can return the current result (00). But debug in the flash ,return the incurrent (0A).why's this? and I want to know how to update the chip's bootloader.and where to download?


Difference between ISP and IAP

Started by dauzat_lilian in LPC200011 years ago 7 replies

Hello, I'm working on a LPC2103 with IAR compiler and I'm looking at the best method to reprogram its flash code memory using UART. I checked...

Hello, I'm working on a LPC2103 with IAR compiler and I'm looking at the best method to reprogram its flash code memory using UART. I checked the AN10356 and AN10256 from NXP, browsed forums and groups and I still don't know which is the best method. ISP seems to be simpler since I understood that the bootloader is able to performed all the work while IAP look like a nightmare. What I...


need help about READ BOOT CODE VERSION USING IAP

Started by Mehmet in LPC200010 years ago
IAP

I want to read Boot code version number of mcu but when i call the following code i cant read the boot code version. What can be wrong about...

I want to read Boot code version number of mcu but when i call the following code i cant read the boot code version. What can be wrong about the code? ---------------------------------------------------------------- #define IAP_LOCATION 0x7ffffff1 unsigned long command[5]; unsigned long result[3]; typedef void (*IAP)(unsigned int [],unsigned int[]); IAP iap_entry; uint ReadVersion (...


IAP questions (LPC2101) - conserving flash

Started by shergtu in LPC200013 years ago 6 replies

Hi, I searched before posting & didn't find what I was looking for, hopefully this isn't old territory. I will be using the 2101 in a new...

Hi, I searched before posting & didn't find what I was looking for, hopefully this isn't old territory. I will be using the 2101 in a new design. 2k SRAM, 8k flash (2x4k blocks) It seems as though the minimum amount that can be programmed at once (IAP) is 256 bytes, and that the RAM-->flash copy command is what does it. I need to use a portion of the flash as a non-volatile m