Hi All, I have a question please. Could we program MSP430F*** through uart port? Thanks, John. __________________________________________________
Programming flash through UART port?
Started by ●December 14, 2002
Reply by ●December 16, 20022002-12-16
>From: Ali Movahedi <mmsya@mmsy...> >Reply-To: msp430@msp4... >To: msp430@msp4... >Subject: [msp430] Programming flash through UART port? >Date: Sat, 14 Dec 2002 17:21:52 -0800 (PST) > > > >Hi All, > >I have a question please. Could we program MSP430F*** >through uart port? > >Thanks, >John. > >__________________________________________________ Yes, it is possible to write your own loader routine that takes data in over the serial port and use this to program the flash memory. A point to bear in mind are that if the code doing the programming is resident in the flash memory then this region cannot be reprogrammed, you will have to make the loader a separately built and loaded application or write a loader routine that copies itself out into RAM. I have a two part application on my projects where I have a simple loader/diagnostics self test program that is resident on the processor. This performs the power up testing and then transfers control to the main application. This application may be customised either by or for our customers and can use the loader to provide BIOS type functions. This scheme also provides very flexible updating capabilities over the main comms serial link. Ian _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?pageatures/junkmail
Reply by ●December 16, 20022002-12-16
On Sat, 14 Dec 2002 17:21:52 -0800 (PST), you wrote:
>
>
>Hi All,
>
>I have a question please. Could we program MSP430F***
>through uart port?
>
Using the hardware UARTS, yes if you already have code in it. But
for failsafe reflashing using the Timer_A uart pins see the TI app
note SLAA096B
Brian
-----------------
Brian C. Lane (W7BCL) Programmer
www.shinemicro.com RF, DSP & Microcontroller Design
Reply by ●December 19, 20022002-12-19
--- In msp430@msp4..., Ali Movahedi <mmsya@y...> wrote:
>
>
> Hi All,
>
> I have a question please. Could we program MSP430F***
> through uart port?
>
> Thanks,
> John.
Hi John
I have the same problem. I have a complete sealed display unit and
the only connections to the outside world is 3V, GND, RX and TX. This
is a hardware UART and I want to use the bootloader inside the ROM.
My plan is to connect the hardware UART RX pin to P2.2 and TX to P1.1
on the PCB. Then I hope I can disable the UART pins and then start
the bootloader with a call to address 0x0C00.
I have not tried it yet!
Kind regards, Claus
Reply by ●December 19, 20022002-12-19
>From: "claus_lm <claus@clau...>" <claus@clau...> >Reply-To: msp430@msp4... >To: msp430@msp4... >Subject: [msp430] Re: Programming flash through UART port? >Date: Thu, 19 Dec 2002 09:50:40 -0000 > >--- In msp430@msp4..., Ali Movahedi <mmsya@y...> wrote: > > > > > > Hi All, > > > > I have a question please. Could we program MSP430F*** > > through uart port? > > > > Thanks, > > John. > >Hi John > >I have the same problem. I have a complete sealed display unit and >the only connections to the outside world is 3V, GND, RX and TX. This >is a hardware UART and I want to use the bootloader inside the ROM. >My plan is to connect the hardware UART RX pin to P2.2 and TX to P1.1 >on the PCB. Then I hope I can disable the UART pins and then start >the bootloader with a call to address 0x0C00. >I have not tried it yet! > >Kind regards, Claus > If you can't get that to work then you can, as I outlined in an earlier response, write your own serial loader in its own protected flash segment. I have implemented this scheme on the MSP430F148,149 and the slave DSP563XX processors on my target board. It works well. I have never lost the boot loader program left resident in the controller. Ian http://www.satamatics.com _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid963