![]() |
Forum Index : Microcontroller and PC projects : PicoMite Firmware Release Version 6.00.03
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10323 |
What version did you update from? What H/W are you using? |
||||
Gadgetguy Senior Member ![]() Joined: 26/04/2025 Location: FrancePosts: 104 |
Update: I have entered OPTION RESET HDMIUSB -> still no HDMI I do not see the breathing LED - I see two green leds and a red led on |
||||
phil99![]() Guru ![]() Joined: 11/02/2018 Location: AustraliaPosts: 2643 |
Do you have a copy of the old OPTION LIST? If so compare it with the current OPTION LIST. Perhaps you need to set OPTION PLATFORM name$ or OPTION HDMI PINS clockpositivepin, d0positivepin, d1positivepin, d2positivepin |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10323 |
Tell us what H/W platform you are using. Try clearing flash before re-loading the firmware. |
||||
Gadgetguy Senior Member ![]() Joined: 26/04/2025 Location: FrancePosts: 104 |
I use the "reference design", purchased from Phil. The previous firmware was (if I remember well) a v6 rcxx (maybe 24?) I tried clearing the flash (by using the Clear_FlashRP2350.uf2 file) And it seems the system does not see my SD card either. When I do b: Then files I get no SD card error. Thank you so much for trying to help, I very much appreciate it. I do not have my previous option list I am afraid... |
||||
Gadgetguy Senior Member ![]() Joined: 26/04/2025 Location: FrancePosts: 104 |
This is what I see now: PicoMiteHDMI MMBasic USB RP2350B Edition V6.00.03 Copyright 2011-2025 Geoff Graham Copyright 2016-2025 Peter Mather > USB Mouse Connected on channel 2 > US USB Keyboard Connected on channel 1 > > option list PicoMiteHDMI MMBasic USB RP2350B Edition V6.00.03 OPTION SERIAL CONSOLE COM2,GP8,GP9 OPTION SYSTEM I2C GP20,GP21 OPTION FLASH SIZE 16777216 OPTION COLOURCODE ON OPTION KEYBOARD US OPTION PICO OFF 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 > > > b: > files Error : SD Card not found > |
||||
Gadgetguy Senior Member ![]() Joined: 26/04/2025 Location: FrancePosts: 104 |
Hello all, I found it. I had from Phil a screenshot of how my options should look like. I did OPTION RESET Then started to enter the original options - and it seems to work For next time I will have to remember this. Sorry for wasting your time |
||||
Gadgetguy Senior Member ![]() Joined: 26/04/2025 Location: FrancePosts: 104 |
![]() |
||||
dddns Guru ![]() Joined: 20/09/2024 Location: GermanyPosts: 544 |
It fails with: PicoMite MMBasic USB RP2040 Edition V6.00.03 OPTION SERIAL CONSOLE COM1,GP28,GP29 OPTION SYSTEM SPI GP22,GP23,GP20 OPTION SYSTEM I2C GP24,GP25, SLOW OPTION FLASH SIZE 16777216 OPTION COLOURCODE ON OPTION DEFAULT COLOURS CYAN, BLACK OPTION KEYBOARD US, 0, 0, 180, 70 OPTION HEARTBEAT OFF OPTION PICO OFF OPTION CPUSPEED (KHz) 378000 OPTION LCDPANEL CONSOLE 4, FFFF OPTION DISPLAY 30, 80 OPTION LCDPANEL SSD1963_7, LANDSCAPE,,GP16,NORESET OPTION TOUCH GP21,GP19 GUI CALIBRATE 1, 85, 337, 2063, 1344 OPTION SDCARD COMBINED CS OPTION KEYBOARD REPEAT 180,70 OPTION AUDIO GP26,GP27', ON PWM CHANNEL 5 OPTION RTC AUTO ENABLE OPTION DEFAULT FONT 4, 1 and 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, 70 OPTION PICO OFF OPTION RESOLUTION 848x480 @ 336000KHz OPTION DISPLAY 40, 106 OPTION SDCARD GP1, GP2, GP3, GP0 OPTION KEYBOARD REPEAT 180,70 OPTION AUDIO GP6,GP7', ON PWM CHANNEL 3 OPTION RTC AUTO ENABLE |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10323 |
The correct configuration for that board is: OPTION RESET HDMIUSBI2S Edited 2025-07-17 23:18 by matherp |
||||
Gadgetguy Senior Member ![]() Joined: 26/04/2025 Location: FrancePosts: 104 |
OPTION RESET HDMIUSBI2S Thank you!!!!! |
||||
javavi![]() Guru ![]() Joined: 01/10/2023 Location: UkrainePosts: 508 |
Well, there were problems with this EDIT operator, weren't there? There is clearly some kind of MMBASIC interpreter failure after using the EDIT FILE command, I tried to catch the moment... The error in FM is generated by the Color command when passing it an argument from the c(7) array, although the value in the array is correct, not corrupted. At the same time, a little earlier in the program text, the same command color c(7) works fine... If these commands COLOR с(n) are tried to comment out, then the argument error appears in the following. As if there is a failure when passing the value from the array to the command and this does not happen every time when processing such commands COLOR с(). Edited 2025-07-18 01:25 by javavi |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7942 |
You probably need to totally isolate the area of the program where it's happening and put it into a program of its own. I know it's a pain in the backside. :( For someone who doesn't know their way around your code it would be very difficult. I'd suggest some little test foles like: program 1: create a 3-line test file program 2: read the test file and compare it with known data, printing out the 3 lines from the file and the correct data the above can be used to test the EDIT FILE command, proving that it works and that files can be read and written between edits. program 3: dim c(4) fill c() with some colour values print some lines of text using c() to get the colours These would only be small files and far easier to test with than attempting to work on a program that works in one place but not in another. You may need to tweak these ideas to show precisely where the fault occurs. You can't use your file manager as a test if that's happening, unfortunately. You have to test the interpreter and get that reliable whether your program works or not. Unfortunately there may be an edge case at work here. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10323 |
Yes, and I spent 3 hours finding and fixing it as demonstrated in your test program. If you create a new test program to demonstrate there is still an issue I will will further investigate and try and fix. |
||||
dddns Guru ![]() Joined: 20/09/2024 Location: GermanyPosts: 544 |
PicoMiteV6.00.03.zip With this version, Javavis test program runs on my RP2040. His FM gives an error: [92] Color c(7),c(0):x=2*FW Error : 5424127535405417485 is invalid (valid is 0 to 268435455) On my RP2350 with PSRAM disabled, the test program does not work. With the test program and his FM in both cases dim'ed variables will vanish: [17] If a1(i)<>a2(i) Then Inc res Error : A1 is not declared > list variables DIM FLOAT I LOCAL FLOAT RES > With PSRAM enabled everything is fine and execution of the editor does not hang or is delayed. Hope it helps.. Wrong expression: when editor opens it's "stuttering" on the RP2350 without PSRAM. When enabled it opens just instant Edited 2025-07-18 02:49 by dddns |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10323 |
The issue is the same as the bug in chain - writing to A: uses heap and when I restore the heap bits of it get overwritten when I close the A: drive file and delete it. I've tried to overcome this by locally storing the last bit of heap before I do the file close and then re-writing it. This worked for Javavi's test program both on the RP2040 and RP2350 for me. Please let me know which version of the RP2350 code you are using and please check you are definitely running the latest version posted in this thread. There is absolutely no way I can debug this with the FM software which doesn't even run for me as I have a lot of files/directories on my development SD. I need a test program that demonstrates the problem so I can identify the combination of circumstances that triggers the issue and that isn't solved by my local copy fix. |
||||
dddns Guru ![]() Joined: 20/09/2024 Location: GermanyPosts: 544 |
On both RP2040 and RP2350 I run the test version from your post on page 4 As I wrote, in Javavis FM code after entering the editor only 7 of 35 variables are dim'ed. I used LIST VARIABLES to see In his test code, a1(),a2() and some more do not show with LIST VARIABLES after the editor is left and are not defined and dim'ed any longer.. With PSRAM both works.. Edited 2025-07-18 02:59 by dddns |
||||
dddns Guru ![]() Joined: 20/09/2024 Location: GermanyPosts: 544 |
I have 16MB flash on my RP2350. Is reported free space correct?? The 3 mp3 files already take more than 10Mb > files A:/ <DIR> . <DIR> .. 12:41 16-07-2025 7264 analog_clock_screensaverV5.bas 12:32 16-07-2025 58752 bilds.jpg 22:24 15-07-2025 4864739 Bob_Seeger-Turn_the_Page.mp3 19:08 17-07-2025 4 bootcount 23:46 15-07-2025 3852018 test.mp3 23:47 15-07-2025 2876941 test2.mp3 2 directories, 6 files, 15462400 bytes free |
||||
dddns Guru ![]() Joined: 20/09/2024 Location: GermanyPosts: 544 |
I copied these with FM as a test. I realized, that copy speed is like half of the speed compared to RP2040. In both cases I use hardware spi GP's Playing directory PLAY MP3 "a:" fails. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10323 |
'file$' is the MP3file to play (the extension of .mp3 will be appended if missing). The sample rate can be up to 48kHz. The MP3 file is played in the background. 'interrupt' is optional and is the name of a subroutine which will be called when the file has finished playing. If file$ is a directory on the B: drive the Pico will play all of the files in that directory in turn. |
||||
![]() ![]() ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |