Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 04:54 17 Jun 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 : Program size and choosing which Micromite

Author Message
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 07:32am 19 Jun 2016
Copy link to clipboard 
Print this post

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
Edited by lew247 2016-06-20
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 11:06am 19 Jun 2016
Copy link to clipboard 
Print this post

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: Australia
Posts: 3169
Posted: 05:12pm 19 Jun 2016
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 1676
Posted: 08:36pm 19 Jun 2016
Copy link to clipboard 
Print this post

Thanks Geoff and Phil23
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 09:43pm 19 Jun 2016
Copy link to clipboard 
Print this post

  Geoffg said   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).
Geoff


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: Australia
Posts: 1809
Posted: 10:07pm 19 Jun 2016
Copy link to clipboard 
Print this post

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: Australia
Posts: 1664
Posted: 10:10pm 19 Jun 2016
Copy link to clipboard 
Print this post

Please ignore the above....

I just read the manual.

Thanks.
 
mikeb

Senior Member

Joined: 10/04/2016
Location: Australia
Posts: 173
Posted: 09:47am 20 Jun 2016
Copy link to clipboard 
Print this post

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 Zealand
Posts: 9133
Posted: 03:48pm 20 Jun 2016
Copy link to clipboard 
Print this post

  Phil23 said   Please ignore the above....

I just read the manual.

Thanks.


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: Australia
Posts: 1809
Posted: 08:08pm 20 Jun 2016
Copy link to clipboard 
Print this post

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: Australia
Posts: 173
Posted: 05:28pm 22 Jun 2016
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 2794
Posted: 10:09pm 22 Jun 2016
Copy link to clipboard 
Print this post

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


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

© JAQ Software 2024