Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 21:53 10 May 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 V6.00.02 release candidates - all versions

     Page 38 of 44    
Author Message
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4854
Posted: 06:33am 05 May 2025
Copy link to clipboard 
Print this post

@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
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 06:54am 05 May 2025
Copy link to clipboard 
Print this post

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
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4854
Posted: 07:23am 05 May 2025
Copy link to clipboard 
Print this post

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
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 09:03am 05 May 2025
Copy link to clipboard 
Print this post

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
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1141
Posted: 09:53am 05 May 2025
Copy link to clipboard 
Print this post

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

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7504
Posted: 09:58am 05 May 2025
Copy link to clipboard 
Print this post

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
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3309
Posted: 01:26pm 05 May 2025
Copy link to clipboard 
Print this post

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?
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3998
Posted: 01:31pm 05 May 2025
Copy link to clipboard 
Print this post

  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
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1527
Posted: 01:32pm 05 May 2025
Copy link to clipboard 
Print this post

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


2024-11-03_203836_clear_flash RP2350.zip

For RP2350!

Regards
Michael
causality ≠ correlation ≠ coincidence
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3309
Posted: 01:36pm 05 May 2025
Copy link to clipboard 
Print this post

  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
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4854
Posted: 02:08pm 05 May 2025
Copy link to clipboard 
Print this post

@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
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 03:56pm 05 May 2025
Copy link to clipboard 
Print this post

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.......
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4854
Posted: 04:53pm 05 May 2025
Copy link to clipboard 
Print this post

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.
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 05:00pm 05 May 2025
Copy link to clipboard 
Print this post

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.
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4854
Posted: 05:07pm 05 May 2025
Copy link to clipboard 
Print this post

@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
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

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

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
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 05:50pm 05 May 2025
Copy link to clipboard 
Print this post

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

PicoMite.zip

Thanks
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4854
Posted: 06:05pm 05 May 2025
Copy link to clipboard 
Print this post

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

I will try above version later tonight.

Volhout
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 06:42pm 05 May 2025
Copy link to clipboard 
Print this post

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
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4854
Posted: 07:27pm 05 May 2025
Copy link to clipboard 
Print this post

@Peter,

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

Volhout
PicomiteVGA PETSCII ROBOTS
 
     Page 38 of 44    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025