Small ESP32 Modul ( all include in new ESP32-PICO )
Re: Small ESP32 Modul ( all include in new ESP32-PICO )
No real progress unfortunately, other than adding some extra logs to try to understand the read/write fails in the test:
E (1457) spiram: First Error after 2 good writes
E (1789) spiram: SPI SRAM memory test fail.
E (1790) spiram: Total Writes: 131072, Reads - Good: 80459, Bad: 50613
E (1791) spiram: First Good @ 3F800000, First Fail @ 3F800040
E (1798) cpu_start: External RAM failed memory test!
abort() was called at PC 0x400816c1 on core 0
Backtrace: 0x40094680:0x3ffe3bf0 0x40094823:0x3ffe3c10 0x400816c1:0x3ffe3c30 0x400790ef:0x3ffe3c50 0x400791a1:0x3ffe3c80 0x400791bf:0x3ffe3cc0 0x400794c1:0x3ffe3ce0 0x40080335:0x3ffe3df0 0x40007c31:0x3ffe3eb0 0x4000073d:0x3ffe3f20
CPU halted.
At this stage, with 80k good read/writes I'm inclined to think it's not a wiring issue, but a ram compatibility issue. I've noticed some SPIRAM initialisation requirements in the Lyontek ram datasheet, that I have been unable to track down in code anywhere... but I am understanding very little of the spiram.c and spiram_psram.c codebase at a low level
@loboris Did you have any chance to look at your TTGO? Did you get anything going on it? I don't think the TTGO has the required pins broken out to get SPIRAM working.
It might be time to get some other brand ram and try that
Edit: I ordered some of these... expensive shipping! But I need to know
https://www.electrodragon.com/product/2 ... 4-iot-ram/
Cheers,
Seon
unexpectedmaker.com
E (1457) spiram: First Error after 2 good writes
E (1789) spiram: SPI SRAM memory test fail.
E (1790) spiram: Total Writes: 131072, Reads - Good: 80459, Bad: 50613
E (1791) spiram: First Good @ 3F800000, First Fail @ 3F800040
E (1798) cpu_start: External RAM failed memory test!
abort() was called at PC 0x400816c1 on core 0
Backtrace: 0x40094680:0x3ffe3bf0 0x40094823:0x3ffe3c10 0x400816c1:0x3ffe3c30 0x400790ef:0x3ffe3c50 0x400791a1:0x3ffe3c80 0x400791bf:0x3ffe3cc0 0x400794c1:0x3ffe3ce0 0x40080335:0x3ffe3df0 0x40007c31:0x3ffe3eb0 0x4000073d:0x3ffe3f20
CPU halted.
At this stage, with 80k good read/writes I'm inclined to think it's not a wiring issue, but a ram compatibility issue. I've noticed some SPIRAM initialisation requirements in the Lyontek ram datasheet, that I have been unable to track down in code anywhere... but I am understanding very little of the spiram.c and spiram_psram.c codebase at a low level
@loboris Did you have any chance to look at your TTGO? Did you get anything going on it? I don't think the TTGO has the required pins broken out to get SPIRAM working.
It might be time to get some other brand ram and try that
Edit: I ordered some of these... expensive shipping! But I need to know
https://www.electrodragon.com/product/2 ... 4-iot-ram/
Cheers,
Seon
unexpectedmaker.com
Seon
unexpectedmaker.com
unexpectedmaker.com
Re: Small ESP32 Modul ( all include in new ESP32-PICO )
@seonroz
Unfortunately, my TTGO PICO module does not have all needed PICO pads broken out. I've tried to solder some wires directly to the ESP32-PICO-D4 chip, but, as expected, without much success.
In all my tests I've used IPUS IPS6404 from Electrodragon, and it works without any issue at 40 & 80MHz on WROOM modules. (The latest esp-idf supports 8MB psRAM, with bank switching the upper 4MB, this chip passes this test too).
"... expensive shipping!" -? When I've ordered it the postage was 3.58 US$ (to Europe).
Have you tested the Lyontek ram chip with ESP32-WROOM?
Unfortunately, my TTGO PICO module does not have all needed PICO pads broken out. I've tried to solder some wires directly to the ESP32-PICO-D4 chip, but, as expected, without much success.
In all my tests I've used IPUS IPS6404 from Electrodragon, and it works without any issue at 40 & 80MHz on WROOM modules. (The latest esp-idf supports 8MB psRAM, with bank switching the upper 4MB, this chip passes this test too).
"... expensive shipping!" -? When I've ordered it the postage was 3.58 US$ (to Europe).
Have you tested the Lyontek ram chip with ESP32-WROOM?
Re: Small ESP32 Modul ( all include in new ESP32-PICO )
Yup, that's what I thought - I also spec'd out the 2 TTGO PICO boards I have here, but at-least 2 missing pins on eachloboris wrote:@seonroz
Unfortunately, my TTGO PICO module does not have all needed PICO pads broken out. I've tried to solder some wires directly to the ESP32-PICO-D4 chip, but, as expected, without much success.
That's how I found out about it.. @matty pointed me to your forum post about it.loboris wrote:In all my tests I've used IPUS IPS6404 from Electrodragon, and it works without any issue at 40 & 80MHz on WROOM modules. (The latest esp-idf supports 8MB psRAM, with bank switching the upper 4MB, this chip passes this test too).
"... expensive shipping!" -? When I've ordered it the postage was 3.58 US$ (to Europe).
Yes, $5 postage to Australia... 35 -50 days for delivery. I really don't want to wait 35+ days to try new RAM, so I paid for DHL.... expensive shipping
No, I should do that... Might even try today... because I'm really enjoying all of this painloboris wrote:Have you tested the Lyontek ram chip with ESP32-WROOM?
Thanks for getting back to me Boris... I appreciate the ongoing info and help.
Cheers,
Seon
unexpectedmaker.com
Seon
unexpectedmaker.com
unexpectedmaker.com
Re: Small ESP32 Modul ( all include in new ESP32-PICO )
Ok, I wired it all up on a Frog Board I got on tindie... it's the only board I have with everything broken out that I needed.
And here are the results!
I (28) boot: ESP-IDF v3.1-rc1-53509c7b 2nd stage bootloader
I (28) boot: compile time 14:15:57
I (28) boot: Enabling RNG early entropy source...
I (34) boot: SPI Speed : 40MHz
I (38) boot: SPI Mode : DIO
I (42) boot: SPI Flash Size : 4MB
I (46) boot: Partition Table:
I (49) boot: ## Label Usage Type ST Offset Length
I (57) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (64) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (72) boot: 2 MicroPython factory app 00 00 00010000 00220000
I (79) boot: 3 internalfs Unknown data 01 82 00230000 001d0000
I (87) boot: End of partition table
I (91) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x77264 (488036) map
I (271) esp_image: segment 1: paddr=0x0008728c vaddr=0x3ffb0000 size=0x0572c ( 22316) load
I (280) esp_image: segment 2: paddr=0x0008c9c0 vaddr=0x3ffb572c size=0x00000 ( 0) load
I (280) esp_image: segment 3: paddr=0x0008c9c8 vaddr=0x40080000 size=0x00400 ( 1024) load
I (289) esp_image: segment 4: paddr=0x0008cdd0 vaddr=0x40080400 size=0x03240 ( 12864) load
I (303) esp_image: segment 5: paddr=0x00090018 vaddr=0x400d0018 size=0x17566c (1529452) map
I (842) esp_image: segment 6: paddr=0x0020568c vaddr=0x40083640 size=0x19b98 (105368) load
I (886) esp_image: segment 7: paddr=0x0021f22c vaddr=0x400c0000 size=0x00714 ( 1812) load
I (887) esp_image: segment 8: paddr=0x0021f948 vaddr=0x50000000 size=0x0098c ( 2444) load
I (912) boot: Loaded app from partition at offset 0x10000
I (912) boot: Disabling RNG early entropy source...
I (914) spiram: SPI RAM mode: flash 40m sram 40m
I (918) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (925) cpu_start: Pro cpu up.
I (929) cpu_start: Starting app cpu, entry point is 0x4008169c
I (0) cpu_start: App cpu up.
E (1790) spiram: First Error after 111806 good writes
E (1839) spiram: SPI SRAM memory test fail.
E (1839) spiram: Writes: 131072, Reads - Good: 131070, Bad: 2 from Total: 131072
E (1840) spiram: First Good @ 3F800000, First Fail @ 3FB697C0
E (1847) cpu_start: External RAM failed memory test!
abort() was called at PC 0x40081871 on core 0
Backtrace: 0x40095b6c:0x3ffe3bf0 0x40095d33:0x3ffe3c10 0x40081871:0x3ffe3c30 0x400790ef:0x3ffe3c50 0x400791a1:0x3ffe3c80 0x400791bf:0x3ffe3cc0 0x400794c1:0x3ffe3ce0 0x40080335:0x3ffe3df0 0x40007c31:0x3ffe3eb0 0x4000073d:0x3ffe3f20
CPU halted.
So, ram still not working, but much closer to 100% pass rate!
No idea where to go from here other than wait for new ram and try that on both boards.
Seon
unexpectedmaker.com
And here are the results!
I (28) boot: ESP-IDF v3.1-rc1-53509c7b 2nd stage bootloader
I (28) boot: compile time 14:15:57
I (28) boot: Enabling RNG early entropy source...
I (34) boot: SPI Speed : 40MHz
I (38) boot: SPI Mode : DIO
I (42) boot: SPI Flash Size : 4MB
I (46) boot: Partition Table:
I (49) boot: ## Label Usage Type ST Offset Length
I (57) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (64) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (72) boot: 2 MicroPython factory app 00 00 00010000 00220000
I (79) boot: 3 internalfs Unknown data 01 82 00230000 001d0000
I (87) boot: End of partition table
I (91) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x77264 (488036) map
I (271) esp_image: segment 1: paddr=0x0008728c vaddr=0x3ffb0000 size=0x0572c ( 22316) load
I (280) esp_image: segment 2: paddr=0x0008c9c0 vaddr=0x3ffb572c size=0x00000 ( 0) load
I (280) esp_image: segment 3: paddr=0x0008c9c8 vaddr=0x40080000 size=0x00400 ( 1024) load
I (289) esp_image: segment 4: paddr=0x0008cdd0 vaddr=0x40080400 size=0x03240 ( 12864) load
I (303) esp_image: segment 5: paddr=0x00090018 vaddr=0x400d0018 size=0x17566c (1529452) map
I (842) esp_image: segment 6: paddr=0x0020568c vaddr=0x40083640 size=0x19b98 (105368) load
I (886) esp_image: segment 7: paddr=0x0021f22c vaddr=0x400c0000 size=0x00714 ( 1812) load
I (887) esp_image: segment 8: paddr=0x0021f948 vaddr=0x50000000 size=0x0098c ( 2444) load
I (912) boot: Loaded app from partition at offset 0x10000
I (912) boot: Disabling RNG early entropy source...
I (914) spiram: SPI RAM mode: flash 40m sram 40m
I (918) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (925) cpu_start: Pro cpu up.
I (929) cpu_start: Starting app cpu, entry point is 0x4008169c
I (0) cpu_start: App cpu up.
E (1790) spiram: First Error after 111806 good writes
E (1839) spiram: SPI SRAM memory test fail.
E (1839) spiram: Writes: 131072, Reads - Good: 131070, Bad: 2 from Total: 131072
E (1840) spiram: First Good @ 3F800000, First Fail @ 3FB697C0
E (1847) cpu_start: External RAM failed memory test!
abort() was called at PC 0x40081871 on core 0
Backtrace: 0x40095b6c:0x3ffe3bf0 0x40095d33:0x3ffe3c10 0x40081871:0x3ffe3c30 0x400790ef:0x3ffe3c50 0x400791a1:0x3ffe3c80 0x400791bf:0x3ffe3cc0 0x400794c1:0x3ffe3ce0 0x40080335:0x3ffe3df0 0x40007c31:0x3ffe3eb0 0x4000073d:0x3ffe3f20
CPU halted.
So, ram still not working, but much closer to 100% pass rate!
No idea where to go from here other than wait for new ram and try that on both boards.
Seon
unexpectedmaker.com
Seon
unexpectedmaker.com
unexpectedmaker.com
Re: Small ESP32 Modul ( all include in new ESP32-PICO )
Yeah it's a miracle it works that well with those long wires and different lengths on a high speed 4-bit parallel interface.
Re: Small ESP32 Modul ( all include in new ESP32-PICO )
good morningrudi ;-) wrote: ..
how you connect PSRAM ( 3.3V ) to the PINHEADER of Pico-D4 ? ( FSD0, FSD1, FSD2, FSD3 )
which pins you use for PSRAM CS# and CLK ?
don't use FCLK ( flash clock ) for psram CLK
don't use FCS ( flash cs ) for psram CS#
...
PSRAM
PIN1(CS#)= "hope you use IO9"
PIN2(SO/SIO1)= ??
PIN3(SIO2)= ??
PIN4(VSS/GND)=
PIN5(SI/SIO0)= ??
PIN6(SCLK)= "hope you use IO10"
PIN7(SIO3)= ??
PIN8(Vcc)= ??
can you say how is your wire on the sd0 sd1 sd2 sd3 pins ?
btw which pico-d4 version is the board you use ?
cause sd0 sd1 sd2 sd3 is silked on the top in your pic's,
usually it is silked on bottom (v3)
usually it is silked on top (v4) but FSD0 ..
best wishes
rudi
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
Re: Small ESP32 Modul ( all include in new ESP32-PICO )
https://esp32.com/viewtopic.php?f=2&t=8 ... ped#p11473
high speed
remember:
important
link
last but not least
remove the psram manufacturer check
happy weekend
best wishes
rudi
high speed
remember:
important
link
last but not least
remove the psram manufacturer check
Code: Select all
else if (pkg_ver == EFUSE_RD_CHIP_VER_PKG_ESP32PICOD4) {
ESP_EARLY_LOGE(TAG, "ESP32PICOD4 do not support psram yet");
return ESP_FAIL;
}
best wishes
rudi
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
Re: Small ESP32 Modul ( all include in new ESP32-PICO )
Hey rudi!rudi ;-) wrote:good morningrudi ;-) wrote: ..
how you connect PSRAM ( 3.3V ) to the PINHEADER of Pico-D4 ? ( FSD0, FSD1, FSD2, FSD3 )
which pins you use for PSRAM CS# and CLK ?
don't use FCLK ( flash clock ) for psram CLK
don't use FCS ( flash cs ) for psram CS#
...
PSRAM
PIN1(CS#)= "hope you use IO9"
PIN2(SO/SIO1)= ??
PIN3(SIO2)= ??
PIN4(VSS/GND)=
PIN5(SI/SIO0)= ??
PIN6(SCLK)= "hope you use IO10"
PIN7(SIO3)= ??
PIN8(Vcc)= ??
can you say how is your wire on the sd0 sd1 sd2 sd3 pins ?
On PICO-KIT I am using
CS - GPIO9
CLK - GPIO10
SIO[0] - GPIO8
SIO[1] - GPIO17
SIO[2] - GPIO7
SIO[3] - GPIO11
On WROOM32 I am using
CS - GPIO16
CLK - GPIO7
SIO[0] - GPIO8
SIO[1] - GPIO17
SIO[2] - GPIO10
SIO[3] - GPIO9
My PICO-KIT is a v4 - Bottom reads: ESP32-PICO-KIT_V4rudi ;-) wrote:btw which pico-d4 version is the board you use ?
cause sd0 sd1 sd2 sd3 is silked on the top in your pic's,
usually it is silked on bottom (v3)
usually it is silked on top (v4) but FSD0 ..
rudi
Cheers
Seon
unexpectedmaker.com
Seon
unexpectedmaker.com
unexpectedmaker.com
Re: Small ESP32 Modul ( all include in new ESP32-PICO )
Another update... I installed the master IDF branch (that has 64MBIT support) and setup the toolchain on my Mac... and I enabled external RAM and set everything up in menuconfig. I also removed the PICOD4 fail case.
I then built hello_world.
Both PICO-KIT and WROOM32 find external ram, but STILL fail ram test, so I have to now assume it's this Lyontek ram that's the problem.
WROOM32 output:
I (247) spiram: SPI RAM mode: flash 40m sram 40m
I (252) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (259) cpu_start: Pro cpu up.
I (263) cpu_start: Starting app cpu, entry point is 0x40081164
I (255) cpu_start: App cpu up.
E (1145) spiram: SPI SRAM memory test fail. 8013/131072 writes failed, first @ 3F800140
E (1145) cpu_start: External RAM failed memory test!
I have the IPUS IPS6404 from Electrodragon ordered, and hope to get it next week to test.
Otherwise I have completely run out of ideas
Cheers,
Seon
unexpectedmaker.com
I then built hello_world.
Both PICO-KIT and WROOM32 find external ram, but STILL fail ram test, so I have to now assume it's this Lyontek ram that's the problem.
WROOM32 output:
I (247) spiram: SPI RAM mode: flash 40m sram 40m
I (252) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (259) cpu_start: Pro cpu up.
I (263) cpu_start: Starting app cpu, entry point is 0x40081164
I (255) cpu_start: App cpu up.
E (1145) spiram: SPI SRAM memory test fail. 8013/131072 writes failed, first @ 3F800140
E (1145) cpu_start: External RAM failed memory test!
I have the IPUS IPS6404 from Electrodragon ordered, and hope to get it next week to test.
Otherwise I have completely run out of ideas
Cheers,
Seon
unexpectedmaker.com
Seon
unexpectedmaker.com
unexpectedmaker.com
Re: Small ESP32 Modul ( all include in new ESP32-PICO )
Hi Seon
my V4 is silked on top with FSD0 FSD1 FSD2 FSD3 FCLK FCS
the V3 is silked and tracert on this pinheader other PINS like IO21 IO22 and so on ( see pic )
( edit: V3 is silked on the bottom side)
will try to check asap your pins comparing with my setup ..
btw
i saw the getting started docu now too
the pic on the docu pointed to an other Pico Kit D4 Version
where the PIN description talk from F..SD0 SD
@Angus can someone update the Board Pic
?
or the Pin Header Description, onethings is here not up2date
i have no V4.1 just in time in the hand so i can not check what is wrong / not up2date.
(edit: insert compare pic for better understand what is mean )
best wishes
rudi
my V4 is silked on top with FSD0 FSD1 FSD2 FSD3 FCLK FCS
the V3 is silked and tracert on this pinheader other PINS like IO21 IO22 and so on ( see pic )
( edit: V3 is silked on the bottom side)
will try to check asap your pins comparing with my setup ..
btw
i saw the getting started docu now too
the pic on the docu pointed to an other Pico Kit D4 Version
where the PIN description talk from F..SD0 SD
@Angus can someone update the Board Pic
?
or the Pin Header Description, onethings is here not up2date
i have no V4.1 just in time in the hand so i can not check what is wrong / not up2date.
(edit: insert compare pic for better understand what is mean )
best wishes
rudi
- Attachments
-
- IMG_0612_s.jpg (191.9 KiB) Viewed 12099 times
-
- IMG_0611_s.jpg (188.02 KiB) Viewed 12099 times
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
Who is online
Users browsing this forum: Bing [Bot] and 89 guests