![]() |
Forum Index : Microcontroller and PC projects : picomite mmbasic
Author | Message | ||||
nbrok![]() Regular Member ![]() Joined: 13/02/2023 Location: NetherlandsPosts: 60 |
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: AustraliaPosts: 2640 |
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: AustraliaPosts: 6283 |
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: NetherlandsPosts: 60 |
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 ![]() 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: AustraliaPosts: 6283 |
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: AustraliaPosts: 2640 |
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 ZealandPosts: 9610 |
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! |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |