Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 03:00 11 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 37 of 44    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 07:42am 04 May 2025
Copy link to clipboard 
Print this post

  Quote  RC20 is fine for 2040 VGA PS2 platform.
Tested the majority of the programs.


Good to know - thanks. Sorting out a non-black background colour was a bit of a nightmare but I was reasonably confident and ended up with quite a bit of code simplification.
 
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 459
Posted: 11:52am 04 May 2025
Copy link to clipboard 
Print this post

  matherp said  homa

I updated the mp3 codec to the latest version somewhere between RC15 and RC20. Both versions work fine for me. Is there an mp3 file you can post so I can try and identify the issue?

Gerry

Will do.

UPDATE

This version reverts to the older codec and includes Gerry's change - please report


PicoMiteHDMIUSBV6.00.02RC20.zip


THANK YOU! This version works again with my mp3 file. It is an old mp3 with "only" 128kbit/s. I'll e-mail you the mp3 so you can test it yourself.
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 971
Posted: 12:33pm 04 May 2025
Copy link to clipboard 
Print this post

  Quote  This version includes Gerry's change - please report

editing wrapped commands all good now.
Latest F4 Latest H7 FotS
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2394
Posted: 02:37pm 04 May 2025
Copy link to clipboard 
Print this post

  Quote  Fixes about a gazillion bugs when using a default background colour other than black in VGA and HDMI versions particularly in mode 1

could Map have been useful then used black but made it a different colour?
 
dddns
Senior Member

Joined: 20/09/2024
Location: Germany
Posts: 260
Posted: 03:20pm 04 May 2025
Copy link to clipboard 
Print this post

PicoMiteVGA MMBasic RP2350B Edition V6.00.02RC20
OPTION FLASH SIZE 16777216
OPTION COLOURCODE ON
OPTION KEYBOARD US
OPTION PICO OFF
OPTION RESOLUTION 800x600 @ 360000KHz
OPTION DISPLAY 50, 100
OPTION SDCARD GP41, GP40, GP39, GP42
OPTION PSRAM PIN GP47

When going through the history of issued commands at the prompt, the console bc switches from black to white with every up/down keystroke.

We have had this discussion already but the new behavior falling back to some defined colour in the console doesn't make it easier for me to work with PicoMite..

Over all I can say, that there are really no crashes with PSRAM and the editor any more and it runs very well since several RCs. Many thanks!

Maybe its just imagination but the VGA picture quality has improved and is excellent.
Edited 2025-05-05 01:26 by dddns
 
matherp
Guru

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

  Quote  When going through the history of issued commands at the prompt, the console bc switches from black to white with every up/down keystroke.


Sorry can't replicate. Haven't got a RP2350 VGA with PSRAM but can't see that that could make a difference similarly different SD pins.

What sequence is needed to get into this state?
 
dddns
Senior Member

Joined: 20/09/2024
Location: Germany
Posts: 260
Posted: 03:57pm 04 May 2025
Copy link to clipboard 
Print this post

It happens, when it creates a framebuffer f. If PSRAM is enabled, the program runs.
If PSRAM is disabled it complains about heap and immediately shows this behavior.
My RP2040 shows 156k free. I'm not sure if this is way to low?
> framebuffer create
Error : Not enough Heap memory
> memory
Program:
 48K (25%) Program (1087 lines)
136K (75%) Free

Saved Variables:
 16K (100%) Free

RAM:
  0K ( 0%) 0 Variables
  0K ( 0%) General
148K (100%) Free
>



with walked back RC12:
> memory
Program:
  0K ( 0%) Program (0 lines)
184K (100%) Free

Saved Variables:
 16K (100%) Free

RAM:
  0K ( 0%) 0 Variables
  0K ( 0%) General
232K (100%) Free
> framebuffer create
>


Edited 2025-05-05 02:05 by dddns
 
matherp
Guru

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

I still can't replicate

Setting the resolution to 800 consumes extra heap which is  then no longer available to MMbasic. In modes other than 800x600 and 848x480 640x480/2 bytes are allocated for the internal framebuffer (153600 bytes). In order to support 800x600x16 colour mode 3 we need an extra 800x600/2-640x480/2 bytes which are taken from the user heap (86400 bytes).
 
dddns
Senior Member

Joined: 20/09/2024
Location: Germany
Posts: 260
Posted: 04:11pm 04 May 2025
Copy link to clipboard 
Print this post

As I posted, I was working with RC12 up to yesterday. This RC was the one, when VGA picture and editor errors were gone.

edit: with this RC12 the fall back to some colour issues started

I tested it once more and I can say for sure now, that it only happens with PSRAM enabled. Never the less I'm very happy that PSRAM makes it possible to use a framebuffer even it's so slow and that it works like a charm!
Edited 2025-05-05 02:31 by dddns
 
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 217
Posted: 04:29pm 04 May 2025
Copy link to clipboard 
Print this post

  dddns said  
When going through the history of issued commands at the prompt, the console bc switches from black to white with every up/down keystroke.


Had exactly the same effect with OLIMEX setup, got rid of it with flash_nuke. As Peter wrote, needed to clear the flash before installation of RC20.
                                                                 
73 de OE1HGA, Gerald
 
dddns
Senior Member

Joined: 20/09/2024
Location: Germany
Posts: 260
Posted: 04:32pm 04 May 2025
Copy link to clipboard 
Print this post

  ville56 said  
  dddns said  
When going through the history of issued commands at the prompt, the console bc switches from black to white with every up/down keystroke.


will try..thank you!

I wiped it and did an option reset. It stays at the behavior to change bc once PSRAM and framebuffer is used at 800x600 mode3
Edited 2025-05-05 02:40 by dddns
 
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 217
Posted: 04:41pm 04 May 2025
Copy link to clipboard 
Print this post

  dddns said  
  ville56 said  
  dddns said  
When going through the history of issued commands at the prompt, the console bc switches from black to white with every up/down keystroke.


will try..thank you!


sorry ddns, forget my answer, did not test enough ....

found out that the toggle issue only does NOT apply to MODE 1, all other modes toggle BC color.

My config is:

> option list
PicoMiteHDMI MMBasic RP2350B Edition V6.00.02RC20
OPTION FLASH SIZE 16777216
OPTION COLOURCODE ON
OPTION KEYBOARD US
OPTION PICO OFF
OPTION RESOLUTION 640x480 @ 252000KHz
OPTION HDMI PINS  1, 3, 7, 5
OPTION SDCARD GP22, GP6, GP7, GP4
OPTION AUDIO GP26,GP27', ON PWM CHANNEL 5
OPTION MODBUFF ENABLE  192
OPTION PLATFORM OLIMEX
>
                                                                 
73 de OE1HGA, Gerald
 
matherp
Guru

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

  Quote  found out that the toggle issue only does NOT apply to MODE 1, all other modes toggle BC color.


Now, if someone had said that before......
 
mozzie
Senior Member

Joined: 15/06/2020
Location: Australia
Posts: 109
Posted: 05:07pm 04 May 2025
Copy link to clipboard 
Print this post

G'day,
Seeing the same problem on HDMI USB system, used Clear_Flash_RP2350.uf2 and re-loaded 060002rc20

Mode 1 - no problems
Mode 2,3,4,5 - background inverts with each press of up/down arrow, also with each character using backspace key

> option list
PicoMiteHDMI MMBasic USB RP2350A Edition V6.00.02RC20
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION SYSTEM I2C GP20,GP21
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD US
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

No PSRAM fitted on this system.

Regards,
Lyle.
 
matherp
Guru

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

V6.00.02RC21 is available on

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

Fixes bug in VGA and HDMI versions when line editing in modes other than 1

Fixes bug in editing multi-line commands at the command prompt

Reverts to previous MP3 codec as the new version seems to be incompatible with some mp3 files

Fixes a bug where the edit cursor could overwrite character descenders in font 1

Includes support for using underscore as a line continuation character.
Enable/disable this with:

OPTION CONTINUATION LINES ON/OFF/ENABLE/DISABLE

This is a permanent option but doesn't cause a reboot

When enabled it changes behaviour as follows:

The underscore character chr$(95) is used as a line continuation when it appears as the last character on a line.

The LIST command and EDIT commands will automatically insert line continuation characters when used. They will be inserted at a space or comma character if possible or at the last displayable character as defined by OPTION DISPLAY if not.

All text in a program will therefore be viewable in the editor

When in the editor you can use the line continuation character to split lines. However, on saving these effectively disappear but are recreated when the program is listed or edited. NB: They may not therefore be in the same place.
When you use EDIT fname$ continuation characters are created as the file loads and then removed again when the file is saved.

The way that this works is that the tokeniser effectively strips the continuation characters out of the program and joins the lines. The normal maximum line length applies. When editing/listing the saved file, the new functionality inserts the line continuation characters as described above.

A line continuation can be used inside a string
 
Volhout
Guru

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

@Peter,

I need your guidance in debugging. RP2040 VGA PS2. This is RC20.

When I run PETSCII ROBOTS using PS2 keyboard all works fine.
When I choose WII Classic remote connected to SYSTEM I2C on GP26/27 the game runs fine for few minutes. Then the MOD audio corrupts, then the picomite locks up (PS2 keyboard also locks up). Only reset revives.

I could use you help in what to do, to debug.
I am currently planning to
- stopwatch the time to crash
- monitor heap (but I think that is not it, since it happens at different places in the game)

Any idea's ?

Volhout
Edited 2025-05-05 04:58 by Volhout
PicomiteVGA PETSCII ROBOTS
 
Volhout
Guru

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

@Peter,

If you start petscci robots with a WII classic connected, and in in the intro screen start the game (either with console <space>, or on the classic remote <start>), do nothing at all in the game, not walk, not search, nothing at all, after 1 minute and 42 seconds, the game crashes (starting with distorted mod audio).

There is no error message on console. Once (a flash) I have seen an "invalid address" text on VGA, not on console. But could not repeat it.

The game inits
   WII CLASSIC open                            ' this opens the WII driver when able
   if mm.errno=0 then wwii=device(wii T) else wwii=0
   if wwii=&hA4200101 then                     ' wii classic controller
     CTRL_DRIVER$ = "ctrl_wii_classic$"        ' select Wii Classic controller


In the game loop the WII is handled like this
 ' Controller driver for Wii Classic gamepad.
Function ctrl_wii_classic$(init)
 If Not init Then
   Local bits, i, s$
   bits = Device(Wii b)
   If bits Then
     Select Case bits
         Case &h0001 : s$ = "toggle-item"   ' R shoulder button
         Case &h0002 : s$ = "use-item"      ' Start
         Case &h0004 : s$ = "map"           ' Home
         Case &h0008 : s$ = "escape"        ' Select
         Case &h0010 : s$ = "toggle-weapon" ' L shoulder button
         Case &h0020 : s$ = "fire-down"     ' Cursor down
         Case &h0040 : s$ = "fire-right"    ' Cursor right
         Case &h0080 : s$ = "fire-up"       ' Cursor up
         Case &h0100 : s$ = "fire-left"     ' Cursor left
         Case &h0800 : s$ = "move"          ' Button A
         Case &h2000 : s$ = "search"        ' Button B
     End Select
   Else
     ' Right analog joystick.
     Select Case Device(Wii RY)
         Case < 50  : s$ = "down"
         Case > 205 : s$ = "up"
     End Select
     Select Case Device(Wii RX)
         Case < 50  : s$ = "left"
         Case > 205 : s$ = "right"
     End Select
   EndIf
   
   ctrl_wii_classic$ = s$
   Exit Function
 Else
   Device Wii Open
 EndIf
End Function


Volhout

EDIT: heap is constant at 25344. I am not sure that is okay. Should heap not be 28k or larger ?
I noticed in this version there is only 126k RAM, not 128k RAM.
V6.00.01 runs fine with WII Classic remote (at least 5 minutes more).
.
Edited 2025-05-05 06:03 by Volhout
PicomiteVGA PETSCII ROBOTS
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 390
Posted: 09:03pm 04 May 2025
Copy link to clipboard 
Print this post

  matherp said  V6.00.02RC21 is available on

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

Fixes bug in VGA and HDMI versions when line editing in modes other than 1

Fixes bug in editing multi-line commands at the command prompt

Includes support for using underscore as a line continuation character.
Enable/disable this with:

OPTION CONTINUATION LINES ON/OFF/ENABLE/DISABLE

This is a permanent option but doesn't cause a reboot



When I set this option it works great. Thanks! It doesn't show up in the OPTION LIST, though. Is it supposed to? I'm using a bare Pico through the USB serial port.
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 390
Posted: 10:49pm 04 May 2025
Copy link to clipboard 
Print this post

  toml_12953 said  
  matherp said  V6.00.02RC21 is available on

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

Fixes bug in VGA and HDMI versions when line editing in modes other than 1

Fixes bug in editing multi-line commands at the command prompt

Includes support for using underscore as a line continuation character.
Enable/disable this with:

OPTION CONTINUATION LINES ON/OFF/ENABLE/DISABLE

This is a permanent option but doesn't cause a reboot



When I set this option it works great. Thanks! It doesn't show up in the OPTION LIST, though. Is it supposed to? I'm using a bare Pico through the USB serial port.


Oops! I spoke too soon. 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.

10 PRINT TAB(33);"BOMBARDMENT"
20 PRINT TAB(15);"CREATIVE COMPUTING  MORRISTOWN, NEW JERSEY"
30 PRINT:PRINT:PRINT
100 PRINT "YOU ARE ON A BATTLEFIELD WITH 4 PLATOONS AND YOU"
110 PRINT "HAVE 25 OUTPOSTS AVAILABLE WHERE THEY MAY BE PLACED."
120 PRINT "YOU CAN ONLY PLACE ONE PLATOON AT ANY ONE OUTPOST."
130 PRINT "THE COMPUTER DOES THE SAME WITH ITS FOUR PLATOONS."
135 PRINT
140 PRINT "THE OBJECT OF THE GAME IS TO FIRE MISSLES AT THE"
150 PRINT "OUTPOSTS OF THE COMPUTER.  IT WILL DO THE SAME TO YOU."
160 PRINT "THE ONE WHO DESTROYS ALL FOUR OF THE ENEMY'S PLATOONS"
170 PRINT "FIRST IS THE WINNER."
180 PRINT
190 PRINT "GOOD LUCK... AND TELL US WHERE YOU WANT THE BODIES SENT!"
200 PRINT
210 PRINT "TEAR OFF MATRIX AND USE IT TO CHECK OFF THE NUMBERS."
220 FOR R=1 TO 5: PRINT: NEXT R
260 DIM M(100)
270 FOR R=1 TO 5
280 I=(R-1)*5+1
290 PRINT I,I+1,I+2,I+3,I+4
300 NEXT R
350 FOR R=1 TO 10: PRINT: NEXT R
380 C=INT(RND(1)*25)+1
390 D=INT(RND(1)*25)+1
400 E=INT(RND(1)*25)+1
410 F=INT(RND(1)*25)+1
420 IF C=D THEN 390
430 IF C=E THEN 400
440 IF C=F THEN 410
450 IF D=E THEN 400
460 IF D=F THEN 410
470 IF E=F THEN 410
480 PRINT "WHAT ARE YOUR FOUR POSITIONS";
490 INPUT G,H,K,L
495 PRINT
500 PRINT "WHERE DO YOU WISH TO FIRE YOUR MISSLE";
510 INPUT Y
520 IF Y=C THEN 710
530 IF Y=D THEN 710
540 IF Y=E THEN 710
550 IF Y=F THEN 710
560 GOTO 630
570 M=INT(RND(1)*25)+1
575 GOTO 1160
580 IF X=G THEN 920
590 IF X=H THEN 920
600 IF X=L THEN 920
610 IF X=K THEN 920
620 GOTO 670
630 PRINT "HA, HA YOU MISSED. MY TURN NOW:"
640 PRINT: PRINT: GOTO 570
670 PRINT "I MISSED YOU, YOU DIRTY RAT. I PICKED";M". YOUR TURN:"
680 PRINT: PRINT: GOTO 500
710 Q=Q+1
720 IF Q=4 THEN 890
730 PRINT "YOU GOT ONE OF MY OUTPOSTS!"
740 IF Q=1 THEN 770
750 IF Q=2 THEN 810
760 IF Q=3 THEN 850
770 PRINT "ONE DOWN, THREE TO GO."
780 PRINT: PRINT: GOTO 570
810 PRINT "TWO DOWN, TWO TO GO."
820 PRINT: PRINT: GOTO 570
850 PRINT "THREE DOWN, ONE TO GO."
860 PRINT: PRINT: GOTO 570
890 PRINT "YOU GOT ME, I'M GOING FAST. BUT I'LL GET YOU WHEN"
900 PRINT "MY TRANSISTO&S RECUP%RA*E!"
910 GOTO 1235
920 Z=Z+1
930 IF Z=4 THEN 1110
940 PRINT "I GOT YOU. IT WON'T BE LONG NOW. POST";X;"WAS HIT."
950 IF Z=1 THEN 990
960 IF Z=2 THEN 1030
970 IF Z=3 THEN 1070
990 PRINT "YOU HAVE ONLY THREE OUTPOSTS LEFT."
1000 PRINT: PRINT: GOTO 500
1030 PRINT "YOU HAVE ONLY TWO OUTPOSTS LEFT."
1040 PRINT: PRINT: GOTO 500
1070 PRINT "YOU HAVE ONLY ONE OUTPOST LEFT."
1080 PRINT: PRINT: GOTO 500
1110 PRINT "YOU'RE DEAD. YOUR LAST OUTPOST WAS AT";X;". HA, HA, HA."
1120 PRINT "BETTER LUCK NEXT TIME."
1150 GOTO 1235
1160 P=P+1
1170 N=P-1
1180 FOR T=1 TO N
1190 IF M=M(T) THEN 570
1200 NEXT T
1210 X=M
1220 M(P)=M
1230 GOTO 580 ' I just added this so that I could exceed the line limit. It should be long enough now. When I edit this line, I don't see line 1235 END. The cursor goes into the status line when I try to move down.
1235 END

Edited 2025-05-05 08:49 by toml_12953
 
mozzie
Senior Member

Joined: 15/06/2020
Location: Australia
Posts: 109
Posted: 05:53am 05 May 2025
Copy link to clipboard 
Print this post

G'day,

Just read back through 37 pages of this thread and whilst this has been mentioned before, still looking for a definitive answer.

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

Does anyone know if this is by design or a limitation, or something that requires attention?

> option list
PicoMiteHDMI MMBasic USB RP2350A Edition V6.00.02RC21
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION SYSTEM I2C GP20,GP21
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD US, 0, 0, 500, 100
OPTION RESOLUTION 720x400 @ 283200KHz
OPTION DISPLAY 33, 90
OPTION SDCARD GP22, GP26, GP27, GP28
OPTION KEYBOARD REPEAT 500,100
OPTION AUDIO GP10,GP11', ON PWM CHANNEL 5
OPTION RTC AUTO ENABLE
OPTION MODBUFF ENABLE  192
OPTION PLATFORM HDMIUSB

Regards,
Lyle.
 
     Page 37 of 44    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025