![]() |
Forum Index : Microcontroller and PC projects : Loading prog. with MMEdit to Pico - "Not Enough Memory"
Page 1 of 2 ![]() ![]() |
|||||
Author | Message | ||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Hi all, {An update. I'm sure that at midnight I had tried MMEdit v4 without success but I have just uninstalled/reinstalled V4 and it appears to work - so it appears that it might be a problem with MMEdit v5? (Which I might add is a great program) - Andrew} I've been happily writing/loading/correcting a program using MMEdit (v5) to a Pico (v.5.07.4). Its not large and has no big arrays - yet. Then out of the blue, as I try to upload a program, I get the message: “ AUTOSAVE Upload completed Error : Not enough memory” MEMORY shows Program and RAM are 100% free. I've tried, without success (several times): - smaller programs (ie less than 10 lines) - UPDATE FIRMWHARE - Using the BOOT Button to load Clear_Flash.uf2, then re-flashing MMBasic - I've Uninstalled and reinstalled MMEdit - I've rebooted the PC and tried a different USB cable - a different Pico! - I've even 'slept on it'. After each attempt the '>' prompt is there and it runs commands from the command line. Using the editor I can write a small program and it saves to flash. I can then LIST and RUN it. Any ideas? Thanks, Andrew Edited 2022-07-10 08:27 by Andrew_G |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
Maybe upload your program? PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Hi Lizby, Thanks for trying. It is independent of my code - I've tried several known working programs. Here is some simple code: 'TBS_Test.BAS Print "This is the program - press ESC to end" Do: Loop While ASC(inkey$) <> 27 END Here is the screen shot: ![]() You'll see that is fails the load and has nothing to RUN. LISTing reveals nothing has been saved (not surprising). Cheers, Andrew |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
Puzzling. I have had the "Not enough memory" error when BLIT READs had not been CLOSEd (I seem to recall that was fixed), but reflashing (or maybe flashing Clear_Flash) cleared it. I don't suppose loading the program with XMODEM would make a difference? ~ Edited 2022-07-10 10:27 by lizby PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
I have often had the same and I just ignore it and the code runs OK ? "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Lizby - very puzzling. It loads programs perfectly with MMEdit version 4. It is version 5 that is not happy. (I think MMedit uses XMODEM?) Palcal - thanks to you too. It is downloading enough to receive the "NEW" command which kills any program on the Pico, but it then fails to save whatever else it has downloaded - there is nothing to RUN (or LIST etc). Very confusing - I'm now using MMEdit version 4 (which works OK) but I am keen to discover the problem. (I also tried 38400 Baud rather than 115200 and CRUNCH but no go). Cheers, Andrew |
||||
disco4now![]() Guru ![]() Joined: 18/12/2014 Location: AustraliaPosts: 1003 |
I think MMEdit4 uses XMODEM, MMEdit5 uses AUTOSAVE, so it looks like when its using AUTOSAVE. Not sure if you have restarted your PC, but I have had occasions where I needed to kill the Maximite Control Centre via Task Manager and relaunch MMEdit5. Edited 2022-07-10 14:11 by disco4now Latest F4 Latest H7 FotS |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Hi Disco (et al), Thanks but yes I have been turning my PC off (Win10) periodically (I too have seen MCC lock up). (It is quite frustrating). Cheers, Andrew |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
MMEdit 4 uses XMODEM if you do a 'load and run' You can use AUTOSAVE if you load from the chat window. MMEdit 5 uses AUTOSAVE by default. If you drag and drop multiple files onto the control center, it will use XMODEM. It will also use XMODEM for any file that is not BAS or TXT I can't think of any reason for your problem but if you can send me a copy of your MMCC.inf file, I might see something. Rather than reload the program, it is usually worth trying deleting the MMCC.inf and MMEdit5.inf files and letting MMEdit start fresh. Re-installing does not replace those files. I have done a bit if fiddling with the programs, especially the control centre since the last version posted to my website so you could try the attached exes and see if that makes a difference. I have not had any problems loading your example program. Maximite Control Centre Build date: 2022/07/08 Data server on port 50900 started Control server on port 50899 started started C:\Users\Jim\Documents\apps\maximite\apps - Copy\untitled.bas Uploading using: 'target port\COM4:115200 s\picomite Upload started Connected to COM4 at 115200 NEW > AUTOSAVE Upload completed Saved 131 bytes > RUN This is the program - press ESC to end > I am not sure if your extra remarks after the settime is causing problems. I can't see how. MMedit5.zip Windows 64 bit only. I have started work on the file manager. MMCC Mode menu. You can transfer to the 'mite but not from yet. You can also delete multiple files without any "are you sure" prompt so take care. I am looking at saving to the pico flash slots but my NAS is not well so I have been busy rescuing my file history - rather slowly. They always die on the weekend when you can't get bits easily. Jim VK7JH MMedit |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Hi Jim, Thanks for answering the Bat-Call. There are no MNCC.inf nor MMEdi5.inf files (that I can see), neither with the MMEdit5 nor 4 files. There is a notportable.inf file with v5 that says: This file indicates that the installation is "Portable" I'll play with the .EXE's now. Thanks, Andrew |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
In the editor, help/about will tell you where the data folder is. If the notportable.inf file was named portable, it indicates a portable installation. I just left the file there to make sure I remember to include it in the ZIP for portable. Jim Edited 2022-07-10 15:57 by TassyJim VK7JH MMedit |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Hi Jim, I just tried the two EXEs. No luck I'm afraid. Andrew |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Hi Jim, Here are the two .inf files. MMedit5 infs.zip Should I now delete the two *.inf files (I have saved copies)? Many thanks, Andrew |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Hi Jim, You are a marvel! Deleting the two *.inf files did the trick! I'm now using the distribution EXEs off your site. I assume that I somehow corrupted/confused one of the *.infs. That would fit the symptoms of going from working to non working in a flash (pun intended). I'm happy to keep delving if it helps you identify the cause. Please have a beverage of your choice one me! Cheers, Andrew Edited 2022-07-10 16:38 by Andrew_G |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
Line 105 of MMCC.inf has a lot of extra text. Delete everything after settime\ and see if that makes a difference. I will have to work out how that happened. At a quick look, I can't see anything else that's a worry. Jim VK7JH MMedit |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
Yes! That was the problem. Now to find out how it happened. Jim VK7JH MMedit |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Hi Jim, OK, I have reverted to the two *.infs I sent you and deleted the extraneous text after settime\ in MMCC.inf It still works! Cheers, Andrew |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
I think the problem is caused by my less than idea way of trying to cater for all possible line endings. I have used something more robust in the recent work but need to retrofit it to the other locations. For now, I will chop the line of after any additional ' marks. Thanks for be a test bunny. Jim VK7JH MMedit |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Jim, You wouldn't believe it! Its done it again. Here are the two .infs (I've added an X to their names) XMMedit5.zip There is no rush to fix it as I know how to work around it and I've got a few things on - as I suspect you have. But I'm most happy to help you chase it down. Cheers, Andrew |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
Try this MMCC.exe It doesn't fix the cause but should fix the resulting problem. MMCC.zip If it's wet tomorrow, I might work on the proper fix. Jim VK7JH MMedit |
||||
Page 1 of 2 ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |