Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Flash problem

2005-02-08 by Leighton Rowe

> void writeToFlash()
> {
> 	command[0] = 54; 
> 	iap(command,result,0x7FFFFFF0);
> 		
> 	command[0] = 55;
> 	iap(command,result,0x7FFFFFF0);


I'd really like to see how u defined your iap function pointer.

Regardless, ensure that the IAP function pointer switches to thumb 
mode and takes 'only' 2 arguments (Command & Result).  Note that 
function pointer must go to address 0x7ffffff1 (not 0x7ffffff0). 

Look closely at the "IAP Command" section in "Flash Memory System & 
Programming" in your User Manual.

Leighton

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.