Re: MSP430 in-circuit firmware upgrade question

From: Weiyang Zhou (weiyangz_at_vpinc.biz)
Date: 11/08/04


Date: Mon, 8 Nov 2004 09:15:38 -0700

I still don't quite understand what you mean by make the interrupt vector
table
point to a table of pointers (in RAM) to the appropriate routine, may I have
a little
more details?

In our hardware design, not all pins required foe bootstrap loader are
available.
There is not JTAG connector either. We need to program the chip before put
it on
the board. How can I do this?

Thanks
Weiyang

"Paul Burke" <paul@scazon.com> wrote in message
news:2v41lbF2gfaq1U1@uni-berlin.de...
> 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
>



Relevant Pages

  • Re: MSP430 in-circuit firmware upgrade question
    ... The firmware consists of a boot loader and ... boot loader will be able to receive new application firmware ... > over UART and program it into the flash to replace the older application. ... Just a flag to steer to mthe appropriate routine from the interrupt. ...
    (comp.arch.embedded)
  • Re: Cannot call C function in "Simple" boot loader
    ... I see you're still struggling over the PPC board and vxworks boot loader. ... so when comparing a RAM address to a Flash address ... > * the RAM address will always be greater. ...
    (comp.os.linux.embedded)
  • Re: Luminary Micro cut the price of their dev boards from $775 to $249.
    ... Their popular Blackfin series now offer speeds well above FLASH ... Plus by choosing RAM over flash, they get closer to the process edge. ... but it can be S08 packaged and very cheap/high volume memory. ... interrupt support. ...
    (comp.sys.arm)
  • Cannot call C function in "Simple" boot loader
    ... The vxworks boot loader can load the "Simple" boot loader and ... so when comparing a RAM address to a Flash address ... * relocation to work when the load address is in Flash. ...
    (comp.os.linux.embedded)
  • Re: S3C2410 Nand Boot
    ... initialize the RAM and copy the bootloader from flash to RAM. ... <apellerin AT adeneo DOT adetelgroup DOT com> ... doesn't have a NOR Flash to Boot Loader. ...
    (microsoft.public.windowsce.platbuilder)