Codewarior 10.x includes a pretty flexible flash programmer. Included with the standard install of the tool is a long list of common flash devices. However, if you're creating a new custom board, with a very new technology flash device it may be necessary to add a new device to the Codewarrior flash programmer.
Documentation on exactly how to do this exists in the CW install at:
..\CW PA v10.x\PA\PA_Tools\FlashToolKit\Documentation
I've attached it for your convenience.
Adding a flash device involves modifying a few XML configuration files within the CW install tree. There are really only a few different algorithms used for flash, so as long as the new device uses one of the existing ones (i.e. Intel or AMD) it's very straightforward, and the new XML file will be used just to describe the Manufacturer ID code and sector map.
Flash configuration files are located in:
..\CW PA v10.x\PA\bin\plugins\support\Products\ProductData\FPDevices.mwpdb\FP
In this directory we see a list of currently supported flash devices (one XML file per device)
In order to add a new device we need the following information from the device datasheet:
Manufacturer ID code
Device ID code
Number of sectors
Starting and ending address for each sector
If the chip can be erased
Options for data width
Number of flash devices
Algorithm (need to pick from one of the existing algorithms)
As an example, I am going to show how to add a Micron / Numonyx PC28F00AP30BF flash device. According to the datasheet:
Manufacturer ID = 0x89
Sector Map shows 4 sectors of 16K words followed by 1023 sectors of 64K-words
ChipErase = yes
Algorithm looks like an intel based algorithm, which we can tell from table 7 of the Flash datasheet (I compare the method needed to program or erase a sector to one of the flash parts with an existing XML file)
I create a new file named:
..\CW PA v10.x\PA\bin\plugins\support\Products\ProductData\FPDevices.mwpdb\FP\PC28F00AP30BF.xml