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 : Program size and choosing which Micromite
Author | Message | ||||
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1676 |
This is going to seem a stupid question for you experts in Pic programming and so on but to me it's a blank How do I work out what size a program will take once it's programmed into the micromite? And how do I know if I will need a 28 pin Micromite or a Micromite + ? The reason I ask is I tried loading part of the weather program into the micromite today and it failed with the error not enough memory or words to that effect |
||||
Phil23 Guru Joined: 27/03/2016 Location: AustraliaPosts: 1664 |
Try typing memory at a prompt to see what is used & available with different bits of code. I was playing with some code that I'd heavily added bits to, commented bits out, duplicated bits with different scenarios.... It was using 76% in the MX170. Used the "Crunch Option" in MMedit to strip it all down & it was heaps smaller. Don't remember figures. Cheers |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3169 |
Often memory is used up by fonts and in that case you can load the fonts first and save them in the library (LIBRARY SAVE). That compresses the font and saves a lot of memory. Geoff Geoff Graham - http://geoffg.net |
||||
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1676 |
Thanks Geoff and Phil23 |
||||
Phil23 Guru Joined: 27/03/2016 Location: AustraliaPosts: 1664 |
When you say "Load them First" how is that achieved? Does it mean you load a BAS file that contains only the fonts, with say MMedit, and then issue the LIBRARY SAVE command at the prompt? IE, [Code] ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' embedded fonts ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' Font: Hom_16x24_LE ' Includes all ASCII characters DefineFont #2 5F201810 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 80010000 80018001 80018001 80018001 00018001 00010001 00000000 80010000 00008001 00000000 ... ... ... 00000000 00000000 00000000 00000000 00000000 00000000 98190C0F 0000F030 00000000 00000000 00000000 00000000 00000000 End DefineFont [/code] Thanks Phil. |
||||
palcal Guru Joined: 12/10/2011 Location: AustraliaPosts: 1809 |
Phil, Yes that is exactly how it is done. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
Phil23 Guru Joined: 27/03/2016 Location: AustraliaPosts: 1664 |
Please ignore the above.... I just read the manual. Thanks. |
||||
mikeb Senior Member Joined: 10/04/2016 Location: AustraliaPosts: 173 |
Geoff must be getting tired of us saying 'We just read the manual' There are 10 kinds of people in the world. Those that understand binary and those that don't. |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9133 |
LOL!!!! We've all been there, Phil. Welcome to the club. Smoke makes things work. When the smoke gets out, it stops! |
||||
palcal Guru Joined: 12/10/2011 Location: AustraliaPosts: 1809 |
WHEN ALL ELSE FAILS READ THE INSTRUCTION BOOK. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
mikeb Senior Member Joined: 10/04/2016 Location: AustraliaPosts: 173 |
Hi all, If I am guilty, in future, don't waste your time with an explanation. Just respond with 'RTFM'. Not looking for a quick answer but a 'pointer' in the right direction. I certainly won't take offence. There are 10 kinds of people in the world. Those that understand binary and those that don't. |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
I have been working with MMs from the early days, and have written & developed many programs for literally hundreds of MMs. However, I still refer to the excellent manual at least twice a day and often learn something new! Do not underestimate the manual's content (even if you think you 'know it all'). Geoff has created a masterpiece IMHO. Not too complicated, enough detail, and great examples. May not be to everyones 'format' - but at least refer to it first if you are stuck with something. All that said, if you are a 'beginner', the manual can seem daunting (but still worth a read ) For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
Print this page |