Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:23 11 Jul 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 : PSRAM PIN

Author Message
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 220
Posted: 01:18pm 11 Jan 2025
Copy link to clipboard 
Print this post

I've upgraded a Waveshare RP2350 with a PSRAM chip.Tried it first on GP8 and it worked successfully. Then I moved the CS signal to GP19. When setting the option I got the following error:

> option psram pin gp19
Error : Invalid pin for PSRAM chip select (GP0,GP8,GP19,GP47)

I've tried to use the pin number 25, same error. Strange enough, using GP20 or pinnr 26 works syntactically, but has no effect on the PSRAM usage in MMbasic. The pin and the PSRAM CS signal do work on gp20, as "setpin gp20, dout" immediately crashes the system as the PSRAM CS is pulled low ... quod erat demonstrandum

I really need to move to GP19 (or GP20) because GP8 is used by the Pico-restouch-lcd and GP0 is used for serial I/O.

Is this a bug or is GP19 for PSRAM CS just not implemented?

Gerald
                                                                 
73 de OE1HGA, Gerald
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7857
Posted: 02:23pm 11 Jan 2025
Copy link to clipboard 
Print this post

The Datasheet states that pins GPIO0, GPIO8, GPIO19 or GPIO47 can be used as QMI CSn, i.e. to enable external QMI memory such as PSRAM. No others are possible.

If GP19 is used as HSTX7 (i.e. for HDMI output) then it is no longer available. You can probably use it, but not if your system is using HDMI.
Mick

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

Joined: 08/06/2022
Location: Austria
Posts: 220
Posted: 03:01pm 11 Jan 2025
Copy link to clipboard 
Print this post

No HDMI or whatsoever in use. It's plain V6.00.01, flash reset and no options set.

So I would consider it as a bug in this version as GP19 should be usable as PSRAM CS.
                                                                 
73 de OE1HGA, Gerald
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5056
Posted: 03:34pm 11 Jan 2025
Copy link to clipboard 
Print this post

What firmware is in the pico2.
Please show OPTION LIST.
Normally gp19 should work also. Maybe a conflict in configuration.

Volhout
PicomiteVGA PETSCII ROBOTS
 
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 220
Posted: 05:05pm 11 Jan 2025
Copy link to clipboard 
Print this post

Version is V6.00.01 (latest). For me it seems as a bug in the firmware, as it does not accept GP19 as valid parameter (see errormessage in my first post). No options whatsoever are in effect.
                                                                 
73 de OE1HGA, Gerald
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7857
Posted: 05:13pm 11 Jan 2025
Copy link to clipboard 
Print this post

Exactly which version though? That is shown on the OPTION LIST. It will also show if GP19 is being allocated to anything else on boot.

Also try SETPIN GP19, OFF before anything else.
Mick

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

Joined: 05/03/2018
Location: Netherlands
Posts: 5056
Posted: 05:15pm 11 Jan 2025
Copy link to clipboard 
Print this post

hi ville56,

Reason for asking OPTION LIST is that it shows (top line) the exact firmware version you have in the pico2. There are 12 versions, and maybe...just maybe....you have programmed one that prevents use of gp19.

And maybe it is just a bug... possible, because 8 and 47 have been tested before the release of 6.00.01, and 19 not.
The error text also indicates gp19 is not capable of controlling PSRAM (which it is) , and not that it is not free to use for controlling PSRAM. It could be a bug.

Volhout

EDIT: duplicated on 2350 . it seems to be a bug.
Edited 2025-01-12 03:32 by Volhout
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10232
Posted: 05:43pm 11 Jan 2025
Copy link to clipboard 
Print this post

It's a typo/bug. I'll put it on the list
 
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 220
Posted: 07:02pm 11 Jan 2025
Copy link to clipboard 
Print this post

Thanks Peter
                                                                 
73 de OE1HGA, Gerald
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025