Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 02:42 23 Dec 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 : Eureka

Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9284
Posted: 02:01pm 21 Dec 2024
Copy link to clipboard 
Print this post



Transpires there is a bug in the sdk that resets the PSRAM timings when you write to flash. I've put in some code to restore them after flash writes and now the Pimoroni Plus can run at 372 or 378MHz allowing widescreen HDMI. Also tested on PGA2350
Edited 2024-12-22 00:16 by matherp
 
javavi

Senior Member

Joined: 01/10/2023
Location: Ukraine
Posts: 293
Posted: 02:21pm 21 Dec 2024
Copy link to clipboard 
Print this post

This is another small step towards the widespread use of PSRAM on PicoMite
 
javavi

Senior Member

Joined: 01/10/2023
Location: Ukraine
Posts: 293
Posted: 02:38pm 21 Dec 2024
Copy link to clipboard 
Print this post

Wouldn't it be nice to write some kind of stress test to check the used memory of PSRAM?

I did a simple test of the speed of copying one 1kB template array to arrays occupying the rest of the space, and this test paradoxically showed the same speed on both PicoMite without PSRAM and with it.
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3163
Posted: 06:36pm 21 Dec 2024
Copy link to clipboard 
Print this post

Exactly which PCB is this?
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
javavi

Senior Member

Joined: 01/10/2023
Location: Ukraine
Posts: 293
Posted: 12:57am 22 Dec 2024
Copy link to clipboard 
Print this post

  lizby said  Exactly which PCB is this?

For example, in my experiments with PSRAM I use a Chinese clone of Pico2 called RP2350-Plus to which I soldered the PSRAM chip on top of the flash memory chip.
To select the PSRAM chip, one port of Pico2 is used, in my case it is GP8.


Edited 2024-12-22 11:03 by javavi
 
javavi

Senior Member

Joined: 01/10/2023
Location: Ukraine
Posts: 293
Posted: 10:40am 22 Dec 2024
Copy link to clipboard 
Print this post

@matherp
Regarding the PSRAM with PicoMite RP2350,
I would also like to understand how this extended RAM memory is distributed in the PicoMite memory system, as well as how and where the built-in SRAM memory of the RP2350 chip is used when the PSRAM is connected?
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9284
Posted: 10:48am 22 Dec 2024
Copy link to clipboard 
Print this post

PSRAM is allocated to the MMBasic heap used for arrays, strings etc. built-in RAM is used preferentially until full unless the request is too big in which case PSRAM is used
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 917
Posted: 12:26pm 22 Dec 2024
Copy link to clipboard 
Print this post

I love those eureka moments    
 
dddns
Newbie

Joined: 20/09/2024
Location: Germany
Posts: 21
Posted: 12:32pm 22 Dec 2024
Copy link to clipboard 
Print this post

I would like to use a Pimoroni PGA2350 as a base.
Is it (fully) supported by Picomite? Good idea?
 
javavi

Senior Member

Joined: 01/10/2023
Location: Ukraine
Posts: 293
Posted: 12:58pm 22 Dec 2024
Copy link to clipboard 
Print this post

My testing of memory block array write/read/copy speeds showed little difference in speed between the built-in SRAM and external PSRAM memory.
Tested with different block sizes from 1KB to 32KB.

MEM BLOCK:  1k         2k         16k
-------------------------------------------
SRAM WR - 1.81 mS    3.55 mS    28.10 mS
SRAM RD - 1.80 mS    3.53 mS    27.90 mS
SRAM CP - 2.61 mS    5.17 mS    40.91 mS
-------------------------------------------
PSRAM WR - 1.99 mS    3.85 mS    30.30 mS
PSRAM RD - 1.96 mS    3.81 mS    29.40 mS
PSRAM CP - 2.75 ms    5.40 mS    43.83 mS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9284
Posted: 01:29pm 22 Dec 2024
Copy link to clipboard 
Print this post

More info - not good though

It now appears that the tuning of the timing is probably dependent on the specific RAM chip used. I'm tuning based on the ram used by Pimoroni but it may not suit other RAM variants. I can just get the 372MHz required for 1280P HDMI video but can't reliably get 378MHz. Sometimes it boots and sometimes it doesn't so I'm limiting the clock speed to 372MHz for standard PicoMite and 315000 for PicoMiteVGA


  Quote  I would like to use a Pimoroni PGA2350 as a base.
Is it (fully) supported by Picomite? Good idea?


The question doesn't really mean anything. Currently there is no official PicoMite release for the RP2350 but there will be very soon. What versions are you intending to use and for what? Are you aware that you can't buy RP2350 chips - only built modules?
 
javavi

Senior Member

Joined: 01/10/2023
Location: Ukraine
Posts: 293
Posted: 03:34pm 22 Dec 2024
Copy link to clipboard 
Print this post

  matherp said  More info - not good though
It now appears that the tuning of the timing is probably dependent on the specific RAM chip used.

What PSRAM memory chip do you use?
I have this ESP-PSRAM64H 133MHz 3.3V
I can check your firmware version for myself!
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024