Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:25 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 14 of 18    
Author Message
ville56
Senior Member

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

either leave the test with menue choice 0 or ctrl-c, makes no difference.
                                                                 
73 de OE1HGA, Gerald
 
ville56
Senior Member

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

Peter,

I've boiled it a bit down. It seems that the corsor_colours() variables get corrupted when used with a turtle statement or the internal pointer to the variable is corrupted. If the colors are specified with constants, it works. The code below shows explicitly the corruption when run. On first run both loops work ok after a reset or restart. If run again, the first loop shows no cursor and the second loop crashes the program with an ivalid value for the color. This applies to all subsequent runs.


 '
 OPTION EXPLICIT
 OPTION DEFAULT NONE
 
 dim cursor_colors(4) As INTEGER, i as integer
 
 Turtle RESET
 Turtle ST
 cursor_colors(0) = RGB(RED)
 cursor_colors(1) = RGB(GREEN)
 cursor_colors(2) = RGB(BLUE)
 cursor_colors(3) = RGB(YELLOW)
 cursor_colors(4) = RGB(MAGENTA)
 
 For i = 0 To 4
 Turtle CURSORCOLOR cursor_colors(i)
 Turtle FD 40
 Turtle RT 72
 Pause 500
 Next i
 
 For i = 0 To 4
 Turtle CURSORCOLOR cursor_colors(i)
 Turtle FD 40
 Turtle RT 72
 Pause 500
 Next i
 
 end


Edit: just found out that a TURTLE RESET before the END statement cures the situation .... there seems to be something going wrong when the program exits.
Edited 2025-11-16 01:38 by ville56
                                                                 
73 de OE1HGA, Gerald
 
matherp
Guru

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

V6.01.00RC13


PicoMiteV6.01.00RC13.zip


Fixes an initialisation issue in turtle graphics
Fixes mp3 stack overflow in HDMI versions

New functionality:
FLASH LOAD IMAGE flashno, filename$ [,O/OVERWRITE]

This command loads the bmp file specified into the flash slot in RGB121 format. The flash slot should have been previously erased or specifying the optional parameter O or OVERWRITE will force an erase. Note that the first two words in the flash slot are the width of the saved image and the height of the saved image. The image need not be the same dimensions as the framebuffer.

BLIT FLASH from, to, xin, yin, xout, yout, width, height [,colour]

Copies an area of a specific ‘from’ flash slot to a
‘to’ framebuffer N, F, or L. ‘xin’ and ‘yin’ define the top left of the area of
‘width’ and ‘height’ on the flash slot to be copied. ‘xout’ and ‘yout’
define the top left of the area on the target framebuffer to receive the copy. The
optional parameter colour defines a pixel colour in the flash slot which will not
be copied. If omitted all pixels are copied. The colour is specified as a number
between 0 and 15 representing:
Black, Blue, Myrtle, Cobalt, Midgreen, Cerulean, green, cyan, red, magenta,
rust, fuschia, brown, lilac, yellow and white

LOAD IMAGE/BMP fname$ [,x] [,y] [,mode] [,ximage] [,yimage]

Loads a BMP file from fname$ and writes it to the current output device (display or framebuffer) starting at x, y (default to 0,0).
The optional mode parameter specifies if the output is to be dithered. Bits 0 and 1 specify the output format and bit 2 specifies the type of dithering to use. By default mode is set to -1 which indicates no dithering should be applied.
NB: LOAD DITHERED is removed as this command supersedes it.
// Format identifiers - bits 0 and 1
#define FORMAT_RGB121 0
#define FORMAT_RGB222 1
#define FORMAT_RGB332 2
#define FORMAT_RGB565 3
// Method identifiers - bit 2
#define METHOD_FLOYD_STEINBERG 0
#define METHOD_ATKINSON 1

ximage and yimage specify where in the image file to start writing to the display (default to 0,0)

NOTE:
The version includes a complete re-write of BMP file processing. This affects:
LOAD IMAGE, FLASH LOAD IMAGE, BLIT LOAD, and SPRITE LOADBMP.
The new decoder supports for all commands:
1-bit (monochrome) - 2 colors with palette
4-bit - 16 colors with palette
8-bit - 256 colors with palette
16-bit - typically 5-5-5 RGB or 5-6-5 RGB
24-bit - 8-8-8 RGB (true color, most common)
BI_RGB (0) - uncompressed (most common)
BI_RLE8 (1) - 8-bit run-length encoding
BI_RLE4 (2) - 4-bit run-length encoding
Edited 2025-11-16 02:49 by matherp
 
ville56
Senior Member

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

Peter,

after flashing PicoMiteRP2350V6.01.00RC13.uf2 the LED stays on (does not blink), the virtual serial port is created but the pico does not start up and is unresponsive. Tried 2350 HDMIUSB and VGA, both start up. So must be some bug in the plain 2350 version. Tried to nuke the flash several times and tried to upgrade via RC11, RC12 to no avail. RC11 and RC12 do work though. HW is genuine RP2350 Pico 2 board.

Edit: error message at startup is: "Error : Display not configured"
Edited 2025-11-16 03:58 by ville56
                                                                 
73 de OE1HGA, Gerald
 
matherp
Guru

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

Oops - sorry

PicoMiteV6.01.00RC13.zip
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 721
Posted: 07:04pm 15 Nov 2025
Copy link to clipboard 
Print this post

Hi Peter,

I am testing ALL my available working programs with your new RC13 and found another problem (which is also present in RC12 and maybe more down the line, but works in PicoMiteV6.01.00RC0.zip !)

ERROR with AES...








But in THIS version everything is fine:

PicoMiteV6.01.00RC0.zip

No problems here, so something is changend with the AES...

Greetings
Daniel
Edited 2025-11-16 05:12 by Amnesie
 
matherp
Guru

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

I've checked the code and there is no difference from 6.00.02 to 6.01.00RC13. Please provide a test program that you have verified works on 6.00.02. Also specify all options and exactly which version VGA/WEB 2040/2350 etc
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 721
Posted: 08:17pm 15 Nov 2025
Copy link to clipboard 
Print this post

Hi Peter,

here is the testprogram (only the encrypt / decrypt):


AES_File08.zip


And here is the proof that the files in the different versions are NOT identical
(RC0 vs. RC13) also see the OPTION LIST below:








Greetings
Daniel
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 264
Posted: 09:32pm 15 Nov 2025
Copy link to clipboard 
Print this post

Save no longer works for the A: drive on an RP2040.
Flash save still works.

> save "turtle_help.bas"
Error: Invalid address - resetting
PicoMite MMBasic RP2040 V6.01.00RC13
Copyright 2011-2025 Geoff Graham
Copyright 2016-2025 Peter Mather

> option list
PicoMite MMBasic RP2040 V6.01.00RC13
OPTION SYSTEM SPI GP6,GP7,GP4
OPTION SYSTEM I2C GP0,GP1
OPTION COLOURCODE ON
OPTION HEARTBEAT OFF
OPTION PICO OFF
OPTION CPUSPEED (KHz) 200000
OPTION DISPLAY 50, 100
OPTION LCDPANEL SSD1306I2C, LANDSCAPE
OPTION SDCARD GP5
OPTION RTC AUTO ENABLE
OPTION PLATFORM RP2040-Zero 2MB
> save "turtle_help.bas"
Error: Invalid address - resetting
> flash list
Slot 1 in use: "' minifm 2"
Slot 2 in use: "' Bewegingscommando's:"
Slot 3 available
> flash load 2
> files
A:/
  <DIR>  .
  <DIR>  ..
21:58 15-11-2025          4  bootcount
18:17 28-10-2025      40125  help.txt
18:20 28-10-2025      40125  help.txt.bak
18:14 28-10-2025      42946  minifm_RC2.bas
14:15 28-10-2025        321  RGB-0-10%.bas
13:45 28-10-2025         50  RGB-blauw=5%.bas
21:56 15-11-2025          0  trutle.bas
21:51 15-11-2025          0  turtle help.bas
21:52 15-11-2025          0  turtle-help.bas
21:58 15-11-2025          0  turtle_help.bas
2 directories, 10 files, 544768 bytes free
> save "turtle_help.bas"
Error: Invalid address - resetting
> new
> kill "trutle.bas
> kill "turtle help.bas
> kill "turtle-help.bas
> kill "turtle_help.bas
> files
A:/
  <DIR>  .
  <DIR>  ..
21:59 15-11-2025          4  bootcount
18:17 28-10-2025      40125  help.txt
18:20 28-10-2025      40125  help.txt.bak
18:14 28-10-2025      42946  minifm_RC2.bas
14:15 28-10-2025        321  RGB-0-10%.bas
13:45 28-10-2025         50  RGB-blauw=5%.bas
2 directories, 6 files, 544768 bytes free

Greetings,

Jan.

Version V6.01.00RC12 reinstalled and everything works again.
Edited 2025-11-16 08:20 by JanVolk
 
toml_12953
Guru

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

  matherp said  Oops - sorry

PicoMiteV6.01.00RC13.zip


When I try to load PicoMiteRP2040V6.01.00RC13 or PicoMiteRP2350V6.01.00RC13

to their respective bare, boards using the USB serial interface to a PC, I get a constant connect/disconnect sound from the PC and nothing shows up in the terminal.
 
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 295
Posted: 06:57am 16 Nov 2025
Copy link to clipboard 
Print this post

Do you use a USB hub to connect to the picos? I've already had lots of fun with them flashing the firmware/ connecting the virtual comm. I only use direct USB connections. You may also try to nuke the picos first, did cure some strange behavior here, at least sometimes.
And if you're on Windows, a reboot may help ....  
Edited 2025-11-16 16:59 by ville56
                                                                 
73 de OE1HGA, Gerald
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6364
Posted: 07:19am 16 Nov 2025
Copy link to clipboard 
Print this post

  Quote  When I try to load PicoMiteRP2040V6.01.00RC13


Works OK for me.
VK7JH
MMedit
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10653
Posted: 08:17am 16 Nov 2025
Copy link to clipboard 
Print this post

There is something wrong with this build. Untouched areas of code are miss-behaving. I suggest avoiding RC13 unless you want to play with the new functionality. I knew I shouldn't have released a "13" version
Edited 2025-11-16 18:31 by matherp
 
matherp
Guru

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

V6.01.00RC14

PicoMiteV6.01.00RC14.zip

Solves issue in PicoMite RP2040. This was caused by changing the compilation optimisation level of a file so presumably some sort of compiler bug
Solves a bug introduced some time ago  when printing to file data that includes NULL characters (AES issue was actually this)
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1060
Posted: 12:18pm 16 Nov 2025
Copy link to clipboard 
Print this post

Hi Peter,
MATH.c appears to have the MATH PID in twice, I think second one should be commented out.

tp = checkstring(cmdline, (unsigned char *)"PID");
F4 H7FotSF4xGT
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 498
Posted: 12:21pm 16 Nov 2025
Copy link to clipboard 
Print this post

  matherp said  V6.01.00RC14

PicoMiteV6.01.00RC14.zip

Solves issue in PicoMite RP2040. This was caused by changing the compilation optimisation level of a file so presumably some sort of compiler bug
Solves a bug introduced some time ago  when printing to file data that includes NULL characters (AES issue was actually this)


RC14 fixes the problems I had. Thanks!
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 721
Posted: 02:15pm 16 Nov 2025
Copy link to clipboard 
Print this post

Hi Peter,

can confirm, no bugs found so far and the AES issue is solved! Great work!

Greetings
Daniel
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 264
Posted: 07:50pm 16 Nov 2025
Copy link to clipboard 
Print this post

Hi Peter,

Everything is working fine again.
The flash memory is completely erased for V6.01.00RC14.
More memory is available for the RP2350.
* is no longer needed for > help xxxxx

Thanks.

Regards,

Jan.
 
AlbertR
Regular Member

Joined: 29/05/2025
Location: Germany
Posts: 88
Posted: 10:13am 17 Nov 2025
Copy link to clipboard 
Print this post

Hi Peter,

I have an other one in connection with "lcdpanel user"
Up to V6.01.00RC12 it was ok.

To show the problem I made a litte testprogram that could run on every platform.

Dim integer Work

On error skip
Option lcdpanel user,128,64

Execute "option list"

'Erase Work
'Clear

Sub mm.user_rectangle(x1%,y1%,x2%,y2%,col%)
 Work = 1
End Sub


If running ones there are no abnormalities, but starting it again without entering the editor ones more, it generates an error!
  Quote  
> run
PicoMite MMBasic RP2350A V6.01.00RC14
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION CPUSPEED (KHz) 200000
OPTION DISPLAY 40, 80
OPTION LCDPANEL USER 128, 64
> run
[1] Dim integer Work
Error : Work already declared



Also Erase or Clear have no effects

Regards,
Albert
Edited 2025-11-17 20:14 by AlbertR
 
matherp
Guru

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

OK, understand the issue - will fix
 
     Page 14 of 18    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025