Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 02:08 13 Nov 2025 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 : MM+ "RUN File$"

Author Message
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 02:15pm 15 Jun 2019
Copy link to clipboard 
Print this post

Haven't found this documented anywhere...It's obvious what it's for but does it clear memory first or are existing variables preserved?

Does this mean that; when structured accordingly, a program can be much bigger when utilizing an SD card?

 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3308
Posted: 02:35pm 15 Jun 2019
Copy link to clipboard 
Print this post

It clears all memory including variables.

RUN File$ was intended to enable the remote updating of programs. If you wanted to use this feature to swap parts of an extra large program in and out of memory you could save variables to the SD card BUT the repeated loading of new program segments into the MM+ could eventually wear out its flash.
Geoff Graham - http://geoffg.net
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 03:05pm 15 Jun 2019
Copy link to clipboard 
Print this post

Thanks Geoff. This wouldn't be a problem in my application.

I'm on with my first big E100 project and filling up the flash at an alarming rate despite my efforts to optimize the code size. I have several operating modes but they don't need to share data at all.

Edit: And these modes are only switched once or twice per day...if that. Edited by Tinine 2019-06-17
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3308
Posted: 06:25am 16 Jun 2019
Copy link to clipboard 
Print this post

That sounds doable. The flash endurance spec is 20000 erases/writes so at two memory erase/loads per day that is 27 years. Probably much more in practice as I bet that the specs are conservative.

Geoff
Geoff Graham - http://geoffg.net
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 06:59am 16 Jun 2019
Copy link to clipboard 
Print this post

  Geoffg said   That sounds doable. The flash endurance spec is 20000 erases/writes so at two memory erase/loads per day that is 27 years. Probably much more in practice as I bet that the specs are conservative.

Geoff


Yeah, I figured another 8 years....UK manufacturing...always on bloody holiday!

 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 10:36am 06 Jul 2019
Copy link to clipboard 
Print this post

Boy, am I red-faced/relieved/excited

I am almost done and only at 14K of flash usage.
Also, the execution speed turns out to be overkill. I am now considering switching to the 28pin device.

There's a lot to be said for low pin-count devices on a distributed (RS485/422) network
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025