On 2003-04-14 17:17, uPSD wrote:
1. If you want to re-program the Main flash code, then the code that is performing the IAP,must reside in the boot flash memory. Typically what customers do is to have the flash organized as follows: The startup code and IAP code is located in the Boot Flash. Given there are four - 8KB sectors this usually provides enough space to take care of this. The main flash is used to hold the main application code (the code getting updated via IAP). Every time the MCU starts from reset it starts running from the boot flash. The boot flash code will perform a check sum of the main flash to verify its contents. If it is bad, then
the boot code will attempt to perform another IAP (the last IAP failed somehow). If the main flash is good, then the boot code will jump to the main flash and run the main application. When the main application wants to perform and IAP, it will jump back to the IAP code in the boot flash to perform this operation.
2. You cannot erase the entire chip using IAP. The MCU has to be running from some code space. This would be either main flash when erasing boot, or boot flash when erasing main. We do not recommend running from SRAM and erasing both flash areas. If you loose power, then the MCU is dead. Yes in all cases, the JTAG (ISP) programming option can reprogram the the device so long as there is a JTGA connector on the board.
3. The uPSD products CANNOT be programmed or read using a conventional programmer. The uPSD ONLY works with JTAG programming! There are several programmers that support JTAG, please check out the www.st.com/micropsd web site for info
on JTAG programmers.
Retrieving data ...