Menu
JAQForum Ver 19.10.27

Forum Index : Microcontroller and PC projects : PicoMite V6.00.02 release candidates - all versions

   Page 38 of 52    
Posted: 06:33am
05 May 2025
Copy link to clipboard
Volhout
Guru

@Peter,

This is a stripped section of PETSCII that will crash in 2 minutes 16 seconds (1360 loops).
It is not 1 minute 42 seconds, but I fixed the game loop in this test to 100ms (10fps), and the actual game is slightly faster.

As there is almost no memory usage, heap is not important. If anything, then C-stack.

This code only prints dots on the screen while playing music and scanning WII classic remote. Nothing else.


wii_test.zip

Volhout
Edited 2025-05-05 16:37 by Volhout
 
Posted: 06:54am
05 May 2025
Copy link to clipboard
matherp
Guru

Harm

Please give me the full option list you are running with

Playing around with HDMIUSB060002rc21 and noticed the mouse doesn't work (or appear) in editor in mode 3, all resolutions.


Mouse only works in mode 1 as it uses tiles

  Quote  When the long line is the line before the last line, I can't see the last line in EDIT. List works properly. I'm running this on a bare RP2350.


Thanks for the report - will check - update: found and fixed. Will be in next release.
Edited 2025-05-05 17:10 by matherp
 
Posted: 07:23am
05 May 2025
Copy link to clipboard
Volhout
Guru

Hi Peter,

This is the option list for the PicoGameVGA platform (very similar to the VGA design 2). Using GP26/27 for I2C for RTC and WII.

> option list
PicoMiteVGA MMBasic RP2040 Edition V6.00.02RC20
OPTION SYSTEM I2C GP26,GP27
OPTION KEYBOARD US
OPTION RESOLUTION 640x480 @ 252000KHz
OPTION SDCARD GP13, GP11, GP12, GP10
OPTION AUDIO GP6,GP7', ON PWM CHANNEL 3
OPTION RTC AUTO ENABLE
OPTION MODBUFF ENABLE  192
OPTION F5 flash run 2


When I run PETSCII from commandline, or run it from the filemanager, has the same problem. F5 invokes the filemanager in my platforms.

Volhout
Edited 2025-05-05 17:36 by Volhout
 
Posted: 09:03am
05 May 2025
Copy link to clipboard
matherp
Guru

Harm

We knew this was going to happen.  Your test program doesn't crash for me. Running on a "genuine" vga design 2 board. The only difference is that I'm using GP14,GP15 for the system i2c and have the RTC module plugged into the board.
Have you tired different CPU speeds? Can you correlate the crashes with the mod file looping round? Can you run the test on and RP2350 to see if it makes a difference?



Edited 2025-05-05 19:08 by matherp
 
Posted: 09:53am
05 May 2025
Copy link to clipboard
PhenixRising
Guru

Is that a Mick (Mixtel90) board?...dammit more stuff that I missed.
 
Posted: 09:58am
05 May 2025
Copy link to clipboard
Mixtel90
Guru


No, that's not my design. Mine is the PicoGameVGA that Volhout is having a problem with. (It might actually be a PicoGAME Mini, using those pins for I2C).
.
Edited 2025-05-05 20:12 by Mixtel90
 
Posted: 01:26pm
05 May 2025
Copy link to clipboard
lizby
Guru

I don't find the flash erase file on Geoff's site--either in the current release or beta test zips, or in the Archive. It might be a good idea to include that.

Meanwhile, where is that available?
 
Posted: 01:31pm
05 May 2025
Copy link to clipboard
JohnS
Guru

  PhenixRising said  Is that a Mick (Mixtel90) board?...dammit more stuff that I missed.

I think it's Peter's VGA Design 2 (as he posted).

John
Edited 2025-05-05 23:32 by JohnS
 
Posted: 01:32pm
05 May 2025
Copy link to clipboard
twofingers
Guru


  lizby said  ...Meanwhile, where is that available?


2024-11-03_203836_clear_flash RP2350.zip

For RP2350!

Regards
Michael
 
Posted: 01:36pm
05 May 2025
Copy link to clipboard
lizby
Guru

  lizby said  Meanwhile, where is that available?


For the RP2040, I found it here: https://geoffg.net/Downloads/picomite/Archive/PicoMite_Firmware%20V5.07.02.zip
 
Posted: 02:08pm
05 May 2025
Copy link to clipboard
Volhout
Guru

@Peter,

I can also duplicate it on the VGA design 2. Connecting the WII classic to GP14/GP15, with the RTC placed and using V6.00.02RC21.

It only takes more time. In all cases, the screen is filled with dots (the code prints these), and the final character before the crash is always en "E", not a dot.

Please let the code run for 20 minutes, and check for silence (sound stopped) and an "E" on screen.

Regards,

Volhout
 
Posted: 03:56pm
05 May 2025
Copy link to clipboard
matherp
Guru

I've been testing this to destruction and I'm beginning to believe it is a bug in the Pico SDK I2C routines.
When you finally get a readable error message it says that a function isn't found which is clearly part of the source.
Neither the system stack not the user heap are showing any issues.
The next step is to try recoding the I2C routines using the bitbang versions and see what happens.......
 
Posted: 04:53pm
05 May 2025
Copy link to clipboard
Volhout
Guru

Hi Peter,

This is the essential code.

> list
 'init and detect
 Wii Classic open

 'start play mod files
 Play modfile "music/get_psyched-sfx.mod"

 'game loop
 Timer =0
 Do
   Do : Loop Until Timer > 20
   Timer =0
   bits = DEVICE(Wii b)
   Print ".";
 Loop


I will also try to see if there is a relation with the mod file.
 
Posted: 05:00pm
05 May 2025
Copy link to clipboard
matherp
Guru

I've tried with different mod files and also replicated on RP2350 VGA AND RP2350 HDMI
That eliminates USB and VGA interrupts. I've also replicated with I2S audio. I've also removed the modsample. I haven't yet tried with playing WAV, FLAC or MP3.
 
Posted: 05:07pm
05 May 2025
Copy link to clipboard
Volhout
Guru

@Peter,

When you do not play a modfile (no sound at all, just comment out the "PLAY MODFILE" line) it also crashes, but more impressive, with corrupted VGA screen.
So just repeating the DEVICE(WII B) is sufficient to crash the pico eventually.

Volhout
 
Posted: 05:10pm
05 May 2025
Copy link to clipboard
matherp
Guru

DEVICE(WII B) does nothing other than read a preset memory area - the interrogation of the Wii takes place in the background every 20mSec. In which case it should crash without that as well - please try.
This is why I'm suspecting the underlying I2C sdk code.
Edited 2025-05-06 03:11 by matherp
 
Posted: 05:50pm
05 May 2025
Copy link to clipboard
matherp
Guru

Harm and anyone else: Please try the attached VGA RP2040 code and report.

PicoMite.zip

Thanks
 
Posted: 06:05pm
05 May 2025
Copy link to clipboard
Volhout
Guru

Original RC21. Confirmed that just WII CLASSIC OPEN is sufficient to crash the pico eventually.

I will try above version later tonight.

Volhout
 
Posted: 06:42pm
05 May 2025
Copy link to clipboard
matherp
Guru

V6.00.02RC22 is available on

https://geoffg.net/Downloads/picomite/PicoMite_Beta.zip

Fixes a bug in scrolling in the editor when loading a file which creates continuation lines.
Adds a check in the editor which won't let you save and exit if continuation characters create a line longer than 255 characters.
Makes changes to handling Wii Classic and Wii Nunchuck to try and circumvent what appears to be an sdk issue where I2C commands return before completing.

Github updated
 
Posted: 07:27pm
05 May 2025
Copy link to clipboard
Volhout
Guru

@Peter,

Just tested the 5:50 vga only release, and that does not fix it.
I will look at the RC22 now.

Volhout
 
   Page 38 of 52    
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025