Yahoo Groups archive

Lpc2000

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

Message

RE: [lpc2000] erase flash memory thru command prompt

2006-05-17 by Pandurang Shinde

hi,
 
        when you invoke iap routine with command in command array , result array contain the status(result) of the operation.
Return Code may be 

CMD_SUCCESS |

COMPARE_ERROR |

COUNT_ERROR (Byte count is not a multiple of 4) |

ADDR_ERROR |

ADDR_NOT_MAPPED

0 - CMD_SUCCESS Command is executed successfully.

1 - INVALID_COMMAND Invalid command.

2 - SRC_ADDR_ERROR Source address is not on a word boundary.

3 - DST_ADDR_ERROR Destination address is not on a correct boundary.

4  -SRC_ADDR_NOT_MAPPED Source address is not mapped in the memory map.

u can get this inforamtion in flash memory system & programming section.
I hope it is what u expected.
 
Regards,
Pandurang S.

 
________________________________

From: lpc2000@yahoogroups.com on behalf of richa gupta
Sent: Mon 5/15/2006 9:46 PM
To: lpc2000@yahoogroups.com
Subject: [lpc2000] erase flash memory thru command prompt


   
  For erasing the contents of flash memory from the command prompt  this is the syntax but what will be value of result
   
   
  unsigned long command[5];
  unsigned long result[2];
  or
  unsigned long * command;
  unsigned long * result;
  command=(unsigned long *) 0x.....
  result= (unsigned long *) 0x.....
  Define pointer to function type, which takes two parameters and returns void. Note the IAP returns the result with the base address of the table
  residing in R1.
  typedef void (*IAP)(unsigned int [],unsigned int[]);
  IAP iap_entry;
  Setting function pointer
  iap_entry=(IAP) IAP_LOCATION;
  Whenever user wishes to call IAP within the application, the following statement could be used.
  iap_entry (command, result);
   
  what will be the value of result
   
   
  thanks in advance
  Richa

                  
---------------------------------
Yahoo! Mail goes everywhere you do.  Get it on your phone.

[Non-text portions of this message have been removed]




SPONSORED LINKS 
Microcontrollers <http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&c=3&s=69&.sig=c-HXthtbZy4TZbI3ib0PMg>  	Microprocessor <http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&c=3&s=69&.sig=ijt0SspWtjogcHCuFD0lUQ>  	Intel microprocessors <http://groups.yahoo.com/gads?t=ms&k=Intel+microprocessors&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&c=3&s=69&.sig=WOZdpklkgHbXR5quAgrl5w>  	

________________________________

YAHOO! GROUPS LINKS 


	
*	 Visit your group "lpc2000 <http://groups.yahoo.com/group/lpc2000> " on the web.
	  
*	 To unsubscribe from this group, send an email to:
	 lpc2000-unsubscribe@yahoogroups.com <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe> 
	  
*	 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . 


________________________________




[Non-text portions of this message have been removed]

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.