LPC2138 Flash Write Problem

Jun 25, 2008 2 Replies

(Apologies if posted twice, couldn't find message)



I am trying to get Flash write working on LPC2138 with no sucess. Code is below. Any help appriciated.



typedef void (*IAP)(unsigned int [],unsigned int []); IAP iap_bypointer; void iap_byfunction (unsigned *cmd,unsigned *rslt,unsigned entry);



unsigned int command[5]; unsigned int result[5]; char Ram_Arry[512] = "Hello World"; char *Ram_Pointer;



void flash_write(void) { unsigned char index;



iap_bypointer = (IAP) 0x7FFFFFF1; //set IAP entry address in functio pointer



//Ram_Pointer = &Ram_Arry[0]; Ram_Pointer = 0x40005000;



for (index = 0; index


Op Wed, 25 Jun 2008 13:22:56 +0200 schreef bm_seo :

What parts fail and what parts succeed and how did you determine that?

Gemaakt met Opera's revolutionaire e-mailprogramma: http://www.opera.com/mail/

Is this procedure being executed from RAM? If not, that is your problem.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required