Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:50 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 4 of 9    
Author Message
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 508
Posted: 04:12pm 16 Jul 2025
Copy link to clipboard 
Print this post

@matherp,
There seems to be a problem with the EDIT FILE fname$ command, opening files for editing from the program somehow corrupts the contents of variables in RAM.
A problem was detected when trying to open files for editing from FM on PicoMite VGA/HDMI firmware versions 6.00.02 and 6.00.03, although on version 6.00.01 it worked fine.
Edited 2025-07-17 02:14 by javavi
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10323
Posted: 05:10pm 16 Jul 2025
Copy link to clipboard 
Print this post

Did you download the very latest from Geoff? If this doesn't fix it then this will have to wait for the next release.
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 508
Posted: 06:05pm 16 Jul 2025
Copy link to clipboard 
Print this post

  matherp said  Did you download the very latest from Geoff? If this doesn't fix it then this will have to wait for the next release.

I downloaded it again from Geoff, reflashed Pico with PicoMiteVGA 6.00.03 firmware and Yes, I confirm the problem!
Edited 2025-07-17 04:05 by javavi
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10323
Posted: 06:10pm 16 Jul 2025
Copy link to clipboard 
Print this post

Can you post a small test program to demonstrate the issue please
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 508
Posted: 06:31pm 16 Jul 2025
Copy link to clipboard 
Print this post

  matherp said  Can you post a small test program to demonstrate the issue please

FM170.zip
FM02078.zip
Try to open the file for editing (F4) and exit (possibly several times) and you will see the error of data failure in variables yourself.

With respect for your attention, Javavi
 
matherp
Guru

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

Sorry, that doesn't count as a "small test program ".
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 508
Posted: 07:11pm 16 Jul 2025
Copy link to clipboard 
Print this post

  matherp said  Sorry, that doesn't count as a "small test program ".


Dim a1(1000),a2(1000)

For i=0 To 1000
 a1(i)=Rnd
 a2(i)=a1(i)
Next

Compairing_Arreys
Edit File "Comp.bas"
Compairing_Arreys
End

Sub Compairing_Arreys
Local res=0
For i=0 To 1000
 If a1(i)<>a2(i) Then Inc res
Next
 Print "Missmatches:",res
End Sub

Save this program with the name Comp.bas and run it.
After opening and closing the EDITOR, the program gives me 9 mismatches.
 
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 471
Posted: 07:45pm 16 Jul 2025
Copy link to clipboard 
Print this post

So far I can confirm that.
@javavi: Do you use so many variables?

For i=0 To 991 'From 992 onwards, it no longer works first mistake!
a1(i)=Rnd
a2(i)=a1(i)
'Print i,a1(i),a2(i)
Next

Compairing_Arreys
Edit File "comp.bas"
Compairing_Arreys
End

Sub Compairing_Arreys
Local res=0
For i=0 To 991
If a1(i)<>a2(i) Then
 Inc res
 Print a1(i),a2(i)
End If
Next
Print "Missmatches:",res
End Sub



> option list
PicoMiteHDMI MMBasic USB RP2350A Edition V6.00.03
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION SYSTEM I2C GP20,GP21
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD GR
OPTION RESOLUTION 640x480 @ 315000KHz
OPTION SDCARD GP22, GP26, GP27, GP28
OPTION AUDIO GP10,GP11', ON PWM CHANNEL 5
OPTION RTC AUTO ENABLE
OPTION MODBUFF ENABLE  192
OPTION PLATFORM HDMIUSB
>
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 508
Posted: 08:01pm 16 Jul 2025
Copy link to clipboard 
Print this post

  homa said  @javavi: Do you use so many variables?

Yes! There is no such thing as too much memory, and I always lack it. ))
 
dddns
Guru

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

  javavi said  
Save this program with the name Comp.bas and run it.
After opening and closing the EDITOR, the program gives me 9 mismatches.


With enabled PSRAM it works for me and there is no delay while editor opens.


Both, your test program as well as your latest FM
Edited 2025-07-17 16:28 by dddns
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 447
Posted: 09:20am 17 Jul 2025
Copy link to clipboard 
Print this post

  javavi said  

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

Save this program with the name Comp.bas and run it.
After opening and closing the EDITOR, the program gives me 9 mismatches.


When I change the dimensions to 50, I get 19 mismatches!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10323
Posted: 10:23am 17 Jul 2025
Copy link to clipboard 
Print this post

Try the relevant version out of the attached.

PicoMiteV6.00.03.zip
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 508
Posted: 10:52am 17 Jul 2025
Copy link to clipboard 
Print this post

  matherp said  Try the relevant version out of the attached.

Checked on PicoMite RP2040 VGA V6.00.03
How strange! A simple test passes, but the array c(15) in FM still gets corrupted.

[92] Color c(7),c(0)
Error : 5424127535405417485 is invalid (valid is 0 to 268435455)
>

Edited 2025-07-17 20:56 by javavi
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10323
Posted: 10:56am 17 Jul 2025
Copy link to clipboard 
Print this post

Can you provide another test file that shows the issue?
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 508
Posted: 11:09am 17 Jul 2025
Copy link to clipboard 
Print this post

  matherp said  Can you provide another test file that shows the issue?

How long are we going to play this game?
I'm a user, not a tester!
Edited 2025-07-17 21:25 by javavi
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 508
Posted: 11:28am 17 Jul 2025
Copy link to clipboard 
Print this post

  matherp said  Can you provide another test file that shows the issue?

Why isn't the FM program a test?
FM170.zip
The failure in the c() array only occurs after opening the file for editing (F4).
This does not happen on PicoMite firmware version 6.00.01
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10323
Posted: 11:31am 17 Jul 2025
Copy link to clipboard 
Print this post

If users won't put the effort in how am I supposed to fix problems that arise? It is completely impossible to take a massive program which has a reported issue and tell whether it is a problem in the program or a bug in the firmware.
Remember, I do this for fun without any recompense. If the wider community doesn't engage in testing and debugging then there won't be any progress.
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 11:31am 17 Jul 2025
Copy link to clipboard 
Print this post

  javavi said  I'm a user, not a tester!


And Peter is not a paid software engineer working for a professional software vendor to sell you a paid version of MMBasic, he is an accomplished hobbyist.

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7942
Posted: 11:41am 17 Jul 2025
Copy link to clipboard 
Print this post

^^^^^ This ^^^^^

You can't spend time debugging someone else's code, that you are unfamiliar with, when you are trying to fix a problem in the interpreter itself. You can see that there's a problem, yes, but the source of the problem in a big piece of code can be anywhere. You need a short, simple program that shows the problem reliably every time you run it. The simpler the test routine the better.

Remember that the most difficult part of the job is in identifying precisely what is causing the problem. Once you know that the fix becomes so much easier!  :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Gadgetguy
Senior Member

Joined: 26/04/2025
Location: France
Posts: 104
Posted: 11:52am 17 Jul 2025
Copy link to clipboard 
Print this post

Hello all, I have a "newbie" moment - sorry for that. I have just updated my Picomite with the most recent USB HDMI 2350 firmware (file name PicoMiteHDMIUSBV6.00.03.uf2)

After doing so my HDMI out does not work any more (tried two different monitors) - while it worked before the update.

I am able to log into the box via serial and it seems fine (as far as I can see).

What am I doing wrong here please?

Thank you for any pointers.
 
     Page 4 of 9    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025