2003-04-18 12:40 AM
2011-05-17 02:53 AM
Hi,
we are trying for IAP for upsd 323X.There are some list of doubts we have ,Can you please give us some clear picture of the same? 1. Where exactly the boot loader code for upsd 323X resides? It's in Main flash or second flash memory?? What is the address location for that? (so that we can take care while erasing the block/sector) 2. If we erase the entire chip& if some thing goes wrong ,can we reprogram it with JTAG?? IS THERE ANY PROVISION TO RECOVER THE SAME? 3. After erasing the sector/ block & reprogramming the same using IAP How we can read the flash memory contents. We tried to read the contents using CONVENTIONAL PROGRAMMER. But it was displaying in dialog BOX, (I) ''upsd 3233B is currently not supported by psd pro'' (II) ''Want to change the hardware set up?'' & there is no other hardware except PSD PRO We are using flash link tool for programming PSD SOFT EXPRESS 7.70 We even tried with latest version 7.90 The same message it was displaying. Eagerly waiting for the reply; Regards, Purvi2011-05-17 02:53 AM
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.2011-05-17 02:53 AM
Quote:
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.