The application note, APNT_138, refers to the file PFLASH.A66, which contains the functions: PFlash_Write, PFlash_Erase, PFlash_Reset. However, I can't find this file anywhere. I assume that you have to write these routines yourself. If so, are there any examples for reading/writing/erasing the on-chip flash memory on a C166 device. Thanks
http://www.keil.com/appnotes/docs/apnt_138.asp
There are several C166 derivatives with on-chip flash memory, each having different procedures for erasing/writing the flash. Consult your microcontroller's datasheet. - mike
To see how to program the C16x internal flash, just install the Infineon Memtool, downloadable from this page, http://www.infineon.com/cgi/ecrm.dll/ecrm/scripts/prod_cat.jsp?oid=-8137 then, in the installation directory tree, you will find sources.zip, a zip file containing the source code of the flash programming routines.