Did someone mention in another thread a way of getting a Pico into bootloader mode without having to hold down the pesky button ? . Some PicoMite command like ‘bootloader on’ ?..
Found the answer, ‘update firmware’. Hold down the power button to get out of the loop…
Hello all, I have a Pico 2W. Can I use the regular Pico2 firmware on it (as I do not need at this point the wifi part) or do I have to use the Webmite version? I know the Webmite version includes features to support wifi - are there any features that are excluded (vs the non W Pico 2)? Thank you for your help!
Should work. The only difference I remember is 3D graphics and ‘Advanced Graphics’ (display boxes, radio switches etc) are removed to make space for web functions…
UPDATE. Note your ‘Program’ space is less with Webmite, no doubt taking space for its own functions. It is also limited to a processor speed of 252Mhz.
Does this firmware use significantly more memory than the stock? I installed a Pico 2 in my PicoCalc and flashed the version of this specific to the Pico 2 (after updating the keyboard firmware, too) and now I can’t run some programs that run fine on the original firmware and on the Pico 1.
When I try to run any of the apps from here, I get an error that says there’s not enough memory. It feels like they should run considering the Pico 2 has almost double the memory of the original Pico that they run fine on with the out of the box firmware.
Which specifically of those programs did you try to run? I am the one who updated Hamurabi and Lunar, both run on my Pico 2W just fine. Most of those programs were written for computers with a whole lot less memory than the Pico 2 has. If you run the memory command, how much program memory does it say you have? It should be in the ball park of 208K.
I tried oregon.bas, slots.bas, matrix.bas, blackjack.bas, alien.bas, lunar.bas, and m8ball.bas. All game me the error “Error: Not enough memory”
If I run the memory command, it says there’s 287k program memory free and under RAM, 336K free. Even on a clean boot, the errors still happen. But if I run my own hello world program or the included “lorenz.bas” program that came with it, they run just fine.
I tried all of those programs and all of them ran just fine. I am using a Raspberry Pi Pico 2W running the WebMite_WEBRP2350_V6.00.02RC24.uf2 firmware. This is the output I get from the memory command after a clean boot;
Program:
0K ( 0%) Program (0 lines)
208K (100%) FreeSaved Variables:
16K (100%) FreeRAM:
0K ( 0%) 0 Variables
0K ( 0%) General
256K (100%) Free
I am pretty sure none of those programs require more that 64K of free memory to run.
I hadn’t heard of any memory issues until now, but I also have only tested on a Pico2W (running WebMite_WEBRP2350_V6.00.02RC24.uf2, mostly, but also PicoMite_PICORP2350_V6.00.02RC24.uf2 as a quick test). Also tested the Pico PicoMite_PICO_V6.00.02RC24.uf2, but that doesn’t really apply here. I don’t own a Pico 2 (without the W) to test.
It’s possible this is the first time anyone has tested the PicoCalc PicoMite buld on a Pico2. As far as I know, the memory configuration should be the same as the non-PicoCalc builds available here: https://www.thebackshed.com/forum/ViewTopic.php?TID=17777&P=45#239353
Might be worth trying the PicoMiteRP2350V6.00.02RC24.uf2 file from that archive on your Pico2. You’d want to remove it from the PicoCalc and just plug the module into your PC via USB and then boot and get a serial connection going. The manual for the previous version has some information about setting that up and software than can be used, but pretty much anything that can get you a serial connection to the correct com port should give you a prompt. You won’t have the SD though, but I guess you could copy/paste one of those basic programs that is giving the out of memory error and see what it says. Graphical stuff won’t work without the display, but many of those are text based and should work over the serial connection as well.
Also, just to be clear, how are you running those programs? Did you copy, say, oregon.bas to the root of your SD card, and then used:
run "b:\oregon.bas"
or
load "b:\oregon.bas"
run
(There are ways to shorten that command, if you’ve already set up b: as your default location, and you don’t want to type the whole thing, but for this I figured I’d be explicit.)
I’m using the PicoMite_PICORP2350_V6.00RC24.uf2 one. I have the non-WiFi Pico 2 with the headers on it. I might try that firmware you linked just to test, but I’d really prefer to be able to run programs off the SD card.
Also, just to be clear, how are you running those programs? Did you copy, say, oregon.bas to the root of your SD card, and then used:
run "b:\oregon.bas"
or
load "b:\oregon.bas" run
The files are copied to the root of my SD card. I used:
drive "b:"
run "oregon.bas"
This same method worked fine with the programs that came on the SD card but give me the memory error for any I downloaded from the repo.
I have a Pico 2 with no wifi, I can flash PicoMite_PICORP2350_V6.00RC24.uf2, mount it into my PicoCalc and try to duplicate his issue. However I am on vacation and doing family stuff, so I will not be able to get to it until later tonight.
Probably something about the way the file is being downloaded that is resulting in a non-MMbasic compliant line termination.
Not sure what that could be. I just downloaded them from GitHub on my PC.
Make sure you’re doing no kind of newline conversion…
I didn’t modify the downloaded files in any way. Just downloaded them and transferred them to the SD card.
I’m saying that if you got the files through git git may have done newline conversion if you had it enabled.
I did a git clone of rlauzon’s repo straight on to my SD Card. I flashed the Pico 2 with PicoMite_PICORP2350_V6.00RC24.uf2 and installed the Pico 2 into my PicoCalc. I ran oregon.bas and it executed just fine, I died pretty quickly, but it did run. I successfully played through several games of both lunar.bas and hamurabi.bas. For good measure I ran zmim and played several turns of Zork. Bad Pico maybe?
Here is my Option and Flash list, Files on A: and Memory commands for comparison.
option list
PicoMite MMBasic RP2350A Edition V6.00.02RC24
OPTION SERIAL CONSOLE COM1,GP0,GP1
OPTION SYSTEM SPI GP10,GP11,GP12
OPTION SYSTEM I2C GP6,GP7, SLOW
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION DEFAULT COLOURS GREEN, BLACK
OPTION KEYBOARD I2C
OPTION CPUSPEED (KHz) 150000
OPTION LCDPANEL CONSOLE , FF00
OPTION DISPLAY 26, 40
OPTION LCDPANEL ILI9488P, PORTRAIT,GP14,GP15,GP13,INVERT
OPTION SDCARD GP17, GP18, GP19, GP16
OPTION AUDIO GP26,GP27’, ON PWM CHANNEL 5
OPTION PLATFORM PicoCalcflash list
Slot 1 available
Slot 2 available
Slot 3 availablefiles
. .. 00:00 01-01-2024 4 bootcount 2 directories, 1 file, 2134016 bytes free
A:/memory
Program:
0K ( 0%) Program (0 lines)
288K (100%) FreeSaved Variables:
16K (100%) FreeRAM:
0K ( 0%) 0 Variables
0K ( 0%) General
336K (100%) Free
My options list, flash list, files list, and memory match yours exactly. No differences or issues found there.
Not sure if it’s a bad pico, but I can run smaller programs without any issue. It’s not like no programs can run.
I figured that was going to be the case, I really just wanted to give adcockm as much information as possible, since he does not have a Pico 2 himself to test with.
Generally I run the WebMite build, so I have a significantly less amount of resources available and I am able to run much more complex programs than the ones on rlauzon’s repo. I am honestly at a loss for what might be going wrong here.
I figured that was going to be the case, I really just wanted to give adcockm as much information as possible, since he does not have a Pico 2 himself to test with.
Yeah for sure. I appreciate everything and I’m sure he will too.
I also just reflashed the firmware on it and it still has the same issue. There’s either some weird, uncommon bug or I have a bad Pico 2. But I’m still confused as to why these programs don’t work, but the included ones on the SD card do.