cancel
Showing results for 
Search instead for 
Did you mean: 

boot loader code for upsd 323X

babidesai123
Associate II
Posted on April 18, 2003 at 09:40

boot loader code for upsd 323X

3 REPLIES 3
babidesai123
Associate II
Posted on May 17, 2011 at 11:53

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,

Purvi

joseph2399
Associate II
Posted on May 17, 2011 at 11:53

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.

babidesai123
Associate II
Posted on May 17, 2011 at 11:53

Hello,

thanks alot for the reply.. We are trying to develop the IPa code based on this design.

Still sopme more clarification we want from your side,

1. How the interupts will be handled during IAP?

moreover the application code which is residing in main flash has to respond frequent interrupts.

& if the boot code is in secondary then all the interrupts will code there.

& we need to remap the interrupts.If we can map the primary flash to 0000 to 7fff h then the whole design can be simplified..

But we are not abl to map both the memory in same space.

In this case, after the switching between the blocks using VM reg.

we are able to jump to location 0000h of the other memory block.

Is there any solution to achieve??

purvi

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.