Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:04 06 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 Firmware Release Version 6.00.03

     Page 6 of 9    
Author Message
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 544
Posted: 06:33pm 17 Jul 2025
Copy link to clipboard 
Print this post

Ok thanks, it was no moaning anyway. I thought of everything I observed that might have to do with this issue in relation to your explanation above
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10324
Posted: 06:39pm 17 Jul 2025
Copy link to clipboard 
Print this post

Still don't understand the issue re the test code. There are only three variables a1(), a2() and i.
These show perfectly with list variables after the program exits (RP2350VGA firmware)
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 544
Posted: 06:45pm 17 Jul 2025
Copy link to clipboard 
Print this post

I was testing with:
PicoMiteHDMI MMBasic USB RP2350B Edition V6.00.03

My config



with PSRAM:
Missmatches: 0
> list variables
DIM FLOAT A1(1000)
DIM FLOAT A2(1000)
DIM FLOAT I
>]

without:
[17] If a1(i)<>a2(i) Then Inc res
Error : A1 is not declared
>


> list variables
DIM FLOAT I
LOCAL FLOAT RES

Edited 2025-07-18 04:52 by dddns
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10324
Posted: 06:52pm 17 Jul 2025
Copy link to clipboard 
Print this post

Again works fine for me - the three variables listed as expected and no mismatches, same resolution. Could your flash be misreading somehow?
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 544
Posted: 07:04pm 17 Jul 2025
Copy link to clipboard 
Print this post

The files stored on a: like mp3 play at least. I use this Pico since 7 months and didn't recognize problems yet..all I can say

I could downgrade to compare.

The copy speed is about 4Mb per minute from b: to a: which takes with the RP2040 with the same file 30 seconds..

I mean the 5Mb mp3 file

Test is done with OPTION RESOLUTION 848x480 @ 336000KHz
Edited 2025-07-18 05:10 by dddns
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 544
Posted: 07:21pm 17 Jul 2025
Copy link to clipboard 
Print this post

tested with VGA on the same Pico and it works. Edit takes about 2 seconds to open but works with the test program.
> option list
PicoMiteVGA MMBasic RP2350B Edition V6.00.03
OPTION FLASH SIZE 16777216
OPTION COLOURCODE ON
OPTION KEYBOARD US
OPTION PICO OFF
OPTION RESOLUTION 848x480 @ 336000KHz
OPTION DISPLAY 40, 106
OPTION SDCARD GP1, GP2, GP3, GP0



Javavis FM crashes with:
[92] Color c(7),c(0):x=2*FW
Error : 5424127535405417485 is invalid (valid is 0 to 268435455)
>

Edited 2025-07-18 05:23 by dddns
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 544
Posted: 07:54pm 17 Jul 2025
Copy link to clipboard 
Print this post

With USB only:
[17] If a1(i)<>a2(i) Then Inc res
Error : A1 is not declared
> option list
PicoMite MMBasic USB RP2350B Edition V6.00.03
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION FLASH SIZE 16777216
OPTION COLOURCODE ON
OPTION KEYBOARD US
OPTION PICO OFF
OPTION CPUSPEED (KHz) 378000
OPTION SDCARD GP1, GP2, GP3, GP0


Just console:
[17] If a1(i)<>a2(i) Then Inc res
Error : A1 is not declared
> option list
PicoMite MMBasic RP2350B Edition V6.00.03
OPTION FLASH SIZE 16777216
OPTION COLOURCODE ON
OPTION PICO OFF
OPTION CPUSPEED (KHz) 150000
OPTION SDCARD GP1, GP2, GP3, GP0



It works for:
Missmatches: 0
> option list
PicoMiteHDMI MMBasic RP2350B Edition V6.00.03
OPTION FLASH SIZE 16777216
OPTION COLOURCODE ON
OPTION KEYBOARD US
OPTION PICO OFF
OPTION RESOLUTION 640x480 @ 252000KHz
OPTION SDCARD GP1, GP2, GP3, GP0


And for VGAUSB it works too.

But it takes between 2 and 4 seconds in any working case, untill editor opens
Edited 2025-07-18 05:57 by dddns
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 544
Posted: 09:06pm 17 Jul 2025
Copy link to clipboard 
Print this post

I went through all my stored archives, too bad there is a gap and I found, that this is the last working version which runs the test program as well as FM170.bas
PicoMiteHDMIUSBV6.00.02RC12.uf2


With RC20 it shows the same error as today's version:
Missmatches:     9
> option list
PicoMiteHDMI MMBasic USB RP2350B Edition V6.00.02RC20
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION FLASH SIZE 16777216
OPTION COLOURCODE ON
OPTION KEYBOARD US
OPTION PICO OFF
OPTION RESOLUTION 640x480 @ 252000KHz
OPTION SDCARD GP1, GP2, GP3, GP0


With 6.00.01 it works and editor starts instantly. This 2 seconds hang when editor opens begins even before RC12 (edit: before/with b9)

Hope again this helps!
Edited 2025-07-18 07:36 by dddns
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 447
Posted: 10:41pm 17 Jul 2025
Copy link to clipboard 
Print this post

  matherp said  Try the relevant version out of the attached.

PicoMiteV6.00.03.zip


That version worked for me.

DIM a1(50),a2(50)

FOR i=0 TO 50
 a1(i)=RND
 a2(i)=a1(i)
NEXT

Comparing_Arrays
EDIT FILE "Comp.bas"
Comparing_Arrays
END

SUB Comparing_Arrays
 LOCAL res=0
 FOR i=0 TO 50
   IF a1(i)<>a2(i) THEN INC res
 NEXT
 PRINT "Mismatches:",res
END SUB


WebMite MMBasic RP2350A Edition V6.00.03
OPTION SERIAL CONSOLE COM1,GP0,GP1,BOTH
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION CONTINUATION LINES ON
OPTION CASE UPPER
OPTION DEFAULT COLOURS GREEN, BLACK
OPTION KEYBOARD US
OPTION CPUSPEED (KHz) 252000
OPTION DISPLAY 26, 40
OPTION LCDPANEL VIRTUAL_C
OPTION TELNET CONSOLE ON
OPTION PLATFORM RP2350A
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 544
Posted: 11:16pm 17 Jul 2025
Copy link to clipboard 
Print this post

  matherp said  Again works fine for me - the three variables listed as expected and no mismatches, same resolution. Could your flash be misreading somehow?


The problem with the variables disappear was due to a corrupted filesystem on my a: drive. How and with which action it got corrupted I don't know. I wiped through this endless testing of cause many times my Pico and coming back to the latest version of 6.00.03 HDMIUSB I copied the same files again on the a: drive and now the correct free space is reported and variables a1(1000) and a2(1000) stay dim'ed and test program runs correct.

The problem with the hangs seems to be due to the slow reading/writing speed to flash so the dumped heap takes so long to be written.

Javavis FM still crashes without PSRAM
Edited 2025-07-18 09:17 by dddns
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 247
Posted: 12:09am 18 Jul 2025
Copy link to clipboard 
Print this post

With an RP2350B with PSRAM (Olimex RP2350B- XXL) the firmware crashes after
> ram load 1 and cannot be saved.

PicoMite MMBasic RP2350B Edition V6.00.03
Copyright 2011-2025 Geoff Graham
Copyright 2016-2025 Peter Mather

Total of 6 Mbytes PSRAM available

> option list
PicoMite MMBasic RP2350B Edition V6.00.03
OPTION FLASH SIZE 16777216
OPTION COLOURCODE ON
OPTION PICO OFF
OPTION CPUSPEED (KHz) 150000
OPTION DISPLAY 44, 80
OPTION SDCARD GP9, GP10, GP11, GP24
OPTION PSRAM PIN GP8

> memory
Program:
  0K ( 0%) Program (0 lines)
288K (100%) Free

Saved Variables:
 16K (100%) Free

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

> ram list
RAM Slot 1 in use
RAM Slot 2 in use
RAM Slot 3 in use
RAM Slot 4 in use
RAM Slot 5 in use

> ram load 1
Error: Invalid address - resetting
Total of 6 Mbytes PSRAM available
Error: Invalid address - resetting
Total of 6 Mbytes PSRAM available
Error: Invalid address - resetting
Total of 6 Mbytes PSRAM available
.......
Error: Invalid address - resetting
PicoMite MMBasic RP2350B Edition V6.00.03
Copyright 2011-2025 Geoff Graham
Copyright 2016-2025 Peter Mather

Total of 6 Mbytes PSRAM available
Error: Invalid address - resetting
PicoMite MMBasic RP2350B Edition V6.00.03
Copyright 2011-2025 Geoff Graham
Copyright 2016-2025 Peter Mather

Total of 6 Mbytes PSRAM available
Error: Invalid address - resetting
Total of 6 Mbytes PSRAM available
Error: Invalid address - resetting
Total of 6 Mbytes PSRAM available
......

Regards,

Jan.
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 247
Posted: 12:28am 18 Jul 2025
Copy link to clipboard 
Print this post

Help.... The BOOT button doesn't work anymore either. How can I load firmware now, e.g., clear_flash?

Regards,

Jan.
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2643
Posted: 12:45am 18 Jul 2025
Copy link to clipboard 
Print this post

  Manual, Commands said  UPDATE FIRMWARE - NOT ON USB VERSIONS
Causes the PicoMite firmware to enter the firmware update mode (the same as applying power while holding down the BOOTSEL button).
This command is only available at the command prompt.

You can then load any .uf2 file, including Clear_flash.uf2
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 247
Posted: 01:45am 18 Jul 2025
Copy link to clipboard 
Print this post

phil99,

Finally, it's working again, but now without PSRAM.
I reset the controller from TeraTerm, after which the BOOT button responded again, but loading clear_flash didn't really work, and loading the original firmware didn't help either.
Then I loaded a very old firmware version with an RP2350 (6.00.00B21?), and then it worked.
Then I loaded the latest firmware, and it worked again. Tomorrow I'll add PSRAM.

Regards,

Jan.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10324
Posted: 07:40am 18 Jul 2025
Copy link to clipboard 
Print this post

  Quote  and now the correct free space is reported and variables a1(1000) and a2(1000) stay dim'ed and test program runs correct.


I think we have now established that my last fix works in all firmware variants for javavi's test program.
I still need a test program to isolate what particular set of circumstances occur in FM that causes it to fail if I am to make further progress.
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 544
Posted: 08:06am 18 Jul 2025
Copy link to clipboard 
Print this post

  Quote  
The problem occurs when closing the editor but it opens up correct. So I think the issue happens when writing back the stored heap..it does not happen with PSRAM as FM continues to run


I cannot replicate at the moment but it occurred several times with enabled PSRAM, that some keystroke combination within running FM causes the program to error with "variable already declared". Ending up in console and try to rerun FM, it will error with the "already declared" again even though MEMORY shows no usage and issuing a CLEAR before. After a reset it runs again..
Edited 2025-07-18 18:36 by dddns
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10324
Posted: 08:48am 18 Jul 2025
Copy link to clipboard 
Print this post

  Quote   that some keystroke combination within running FM causes the program to error with "variable already declared".

That gave me a clue to look at the FM Basic code
EDIT FILE is called from within a subroutine. That is a complete no-no.
From the manual SAVE CONTEXT command
  Quote  Saves the variable space and optionally clears it - command should be used in
top level program and not from within a subroutine.

From the manual CHAIN command
  Quote  the command is recommended to be used in top level program and not from
within a subroutine.

This warning should be added to the EDIT FILE command and the FM code will need to be changed before we look at any other issue
Edited 2025-07-18 18:54 by matherp
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 544
Posted: 09:22am 18 Jul 2025
Copy link to clipboard 
Print this post

Many thanks :)

I couldn't find an entry for RAM command in your latest manual draft
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 544
Posted: 09:58am 18 Jul 2025
Copy link to clipboard 
Print this post

I would have a feature request:

The COLOUR MAP command is very useful and makes sense with a LCD as well. Would it be possible to implement it in every version?

Just a question and "nice to have"
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10324
Posted: 12:14pm 18 Jul 2025
Copy link to clipboard 
Print this post

Geoff has updated the manual on his website to Revision 1. This should pick up a number of the issues raised in this thread and the 6.00.02 draft manual thread.
 
     Page 6 of 9    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025