Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:05 01 Aug 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 : picomite mmbasic

Author Message
nbrok

Regular Member

Joined: 13/02/2023
Location: Netherlands
Posts: 60
Posted: 05:50am 13 Feb 2023
Copy link to clipboard 
Print this post

Hi,
This is my first post in this forum and I found something strange in mmbasic on pico.
When i type ? mm.info(flash) I get 0. But I can create files in the 5 flash slots.
What does mm.info(flash) mean? I have a raspberry pico board.
Greetings,
Nick de pe1goo
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2640
Posted: 06:18am 13 Feb 2023
Copy link to clipboard 
Print this post

The only mention of mm.info(flash) that I can see in the latest manual is:-

"MM.INFO(FLASH SIZE)  Returns the size of the flash memory chip"

So "? mm.info(flash)" returns 0 as it doesn't exist.

Edit
That also returns 0 on beta 18. Something not quite right!

PS
Welcome to the forum.
Edited 2023-02-13 16:25 by phil99
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 06:20am 13 Feb 2023
Copy link to clipboard 
Print this post

Hi and welcome

MM.INFO$(FLASH)
Reports which flash slot the program was loaded from if applicable


zero should mean that the current program was not run from a flash slot.

Jim
VK7JH
MMedit
 
nbrok

Regular Member

Joined: 13/02/2023
Location: Netherlands
Posts: 60
Posted: 06:45am 13 Feb 2023
Copy link to clipboard 
Print this post

  phil99 said  The only mention of mm.info(flash) that I can see in the latest manual is:-

"MM.INFO(FLASH SIZE)  Returns the size of the flash memory chip"

So "? mm.info(flash)" returns 0 as it doesn't exist.

Edit
That also returns 0 on beta 18. Something not quite right!

PS
Welcome to the forum.


Thanks for the answer. mm.info(flash) makes sense... I don't use the slots, but mm.info(flash size) should return the amount of flash space available but it doesn't   . So as you discovered also we found a bug?
I did save a program in flash slot 1 and reloaded it from that slot, but mm.info(flash) does also return 0. Probably something not quite well?
Edited 2023-02-13 16:58 by nbrok
Greetings,
Nick de pe1goo
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 07:06am 13 Feb 2023
Copy link to clipboard 
Print this post

MM.INFO$(FREE SPACE) returns the free space in the flash drive.
MEMORY reports memory used and free for program space.
VK7JH
MMedit
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2640
Posted: 07:07am 13 Feb 2023
Copy link to clipboard 
Print this post

So it would seem. Saved a short test prog. that included  "? mm.info(flash)" and  "? mm.info$(flash)" to Flash 3 and they still return 0 with "FLASH RUN 3"

("mm.info$(flash)" Gets tokenised to "mm.info(flash)")
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 07:08am 13 Feb 2023
Copy link to clipboard 
Print this post

Hello - welcome to the forums.

Yes, I am getting that report of zero also.  Not sure if I am on the latest PM firmware, I need to check that.



Smoke makes things work. When the smoke gets out, it stops!
 
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