|
Forum Index : Microcontroller and PC projects : MM+ "RUN File$"
| Author | Message | ||||
| Tinine Guru Joined: 30/03/2016 Location: United KingdomPosts: 1646 |
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: AustraliaPosts: 3308 |
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 KingdomPosts: 1646 |
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. |
||||
| Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3308 |
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 KingdomPosts: 1646 |
Yeah, I figured another 8 years....UK manufacturing...always on bloody holiday! |
||||
| Tinine Guru Joined: 30/03/2016 Location: United KingdomPosts: 1646 |
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 |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |