Hi! Did anyone try to program the MSP Flash Memory (program) remotely ? Could it be done by software ? In this last question I mean send program information to the MSP storing it into a ram or External Flash and then programming this code into MSP flash.
Remote Programming
Started by ●May 26, 2006
Reply by ●May 26, 20062006-05-26
franco_bucafusco escribi > Hi! Did anyone try to program the MSP Flash Memory (program) remotely > ? Could it be done by software ? In this last question I mean send > program information to the MSP storing it into a ram or External Flash > and then programming this code into MSP flash. > > Hi Franco, What do yo uunderstand fr remote programion... you are talking about remote download ? In this case we have a similar question... we should to update the firmware via radio... any idea or tool will be welcomed. Mario Comas amrsystems, sl > > > > > . > > > Yahoo! Groups Links > > > > > > > >
Reply by ●May 26, 20062006-05-26
On Fri, May 26, 2006 at 08:29:55PM -0000, franco_bucafusco wrote:
> Hi! Did anyone try to program the MSP Flash Memory
(program) remotely
> ? Could it be done by software ? In this last question I mean send
> program information to the MSP storing it into a ram or External Flash
> and then programming this code into MSP flash.
Yes - in my current project, I send a new program via RF to the MSP430. Since
my program is less
than 1/2 the available flash memory on the MSP430, what I do is store the new
program directly
into the upper half of flash as it comes in form the RF data stream. Once the
upload is complete,
I check the contents with a CRC. If all's well, I jump to a special flash
copy routine in the
highest part of program memory (it should not be updated!), and it copies the
contents of the
second half of flash program memory down to the first half (after having erased
the first half,
or course). This flash copy routine also updates the vectors at FFE2-FFFF,
since they can be
different for a new program. Then, I make sure the watchdog is enabled, and run
a for(;;) loop to
have the watchdog reset the micro. The new program begins. It works very well
for me.
The fun thing is that I am doing this using inductive power coupling, which
supplies both the
power and the RF data link. Amazingly, the strong electromagnetic field does
not appear to cause
problems when writing to flash...
Take care,
-Chris
Reply by ●May 26, 20062006-05-26
This has been discussed here at length on several occasions, and been
implemented by many of us. Check back through the posting history, I
know it isn't easy, but there is a lot of stuff there. perhaps one day
it might be indexed into a FAQ or something similar.
Al
franco_bucafusco wrote:
>Hi! Did anyone try to program the MSP Flash Memory
(program) remotely
> ? Could it be done by software ? In this last question I mean send
>program information to the MSP storing it into a ram or External Flash
>and then programming this code into MSP flash.
>
>
>
>
>
>
>.
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
Reply by ●May 27, 20062006-05-27
We are currently developing a product that does this -- firwmare
updating. It's not too hard if you can architect a situation where
you do not overwrite the flash segments from which you're running.
That is, your "upgrade" or "bootload" code should be
isolated and
protected from the code you want to re-program.
We do not execute code from RAM (although it is certainly an option).
The would theorectically give you the option of re-flashing the whole
program, including your boot loader, but it's too risky in our
application.
Stuart
--- In msp430@msp4..., "franco_bucafusco" <bukitoo@...> wrote:
>
> Hi! Did anyone try to program the MSP Flash Memory (program) remotely
> ? Could it be done by software ? In this last question I mean send
> program information to the MSP storing it into a ram or External Flash
> and then programming this code into MSP flash.
>
Reply by ●May 28, 20062006-05-28
Deluge from the TinyOS project is what you want to take a look at. \ It assumes of course that you have a radio - TinyOS has a stack for 802.15.4. Take a look - it works pretty good. Regards, John W. ----- Original Message ----- From: "Mario Comas" <mario.comas@mari...> To: <msp430@msp4...> Sent: Friday, May 26, 2006 2:20 PM Subject: Re: [msp430] Remote Programming franco_bucafusco escribi > Hi! Did anyone try to program the MSP Flash Memory (program) remotely > ? Could it be done by software ? In this last question I mean send > program information to the MSP storing it into a ram or External Flash > and then programming this code into MSP flash. > > Hi Franco, What do yo uunderstand fr remote programion... you are talking about remote download ? In this case we have a similar question... we should to update the firmware via radio... any idea or tool will be welcomed. Mario Comas amrsystems, sl > > > > > . > > > Yahoo! Groups Links > > > > > > > > . Yahoo! Groups Links
Reply by ●May 30, 20062006-05-30
Chris, Slightly off topic, but I spent quite a while trying without success to get inductive power transfer working to charge batteries in a sealed, waterproof product. Can you point me towards any reference books, resources, or articles on how to do this? I measured the output frequency of several inductive chargers using a coil (20-50KHz), but wasn't able to get more than a milliamp or so transferred when I made my own magnetics and power driver. Any suggestions appreciated. Lloyd --- In msp430@msp4..., Christopher Cole <cole@...> wrote: > > Yes - in my current project, I send a new program via RF to the MSP430.... > The fun thing is that I am doing this using inductive power coupling, which supplies both the power and the RF data link. Amazingly, the strong electromagnetic field does not appear to cause > problems when writing to flash... > > Take care, > -Chris >
Reply by ●May 30, 20062006-05-30
On Tue, May 30, 2006 at 12:45:00PM -0000, lslonim2 wrote: > Slightly off topic, but I spent quite a while trying without success > to get inductive power transfer working to charge batteries in a > sealed, waterproof product. Can you point me towards any reference > books, resources, or articles on how to do this? I measured the output > frequency of several inductive chargers using a coil (20-50KHz), but > wasn't able to get more than a milliamp or so transferred when I made > my own magnetics and power driver. Any suggestions appreciated. Lloyd, What was your coil geometry / separation? What were your transmitter and receiver coil inductances? What was your drive current and voltage across the transmitting coil? What material was your sealed case made from? What is the power needed by the target circuit? In my system, the power transmitter coil and receiver coil are coaxial and coplanar, which helps... but since the receiver is in the body (medical implant), the separation between the two coils is quite large. My power amp consumes about 20W, and with this I can couple about 50mW into the implant. One good document worth reading is AN677 by Microchip. For an excellent overview of a the EM propogation model: Google for the terms erc report 69 inurl:pdf Take care, -Chris -- /> Christopher Cole <\ <\ << Cole Design and Development \\ email: cole@cole... \\ \\ Computer Networking & Embedded Electronics \\ web: http://coledd.com >> \> \> </
Reply by ●June 5, 20062006-06-05
In case it wasn't 100% clear last time I mentioned this. You do not
need any firmware code inside the MSP430 to perform remote firmware
upgrades. Take a look at the http://www.hcc-embedded.com/site.php
MSP430 uDrive Windows driver which was specially developed to make
even a blank 1Kb Flash device look like a TCP/IP sharable drive
visible across any IP or RF Wireless-UART based network. All you
need to do is install the driver on a local PC (attach the MSP43)
and copy the binary file to the drive or PC's TCP/IP address, from
anywhere on the PC network.
Colin,
--- In m...@yahoogroups.com, "Stuart_Rubin"
wrote:
>
> We are currently developing a product that does this -- firwmare
> updating. It's not too hard if you can architect a situation where
> you do not overwrite the flash segments from which you're running.
> That is, your "upgrade" or "bootload" code should be isolated and
> protected from the code you want to re-program.
>
> We do not execute code from RAM (although it is certainly an
option).
> The would theorectically give you the option of
re-flashing the
whole
> program, including your boot loader, but it's
too risky in our
> application.
>
> Stuart
>
> --- In m...@yahoogroups.com, "franco_bucafusco" wrote:
> >
> > Hi! Did anyone try to program the MSP Flash Memory (program)
remotely
> > ? Could it be done by software ? In this last
question I mean
send
> > program information to the MSP storing it into a
ram or External
Flash
> > and then programming this code into MSP flash.
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
You can search right from your browser? It's easy and it's free. See
how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/CFFolB/TM
--------------------------------~->