Re: MSP430 in-circuit firmware upgrade question
From: Paul Burke (paul_at_scazon.com)
Date: 11/06/04
- Next message: Paul Burke: "Re: pwm on pic microcontroller"
- Previous message: Leon Heller: "Re: pwm on pic microcontroller"
- In reply to: Weiyang Zhou: "MSP430 in-circuit firmware upgrade question"
- Next in thread: Weiyang Zhou: "Re: MSP430 in-circuit firmware upgrade question"
- Reply: Weiyang Zhou: "Re: MSP430 in-circuit firmware upgrade question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 06 Nov 2004 13:19:01 +0000
Weiyang Zhou wrote:
> I am trying to implement the in-circuit firmware upgrade feature on a
> MSP430148 based system. The firmware consists of a boot loader and
> application. boot loader will be able to receive new application firmware
> over UART and program it into the flash to replace the older application.
>
> I have a few questions related to this:
> 1. Can the boot loader program flash while executing in flash? Or does it
> have to be copied to RAM first?
While you are programming the flash, it can't execute from it, so it
automatically executes marching on the spot until the write is finished.
So you have two choices: copy your loader to RAM, or turn off all
interrupts while actually writing.
> 2. Both of my boot loader and application need to communicate over UART, how
> do I change the interrupt handler at run time?
Just a flag to steer to mthe appropriate routine from the interrupt. Or
make the interrupt vector table point to a table of pointers (in RAM) to
the approriate routine.
> 4. When build the application firmware for field upgrade, what link output
> format should I choose that's good for download and flash programming?
Something with checking would probably be better than the Texas .txt
format. OPerhaps add a CRC to each block.
> 5. When the system goes to production, how do I get a complete flash image
> so we can program it on MSP430 chips before populate it on the board?
Don't. All the flash MSP430s have a built in serial bootloader, for the
cost of 4 extra pins on the board (tx, rx, reset, gnd). Or use the JTAG
if serial is too slow.
Paul Burke
- Next message: Paul Burke: "Re: pwm on pic microcontroller"
- Previous message: Leon Heller: "Re: pwm on pic microcontroller"
- In reply to: Weiyang Zhou: "MSP430 in-circuit firmware upgrade question"
- Next in thread: Weiyang Zhou: "Re: MSP430 in-circuit firmware upgrade question"
- Reply: Weiyang Zhou: "Re: MSP430 in-circuit firmware upgrade question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|