![]() |
Forum Index : Microcontroller and PC projects : PicoMite Firmware Release Version 6.00.03
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7939 |
If sending a simple string array it gets chopped off after the first element: Print "MAIN PROGRAM" If MM.CMDLINE$ <> "chainret" Then Dim a$(1) = ("alpha", "beta") Print "Sending array: ";a$(0),a$(1) Chain "a:/s2.bas" EndIf Print "Returned array: "; Print a$(0),a$(1) Print "end" Print :Print Print "CHAINed program" Print "Received array "; Print a$(0),a$(1) Print "changing values..." a$(0) = "gamma" a$(1) = "delta" Print "Returning valuse: "a$(0),a$(1) Chain "a:/s1.bas","chainret" > RUN MAIN PROGRAM Sending array: alpha beta CHAINed program Received array alpha changing values... Returning valuse: gamma delta MAIN PROGRAM Returned array: gamma end Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Amnesie Guru ![]() Joined: 30/06/2020 Location: GermanyPosts: 675 |
Hi Peter, hi Mick! I wasn't able to test it further yesterday because of my job. Now I've looked here again and you've released a new fix, this is great. Thank you Mick for also reporting back about the CHAIN issue. ![]() I have to try the new firmware and will report if it fixes the problem or not, but as it seems there is still an issue? Well' I'll try it out ![]() Greetings Daniel |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
This makes no sense. All the code does is copy the entire heap to disk and then restore it. I'm beginning to think it therefore must be a caching issue or similar. More investigation needed..... |
||||
Amnesie Guru ![]() Joined: 30/06/2020 Location: GermanyPosts: 675 |
I tried to test the new firmware, but there is something odd happening: normally if I drag 'n drop the firmware file onto the PICO it reboots automatically and disconnects the usb. With this firmware it only copys the firmware onto the drive of the pico (yes I pressed and hold boot button). Nothing happens. Tried this three times, always the same. So I booted / checked the "new" firmware and I have no clue if it is really the new firmware. But my GUI-Editor still doesn't work with CHAIN. But as said; it well could be possible that there is a problem with loading the firmware onto the pico. First time I have this problem... No idea how to solve. Maybe a problem with compiling the firmware? I am using the VGA (ps/2) version. Maybe Micks testprogram doesn't work because he has had the same problem with copying the firmware onto the pico but doesn't realized it? just an idea.. Greetings Daniel Edited 2025-07-12 19:04 by Amnesie |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7939 |
The compiler gnomes are falling out with Peter.... :( Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
That means it is the rp2040 firmware on the Rp2350 or visa versa. Check you are using the second zip I posted not the first. NB: I think I have found a workaround for the CHAIN issue declare a dummy string which you are not going to use before any other variables e.g. for Mick's test Print Print "MAIN PROGRAM" If MM.CMDLINE$ <> "chainret" Then dim dummy$ Dim a$(1) = ("alpha", "beta") Print "Sending array: ";a$(0),a$(1) Chain "a:/s2.bas" EndIf Print "Returned array: "; Print a$(0),a$(1) Print "end" Please check this and confirm for me. Assuming all OK I'll try and find a proper fix |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7939 |
That certainly works on my last test. :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
OK: Please try this PicoMiteV6.00.03.zip Amnesie: I've checked the PicoMiteRP2040VGAUSBV6.00.03 is definitely correct in this zip Edited 2025-07-12 20:04 by matherp |
||||
Amnesie Guru ![]() Joined: 30/06/2020 Location: GermanyPosts: 675 |
Peter! I don't know what you did, but now my Gui-Editor program works, no errors anymore! Semms you fixed it! Cool! ![]() P.S. I can't even imagine how hard all this error / problem solving is... uff.. ![]() Greetings Daniel Edited 2025-07-12 20:20 by Amnesie |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7939 |
Nope, sorry. It still only works on the standard 2040 with dummy$ dimensioned. This is seriously weird... There's nothing on this thing. The flash slots are empty and only my test files are on A:. It was a new install from 5.08 when I started playing. I'm only using the console, no display, standard, original Pico. > option list PicoMite MMBasic RP2040 Edition V6.00.03 OPTION COLOURCODE ON OPTION CPUSPEED (KHz) 200000 > Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
Just checked - standard RP2040 PicoMite - no options set. Your p1/p2, q1/q2, s1/s2 test programs all work perfectly as posted with the latest firmware. Try downloading again/clear cache etc. ![]() Edited 2025-07-12 20:53 by matherp |
||||
javavi![]() Guru ![]() Joined: 01/10/2023 Location: UkrainePosts: 507 |
@matherp I tested FM on a 2350B with and without PSRAM and it works good for me in these resolutions! I tested 1280 and 1024 as well and I don't understand, why the colours are not correctly displayed. If I edit a file with your FM, it will be displayed in coloured code and font 1. But when it returns it will fall back to font 3. I wonder, if the default font could be set other than font 3? https://www.thebackshed.com/forum/ViewTopic.php?FID=16&TID=17283&LastEntry=Y#242091#242087 https://www.thebackshed.com/forum/ViewTopic.php?FID=16&TID=17283&LastEntry=Y#242091#242087 Edited 2025-07-12 21:06 by javavi |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7939 |
Thanks Peter, that was the answer - clear cache. :) Things are much better now. :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
Sorry - no idea what you are doing and can't be expected to diagnose anything with a program of that scale. You can change the default font with OPTION LCDPANEL CONSOLE or OPTION DEFAULT FONT Edited 2025-07-12 21:52 by matherp |
||||
dddns Guru ![]() Joined: 20/09/2024 Location: GermanyPosts: 544 |
> option list PicoMiteHDMI MMBasic USB RP2350B Edition V6.00.03 OPTION SERIAL CONSOLE COM2,GP8,GP9 OPTION SYSTEM I2C GP4,GP5 OPTION FLASH SIZE 16777216 OPTION COLOURCODE ON OPTION KEYBOARD US, 0, 0, 180, 60 OPTION PICO OFF OPTION RESOLUTION 1280x720 @ 372000KHz OPTION DISPLAY 30, 80 OPTION SDCARD GP1, GP2, GP3, GP0 OPTION KEYBOARD REPEAT 180,60 OPTION AUDIO GP6,GP7', ON PWM CHANNEL 3 OPTION RTC AUTO ENABLE OPTION DEFAULT FONT 3, 1 OPTION PSRAM PIN GP47 If I set OPTION RESOLUTION 1280 then OPTION DEFAULT FONT 3,1 is set automatically. If I use OPTION LCDPANEL CONSOLE 1 and restart, it works on the console. If I enter the editor with F4 it opens it in FONT 1 and coloured code. When it returns to the console it falls back to FONT 3. That seems to happen in Javavis FM too but his programm is layed out in FONT 1. The serial output (DISPLAY C,R) keeps being at the settings of FONT 1 but the local screen output is done in font 3 and everything is scrambled on the local screen. Another problem is, that Edit can show coloured code in 1280 with FONT 1 but print@ in Javavis code seems not to work in colour with this resolution. But that's his part..don't know exactly |
||||
dddns Guru ![]() Joined: 20/09/2024 Location: GermanyPosts: 544 |
From the console it works and stays at the same font once editor is closed, if EDIT FILE$ is used edit: Sorry: if EDIT FILE file$ is used then it's ok. EDIT file$ even crashes with "sdcard removed" error Edited 2025-07-12 22:25 by dddns |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
He may need to set the tile height to match the font Edited 2025-07-13 00:32 by matherp |
||||
javavi![]() Guru ![]() Joined: 01/10/2023 Location: UkrainePosts: 507 |
Yes! It works! Now FM works in color on the whole screen and in resolutions of 1024x768 and 1280x720. Thanks for the tip, without you we would have continued to be completely stupid. ![]() |
||||
javavi![]() Guru ![]() Joined: 01/10/2023 Location: UkrainePosts: 507 |
@matherp, Is it possible to make FONT1 for MODE 1 by default in PicoMiteHDMI firmware when working with high resolutions of 1024x768 and 1280x720, as it is for all other resolutions? I think it makes sense to keep the same setting (MODE 1 FONT 1) for all screen resolutions by default. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
Geoff has updated the download with the last firmware posted on this thread with the final CHAIN fix. Not in this release. What are the thoughts of others? 8x12 looks pretty small in 1280x720 on a 10" monitor |
||||
![]() ![]() ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |