Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 05:10 30 Apr 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Auto Updating firmware in MM+

Author Message
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 712
Posted: 07:03am 08 Jan 2016
Copy link to clipboard 
Print this post

Hello,

(how) is it possible to auto-update the program in an MM+ via SD-CARD on site?

It should be possible to detect a program Update on a MM+ via SD-Card.
Idea:
Copy the new program on a sd-card, send it to the site, pluig in the SD-Card, reboot,
the MM+ detects a new version, copy's it automaticaly to program memory (flash) and restarts with tne new program?

Would this be a working solution?
Has anyone another idea?
Proof of concept?


THX

Atmega8
 
boss

Senior Member

Joined: 19/08/2011
Location: Canada
Posts: 268
Posted: 08:15am 08 Jan 2016
Copy link to clipboard 
Print this post

@atmega

If you want to update MM FW you have to erase the PIC chip. So the answer is no
it is impossible to update the FW from SD card yet.

Bo
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 08:33am 08 Jan 2016
Copy link to clipboard 
Print this post

It is possible.
You would first need to load a program in RAM that will read the flash and write those values in flash. Or you reserve a part of the flash for a bootloader.:)
Which is already done many times. Most of them use the USB as a means to get the data to be programmed into flash. The data could just as well come from an sd card.

Microblocks. Build with logic.
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 712
Posted: 10:59am 08 Jan 2016
Copy link to clipboard 
Print this post

@ Boss

I Never talked about a Firmware (Mmbasic) Update,
The Question is about updating the programm running in the Mite, from sdcard.
Has anyone a detailed description for a working procedure?

THX


 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 11:41am 08 Jan 2016
Copy link to clipboard 
Print this post

That is easy, just use:
LOAD file, R

The ,R suffix causes the program to be run immediately after it has been loaded.

Geoff
Geoff Graham - http://geoffg.net
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 712
Posted: 08:30pm 08 Jan 2016
Copy link to clipboard 
Print this post

And before i will Check If the content of The sd Card IS differen, newer or whatever than The Programm in The
Then load it with load.

Done.

Thank you all.Edited by atmega8 2016-01-10
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2794
Posted: 11:55pm 09 Jan 2016
Copy link to clipboard 
Print this post

  atmega8 said   @ Boss

I Never talked about a Firmware (Mmbasic) Update,
The Question is about updating the programm running in the Mite, from sdcard.


I think Boss was reading the Title of your thread which clearly mentions Firmware!
For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 712
Posted: 10:11am 10 Jan 2016
Copy link to clipboard 
Print this post

Uahh,


mea culpa, sorry
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024