EmbDev.net

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


von Erick A. (kinhu)


Attached files:

Rate this post
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);

von Amit C. (aseem)


Rate this post
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_projects/glcd_dcf77/index.html

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.