EmbDev.net

Forum: ARM programming with GCC/GNU tools IAP Write/Read


Author: Erick Akamine (kinhu)
Posted on:
Attached files:

Rate this post
0 useful
not useful
Hi,


Im tryin to record a char acess[20] array in the flash memory of my
LPC2141 processor, but i'm finding some problems. This is my firt time
programming for a chip.
This is part of my code that i followed the instructions from Keil Carm
examples. But i'm not sure if this is working cuz i don't know how to
read the memory i recorded.
Someone can help??? The full code is atacched!


Thanks in advance!


         iap_bypointer = (IAP) 0x7FFFFFF1;

  Ram_Pointer = 0x40000100;            for (index = 0; index<0x0B;
index++){
  *Ram_Pointer = acesso[index];
  Ram_Pointer++;
  }


  command[0] = 54;                    iap_bypointer(command,result);



  command[0] = 50;
  command[1] = 5;
  command[2] = 5;
  iap_bypointer(command,result);

  command[0] = 52;
  command[1] = 5;
  command[2] = 5;
  command[3] = 12000;
  iap_bypointer(command,result);

  command[0] = 50;
  command[1] = 5;
  command[2] = 5;
  iap_bypointer(command,result);

  command[0] = 51;
  command[1] = 0x0000A000;
  command[2] = 0x40000100;
  command[3] = 256;
  command[4] = 12000;
  iap_bypointer(command,result);

Author: Amit Chatre (aseem)
Posted on:

Rate this post
0 useful
not useful
Hi,

   For IAP just go though this link.U will find a best example of IAP.
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm...

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.