Keil™, An ARM® Company

File Download Area

XC16x In-Application On-Chip Flash Programming

This example program shows how to program the On-Chip Flash memory of the Infineon XC16x devices during application execution (In-Application Programming).

This example projects contains programming routines, that are copied from the Flash ROM to ERAM for execution.

To run this program...

  1. Build the project (Project Menu, Build Target)
  2. Start the debugger (Debug Menu, Start/Stop Debug Session)
  3. View the Memory Window (View Menu, Memory Window) at address 0xC10000. This Flash ROM area will be used for storing application data.

When starting the project stepping over the functions PFlash_Erase() and PFlash_Write() in main(), you can see how the content of flash memory changes.

XC16X_IAP-FLASH.ZIP (27K)
Monday, August 09, 2004