Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:18 28 Nov 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.01.00 release candidates

     Page 15 of 18    
Author Message
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5485
Posted: 12:04pm 17 Nov 2025
Copy link to clipboard 
Print this post

@Peter,

RP2040 VGA rc14

In the BLIT FLASH command there is a limit check that is incorrect.
Below program loads a BMP in flash slot 3.
The BMP is 256x240 in size.

The test program reads from this file and outputs on the 320x240 screen.
When blitting a graphics element on an X position larger than 256 (the screen is 320) you get an error message.

You can demonstrate this by changing the variable n (line 23) from 16 to 17 (plots up to 256 -> up to 257).
The graphics file is from KnightMare, converted from PNG by Martin.H.

test.zip

Volhout
Edited 2025-11-18 00:12 by Volhout
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10653
Posted: 03:52pm 17 Nov 2025
Copy link to clipboard 
Print this post

What am I supposed to see? On a rp2350 I've got a yellow screen and letters flashing - no errors
Same on RP2040.

Attached my current binaries
RP2040
PicoMite (2).zip

RP2350
PicoMite.zip
Edited 2025-11-18 01:58 by matherp
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5485
Posted: 04:21pm 17 Nov 2025
Copy link to clipboard 
Print this post

On my system I can vary N from 0 to 16 to cause an x shift.
When I reach 17 I get an error. As if xout coördinate is validated against xin range.

I Will Try again tonight with your binairies

Volhout
PicomiteVGA PETSCII ROBOTS
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5485
Posted: 06:15pm 17 Nov 2025
Copy link to clipboard 
Print this post

Peter,

On your binary, the same error happens. Change in the test.bas program (line 23) the value of n to 17 or higher. Values 0..16 work. See the rotating text reposition on the screen when you change n. Tested on VGA design 2.

Volhout
Edited 2025-11-18 04:17 by Volhout
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10653
Posted: 06:35pm 17 Nov 2025
Copy link to clipboard 
Print this post

Try this:
V6.01.00RC15

PicoMiteV6.01.00RC15.zip

Fixes bug in user drivers only running once
Fixes validation bug in BLIT FLASH

Changes to VGA222 drivers

VGA222_640 RGB222 640x480
VGA222_320 RGB222 320x240
VGA222_720 RGB222 720x400 widescreen
VGA222_360 RGB222 360x200 widescreen
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5485
Posted: 06:55pm 17 Nov 2025
Copy link to clipboard 
Print this post

@Peter,

limit check fixed.

Volhout
PicomiteVGA PETSCII ROBOTS
 
circuit
Senior Member

Joined: 10/01/2016
Location: United Kingdom
Posts: 293
Posted: 07:02pm 17 Nov 2025
Copy link to clipboard 
Print this post

Remembrance Week has been busy; I have laid The Sovereign's Wreath on His Majesty's behalf at three Remembrance Ceremonies.  Not the best weather; 3M Scotchguard was most helpful in keeping the rain from soaking into my uniform, but my sword ended up needing urgent maintenance to deal with the rain drop markings.  It was whilst I was polishing up my sword and oiling the blade that a possible answer came to me regarding an MM problem that I have been wrestling with during the week.  Look to the swordsman! =Peter, of course, who knows much more about both swords and digital electronics than I do!    

I have built a control board based upon the 2350DIL board that Peter designed.  It controls 32 2amp 60v optical relays via appropriate interface circuitry.  One bank of the opto-relays requires pulse operation and, after the board was installed, odd behaviour appeared.  Eight relays in the bank failed to operate; GP32 to GP40.  Naturally, I assumed it was a hardware error in my assembly.  I scoured the board many times but could not see where I had gone wrong.  I re-checked my programming; again, no error apparent.  FRUSTRATION in extremis!.  

Whilst polishing my sword, a further possible diagnosis suddenly came to me; I left the sword, wired LEDs to the opto-relay outputs and typed in PULSE GP36, 1000.  No response.  I typed in PIN(GP36)=1 and it lit up!  Therein the problem.  Pins GP32 to 40 did not respond to PULSE but DID respond to a simple on/off.  Each and every one.

I was working with the release version of 6.00 from Geoff's site, so I downloaded and installed the latest version RC14 from this thread and found the same issue.  

Peter, is this a firmware issue or am I missing something else?
Edited 2025-11-18 05:09 by circuit
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10653
Posted: 07:34pm 17 Nov 2025
Copy link to clipboard 
Print this post

Definitely a firmware issue. Day 1 RB2350B bug. I'll have a look tomorrow.
Edited 2025-11-18 05:34 by matherp
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10653
Posted: 01:11pm 18 Nov 2025
Copy link to clipboard 
Print this post

V6.01.00RC16

PicoMiteV6.01.00RC16.zip


Fixes bug in PULSE command on GP pins > 31
Fixes bugs in DEVICE SERIAL TX and DEVICE SERIAL RX including support for all pins on the RP2350B
 
circuit
Senior Member

Joined: 10/01/2016
Location: United Kingdom
Posts: 293
Posted: 02:41pm 18 Nov 2025
Copy link to clipboard 
Print this post

Peter,

Thank you very much indeed.   New firmware loaded, program loaded and 32 opto-relays are functioning as intended. I do appreciate the speed at which you acted; I can now relax after more than a week of scratching my head and pouring over all my soldered connections looking for errors.  

Best regards,
Circuit.
 
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 295
Posted: 04:50pm 18 Nov 2025
Copy link to clipboard 
Print this post

Peter,

ist there a reason for this I did overlook??

> OPTION SYSTEM SPI GP2,GP3,GP4
> OPTION LCDPANEL ILI9488, LANDSCAPE,GP5,GP6,GP7,GP8,INVERT
Error : Invalid syntax

environment is
> option list
PicoMite MMBasic RP2350A V6.01.00RC16
OPTION SYSTEM SPI GP2,GP3,GP4
OPTION FLASH SIZE 16777216
OPTION COLOURCODE ON
OPTION CPUSPEED (KHz) 200000
>

Edit: did work in up to RC14

Gerald
Edited 2025-11-19 03:02 by ville56
                                                                 
73 de OE1HGA, Gerald
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10653
Posted: 05:42pm 18 Nov 2025
Copy link to clipboard 
Print this post

ignore
Edited 2025-11-19 03:47 by matherp
 
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 295
Posted: 06:17pm 18 Nov 2025
Copy link to clipboard 
Print this post

I was able to take over the settings from RC14 to RC16 just with a firmware upgrade. Display works, so it seems to be an issue in the command processing not in the display functionality itself.
                                                                 
73 de OE1HGA, Gerald
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10653
Posted: 06:57pm 18 Nov 2025
Copy link to clipboard 
Print this post

It's definitely a bug - will fix
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10653
Posted: 07:53pm 18 Nov 2025
Copy link to clipboard 
Print this post

Should be fixed

PicoMiteV6.01.00RC16.zip
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5485
Posted: 08:06pm 18 Nov 2025
Copy link to clipboard 
Print this post

Hi Peter,

I have a very unfortunate bug to report. RP2040 VGA V60100rc16 The game Frogger uses SPRITE SCROLL to move the lanes left and right. In rc16 that does not work correct anymore. Maybe Claude messed up.
I have been able to trace it back to rc14 to have the problem also. rc12 is okay.

SPRITE SCROLL moves a lane 2 pixels left or right. In rc16/15/14 it seems to scroll 4 pix, then 2 back, then 4, then 2 back, in stead or 2,2,2,2,etc..

Please find below video recordings.
Watch the cars in the lower 2 lanes for the best comparison.

compare 2 videos

Volhout

P.S. the scrolling text in the intro screen also shows the effect. Below is a picture of the scrolling text (yellow text) halted, and saved with "SAVE IMAGE". The video memory is really corrupted by the scrolling.



Edited 2025-11-19 06:25 by Volhout
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10653
Posted: 10:41pm 18 Nov 2025
Copy link to clipboard 
Print this post

What are you scrolling? screen or a framebuffer?  What is the exact command doing the scrolling? AFAIK nothing has changed in this area.
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 498
Posted: 11:20pm 18 Nov 2025
Copy link to clipboard 
Print this post

  matherp said  Should be fixed

PicoMiteV6.01.00RC16.zip



Typing this from the command line:

OPTION LCDPANEL ST7796SP,PORTRAIT,gp14,gp15,gp13,,INVERT

gives me Error: Invalid syntax

Here're my options:

PicoMite MMBasic RP2350B V6.01.00RC16
OPTION SYSTEM SPI GP10,GP11,GP12
OPTION SYSTEM I2C GP6,GP7, SLOW
OPTION FLASH SIZE 16777216
OPTION COLOURCODE ON
OPTION CONTINUATION LINES ON
OPTION CASE UPPER
OPTION DEFAULT COLOURS GREEN, BLACK
OPTION PICO OFF
OPTION CPUSPEED (KHz) 360000
OPTION SDCARD GP17, GP18, GP19, GP16
OPTION AUDIO GP26,GP27', ON PWM CHANNEL 5
OPTION PLATFORM PicoMite

Edited 2025-11-19 13:49 by toml_12953
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5485
Posted: 08:07am 19 Nov 2025
Copy link to clipboard 
Print this post

Hi Peter,

This is the scrolling text issue.

 Title$=" Game based on the Arcade Game Frogger - copyright Konami 1981  - "
 tc%=0: tk%=7
 mode 2
 Do
   If TK%=7 Then
     Colour rgb(yellow) : text 14,176,Left$(title$,34)
     title$=Right$(title$,Len(title$)-1)+Left$(title$,1)
   Else
     blit 17,176,16,176,197,8
     Box 207,168,1,8,,0,0
   EndIf
   Inc tk%,-1:If tk%=0 Then TK%=7
   pause 15
 Loop until inkey$=" "


It blits in N graphics partly over itself. Depending when you stop it you get readable text or gibberish.
This is not the SPRITE SCROLL, but a blit. I will see if I can make a mini demo of the SPRITE SCROLL issue, but I think under water it is the same issue.

Volhout

P.S. is it using RGB222 pixel move in an RGB121 plane ? It appeared in rc14, the first to have RGB222 in 2350. But this is 2040.
Edited 2025-11-19 18:10 by Volhout
PicomiteVGA PETSCII ROBOTS
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 498
Posted: 08:35am 19 Nov 2025
Copy link to clipboard 
Print this post

  matherp said  Should be fixed

PicoMiteV6.01.00RC16.zip


In External.c there's this code:

#ifdef PICONITE
   "KEYBOARD"
#endif
#else
   "PIO1"
#endif


PICONITE isn't defined anywhere. Is it supposed to be PICOMITE?
 
     Page 15 of 18    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025