Ok, both @Matty and I have lost days on this...
I cloned the latest PSRAM MicroPython stuff from loboris as per these instructions
https://github.com/loboris/MicroPython_ ... wiki/build
I've mod'd the spiram_psram.c and removed the early fail for PICOD4, so it continues to initialise SPIRAM
I've setup sdkconfig to use spiram and use as heap alloc like loboris instructions
I've wired up some Lyontek SPIRAM in various combinations -
the pin definitions across all of the code/schematics/hardware are completely inconsistent
I get a hard crash when trying to boot my PICO-KIT
I (902) boot: Loaded app from partition at offset 0x10000
I (902) boot: Disabling RNG early entropy source...
D (902) boot: Mapping segment 0 as IROM
D (906) boot: Mapping segment 5 as DROM
D (910) boot: calling set_cache_and_start_app
D (915) boot: configure drom and irom and start
D (919) boot: start: 0x400816ac
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x40083587 PS : 0x00060b30 A0 : 0x800843f8 A1 : 0x3ffe3bc0
A2 : 0xc00fffff A3 : 0xffffffff A4 : 0x00013ffc A5 : 0x00000000
A6 : 0x000008ff A7 : 0x3ffe3b19 A8 : 0x80083510 A9 : 0x3ffe3ba0
A10 : 0x00000000 A11 : 0x3ff42000 A12 : 0x00000034 A13 : 0x00000000
A14 : 0x00000000 A15 : 0x00000004 SAR : 0x00000017 EXCCAUSE: 0x0000001c
EXCVADDR: 0xffffffff LBEG : 0x4009bb90 LEND : 0x4009bb9b LCOUNT : 0x00000000
Backtrace: 0x40083587:0x3ffe3bc0 0x400843f5:0x3ffe3be0 0x400d3fa9:0x3ffe3c10 0x4008171a:0x3ffe3c30 0x400791b6:0x3ffe3c50 0x400792ad:0x3ffe3c80 0x400792cb:0x3ffe3cc0 0x4007967f:0x3ffe3ce0 0x40080391:0x3ffe3df0 0x40007c31:0x3ffe3eb0 0x4000073d:0x3ffe3f20
CPU halted.
I have the SPIRAM on a breakout board with a 0.1uF cap across VCC + GND
VCC is connected to 3V on the PICO-KIT and I've tried pretty much every combo of connecting everything, including not connecting SIO[2] and SIO[3] as they should not be needed for SPI operation mode I believe, but have tried with and without.
Either the board hangs on boot from here "D (xxx) boot: start: 0x400816ac" - or it crashes as per above.
I'm using the PICO-KIT to confirm correct wiring before I commit to another TinyPICO revision with wrong pins connected, but I just cant get it working.
NOTE: I've NOT tried re-mapping pins in spiram_psram.c as that's just a bad idea... I want TinyPICO to be compatible with PICO boards.
Anyone with any ideas?
Thanks
Seon
unexpectedmaker.com