IAP Write/Read

OP #1173151
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);
Attached files:

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now