Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 20:33 24 Nov 2024 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 : RP2350 firmware

     Page 5 of 20    
Author Message
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 362
Posted: 01:53pm 28 Aug 2024
Copy link to clipboard 
Print this post

I think I found another small bug in PicoMiteHDMI 6.00.00b0.
The CPUSPEED command seems to be a carry-over from the VGA version.

I thought I had Terra Term connected to the Tiny2350 running on VGA, but was actually looking at the HDMI running on the 2350 PGA.

I can report that the Tiny2350 ran VGA 5.09.00RC7 overnight at 378000 with no troubles.

PicoMiteHDMI MMBasic Version 6.00.00b0
Copyright 2011-2024 Geoff Graham
Copyright 2016-2024 Peter Mather

> option list
PicoMiteHDMI MMBasic Version 6.00.00b0
OPTION FLASH SIZE 16777216
OPTION KEYBOARD US
OPTION PICO OFF
OPTION CPUSPEED (KHz) 315000
> option cpuspeed 1
Error : CpuSpeed 126000, 252000 or 378000 only
> option cpuspeed 315000
Error : CpuSpeed 126000, 252000 or 378000 only

-Carl
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 362
Posted: 02:14pm 28 Aug 2024
Copy link to clipboard 
Print this post

  PhenixRising said  Pico Plus 2 doesn't like 378MHz (different flash?)

300MHz is no problem.


I can also confirm that the Pimoroni 2350PGA device doesn't seem to run above about 315000Khz.  I tested with PSRAM disabled and enabled.  My Pico 2 and Pico2 plus devices are still about a week away.
-Carl
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 857
Posted: 02:38pm 28 Aug 2024
Copy link to clipboard 
Print this post

  Sasquatch said  
I can report that the Tiny2350 ran VGA 5.09.00RC7 overnight at 378000 with no troubles.


Same with my Tiny2350  

Edit: Oh but plain PicoMite firmware in my case
Edited 2024-08-29 00:39 by PhenixRising
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2120
Posted: 06:31pm 28 Aug 2024
Copy link to clipboard 
Print this post

pico2 runs at 378000 ok but not mentioned in the manual now. playing safe?
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4222
Posted: 07:15pm 28 Aug 2024
Copy link to clipboard 
Print this post

@Peter,

Despite the fact that my PIO programs run, there is something wrong when stopping an MMBasic program. It feels like the PIO program keeps running, and re-programming the PIO does not work. I tried PIO STOP x,x but that did not work.

Problem is that you have to CPU RESTART first before you can update a PIO program once it has been running and is stopped.

Volhout
PicomiteVGA PETSCII ROBOTS
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6779
Posted: 08:21pm 28 Aug 2024
Copy link to clipboard 
Print this post

There is no manual for the Picomite 2, Stan. :)

The RP2350 doesn't overclock quite as well as the RP2040, I don't think. However, it's more efficient so it's actually faster for the same clock speed (approximately 1.7x faster depending on what you are doing).

In particular, if you read Peter's posts, you'll find that some clock speeds don't work   for certain video systems.
Mick

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

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2120
Posted: 09:16pm 28 Aug 2024
Copy link to clipboard 
Print this post

  Mixtel90 said  There is no manual for the Picomite 2, Stan. :)

The RP2350 doesn't overclock quite as well as the RP2040, I don't think. However, it's more efficient so it's actually faster for the same clock speed (approximately 1.7x faster depending on what you are doing).

In particular, if you read Peter's posts, you'll find that some clock speeds don't work   for certain video systems.

the vga manual I got MMBasic Ver 5.08.00 no mention of 3xxxxx just 2xxxxx and this manual must be for 2040 as no manual for pico2
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6779
Posted: 09:46pm 28 Aug 2024
Copy link to clipboard 
Print this post

Huh...
I'm still using the 5.07 manual. I keep meaning to print out a newer one but I keep waiting until the next one is ready....   :)  I have some later ones but only as pdf.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 144
Posted: 10:25pm 28 Aug 2024
Copy link to clipboard 
Print this post

Mixtel90

The same with me. I also use a PDF and always add something with a shortcut to my desktop.
Translated and with many examples and templates for printing. (369 pages)

Jan.
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 10:42pm 28 Aug 2024
Copy link to clipboard 
Print this post

The 2040 maximum speed was reduced in v5.08 for a while as some chips were unreliable at 378MHz, though you could get around the limit with a .OPT file.
In v5.09 the limit was restored to 378 then recently raised to 420MHz for the non-VGA.
Using the higher speeds is entirely at your own risk, some chips will misbehave or not work at all.

Also keenly awaiting the v5.09 manual, but we wont see that till v5.09.00 firmware is finished.

History as recalled rather than researched, may not be entirely true. Read "1066 and All That".
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2120
Posted: 11:56pm 28 Aug 2024
Copy link to clipboard 
Print this post

in the manual ili9341 gone!?
I got by using the suggested values in the manual and display, sdcard etc. worked.
The ili9341 was the basic defacto lcd that worked. no mention now :(
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 12:04am 29 Aug 2024
Copy link to clipboard 
Print this post

  Quote  in the manual ili9341 gone!?

  v5.08 manual said  OPTION LCDPANEL ILI9341, OR, DC, RESET, CS [,BACKLIGHTPIN]
Initialises a TFT display using the ILI9341 controller. This supports 320 * 240 resolution. Displays using this
controller are capable of transparent text and will work with the BLIT and BLIT READ commands.

Are you looking at the VGA manual?
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2120
Posted: 01:27am 29 Aug 2024
Copy link to clipboard 
Print this post

> option list
PicoMite MMBasic Version 6.00.00b0
OPTION SYSTEM SPI GP18,GP19,GP16
OPTION AUTORUN  ON
OPTION FLASH SIZE 4194304
OPTION CPUSPEED  378000 'KHz
OPTION LCDPANEL ILI9341, LANDSCAPE,GP15,GP14,GP13
OPTION TOUCH GP12,GP11
GUI CALIBRATE 0, 3865, 3884, -892, -655
OPTION SDCARD GP22
>
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9108
Posted: 08:49am 29 Aug 2024
Copy link to clipboard 
Print this post

Bug fixes for VGA version "Error : Stack overflow, expression too complex at depth 0"
and HDMI version "I'm getting some blocky artefacts on HDMI, only seems to affect Mode 1"


PicoMiteHDMI.zip


PicoMiteVGARP2350.zip
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4222
Posted: 10:39am 29 Aug 2024
Copy link to clipboard 
Print this post

Thanks Peter,

Running the VGA code now. Seems to work fine.
Looking into the PIO issues I mentioned yesterday.

The frequency counter stops are repeatable.
I am trying to bring the problem back to a sub function right now.

The problem where you cannot re-program the PIO without restart I cannot duplicate today, despite that it was 100% yesterday.

Sorry....

Volhout
PicomiteVGA PETSCII ROBOTS
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 1113
Posted: 10:57am 29 Aug 2024
Copy link to clipboard 
Print this post

  matherp said  Bug fixes for VGA version "Error : Stack overflow, expression too complex at depth 0"
and HDMI version "I'm getting some blocky artefacts on HDMI, only seems to affect Mode 1"


PicoMiteHDMI.zip


PicoMiteVGARP2350.zip

I am now on vacation in the Netherlands for a week (not at Volhout).
I ll test the new Version as soon when I m home again.
Edited 2024-08-29 20:58 by Martin H.
'no comment
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9108
Posted: 11:41am 29 Aug 2024
Copy link to clipboard 
Print this post

Harm

I've just tested the HDMI version just posted with your frequency counter code and it seems to work fine. I'll now try with the standard PicoMite
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4222
Posted: 12:16pm 29 Aug 2024
Copy link to clipboard 
Print this post

On this latest VGA the frequency counter also seems stable.

Maybe the Pico Version is pushing too much text ... too fast ... into the console UART. I can see that the "dead time between measurements" used for console output, is longer on VGA, despite VGA running 252MHz. Have been running it normal Pico (150MHz) for ten minutes now when commented out all the print commands (just checking the gate pulse at GP2). So I think it is text output related.

Volhout
Edited 2024-08-29 22:51 by Volhout
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9108
Posted: 01:26pm 29 Aug 2024
Copy link to clipboard 
Print this post

Harm

I don't understand what is going on with your frequency code. What determines the length of the gate pulse? Sometime I run it and the LED flashes, sometimes the pulse measures at just 2uSec so there is no obvious flash. This seems to be related in some way to cpuspeed. Also, it seems to be affected by setting or not an LCDPANEL CONSOLE. The HDMI and VGA versions output synchronously to the console by default. If the PicoMite version is set to output to a LCD in console mode then it doesn't fail, the gate pulse in this case seems to alternate between 2uS and around 50mec.

Seems like this may be a race condition of some sort
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4222
Posted: 01:33pm 29 Aug 2024
Copy link to clipboard 
Print this post

Hi Peter,

The GP2 is LOW when the counter is counting. The time it is high, is the time when the data is fetched from the FIFO's and the output strings are calculated.
I have seen the same, that these 5 strings are send to the UART in 2usec, and that seems unrealistic to me. Typical is 10ms (Pico) or 20ms (VGA) for high level on the GP2.

I think the 2us happens when the system is already stalled.

Harm
PicomiteVGA PETSCII ROBOTS
 
     Page 5 of 20    
Print this page
© JAQ Software 2024