Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 19:12 28 Mar 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 : Armmite F4 - "Out of Memory": What would you expect from MEMORY cmd

Author Message
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 839
Posted: 02:19am 11 Apr 2021
Copy link to clipboard 
Print this post

Sorry to be such a PITA but . . .

I'm running MMBasic 5.07.00b9 on my F4. I'm porting a program that runs on a MM170 to my ArmmiteF4.
I keep getting an "Out of Memory" error on the F4.
So I checked with a MEMORY command both within the program and in Console mode.
Here is what I get with no program loaded (in fact it is just after I re-flashed it).

memory
Flash:
  0K ( 0%) Program (0 lines)
132K (100%) Free

RAM:
  0K ( 0%) 0 Variables
  0K ( 0%) General
114K (100%) Free

Wouldn't you expect more than 114k RAM free (the example in the manual shows 5470k).
(And I've tried Key 1 at power-up and two different F4 boards.)

Thanks,

Andrew
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 2989
Posted: 03:10am 11 Apr 2021
Copy link to clipboard 
Print this post

Manual is retaining the number for the CMM2--5470K. 114K is correct for the F4. This is what I get

> ARMmite MMBasic Version 5.07.00b10
Copyright 2011-2020 Geoff Graham
Copyright 2016-2020 Peter Mather

> memory
Flash:
 17K (12%) Program (500 lines)
115K (88%) Free

RAM:
  0K ( 0%) 0 Variables
  0K ( 0%) General
114K (100%) Free
>

PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 839
Posted: 03:20am 11 Apr 2021
Copy link to clipboard 
Print this post

Lizby,
Thank you so much for that. Very reassuring.
I don't know why, but I keep on worrying that I have broken the poor little MMite. In fact my chip wastage is quite low.
Now I can go looking for the reason the F4 is running out of memory.

Cheers,

Andrew
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 839
Posted: 05:25am 11 Apr 2021
Copy link to clipboard 
Print this post

Very strange!

The line:
Circle 602, 255, 154, 3,,RGB(red)
causes an "Error : Not enough memory" within my spaghetti.

With just the following snippet - after about 10 loops it errors out too:

 Memory  
 do
   memory
   Circle 602, 255, 154, 3,,RGB(red)
   pause 10000
 loop
End


It appears to be the line width of 3 causing the problem (a fix for me is to draw 3 circles). But this looks like a question for Peter?

Cheers,

Andrew
(apologies to any who read this while I was editing it to add more information)
Edited 2021-04-11 15:46 by Andrew_G
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 1720
Posted: 07:12am 11 Apr 2021
Copy link to clipboard 
Print this post

Same thing on the standard 320 x 240 LCD.

do :memory :circle 160, 120, 100,5,1,rgb(green): loop

gives:-

Flash:
  1K ( 1%) Program (15 lines)
131K (99%) Free

RAM:
  0K ( 0%) 0 Variables
 55K (48%) General
 59K (52%) Free
Flash:
  1K ( 1%) Program (15 lines)
131K (99%) Free

RAM:
  0K ( 0%) 0 Variables
 61K (53%) General
 53K (47%) Free
Flash:
  1K ( 1%) Program (15 lines)
131K (99%) Free

RAM:
  0K ( 0%) 0 Variables
 68K (59%) General
 46K (41%) Free
.
.
.
.
.
Flash:
  1K ( 1%) Program (15 lines)
131K (99%) Free

RAM:
  0K ( 0%) 0 Variables
100K (88%) General
 14K (12%) Free
Flash:
  1K ( 1%) Program (15 lines)
131K (99%) Free

RAM:
  0K ( 0%) 0 Variables
107K (93%) General
  7K ( 7%) Free
Flash:
  1K ( 1%) Program (15 lines)
131K (99%) Free

RAM:
  0K ( 0%) 0 Variables
113K (99%) General
  1K ( 1%) Free
Error : Not enough memory
>
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 839
Posted: 07:17am 11 Apr 2021
Copy link to clipboard 
Print this post

So its out of our league. (F4 or MMBasic?)

How do we summon Peter when we need him. Is there a spotlight we can shine on a cloud in the UK?

Cheers,

Andrew
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8516
Posted: 07:34am 11 Apr 2021
Copy link to clipboard 
Print this post

Thanks for the report. Easy fix. Will post on main thread.
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 839
Posted: 07:38am 11 Apr 2021
Copy link to clipboard 
Print this post

Thanks Peter - I hope you don't mind being demeaned by a reference to Batman!

You are a much more omnipresent superhero . . .

Andrew
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5640
Posted: 07:38am 11 Apr 2021
Copy link to clipboard 
Print this post

It is said that if you place a Microchip Backpack on the floor and walk round it 3 times while reading the Copyright section of the Micromite User Manual then HE will take on HIS earthly form.

Or it might just be in my deranged imagination...

:)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Print this page


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

© JAQ Software 2024