@ESP_Stanza
@johnlee
@ESP_igrr
please help to this never ending story now
we need now a detailed help - and the wrover shematic with HDK/BOM now for compare.
i have an espressif wrover modul with time stamp 502016 on the SOC and it is rev0
i wrote a simple firmware with testings and psram as spi ram for this and tested successfull.
FYI: i have the rev 1 too, and tested the same firmware successful, so i am sure, the fw ( code ) is ok
now we have a testmodul ( again soc rev 0 ) with
lyonteks 32 MBit psram 1.8 and a
64 MBit flash.
the bootloader is booting and the first testings for test the flash is ok, it is the same code on firmware!
the SoC load the bootloader from SPI Flash well and start it
it wait now for user input for echo the inputs from the uart
we can communicate with it and to this "step" is all ok.
this let us know - the flash works - cause the soc can handle and read/save from and on the 64MBit flash
.. all ok to this step:
Code: Select all
rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:4
load:0x3fff000c,len:4400
ho 0 tail 12 room 4
load:0x40078000,len:12348
load:0x40080000,len:268
entry 0x40080034
[0;32mI (47) boot: ALB-ESP32x64-IDF v2.0-rc1-891-g9faf9c9 2nd stage bootloader[0m
[0;32mI (47) boot: compile time 14:32:34[0m
TEST-SOP-OK?
:T
:E
:S
:T
:
the next step is then to run the rest code and load the app code.
in this steps we test the psram
Code: Select all
[0;32mI (10807) boot: Enabling RNG early entropy source...[0m
[0;32mI (10807) boot: SPI Speed : 40MHz[0m
[0;32mI (10807) boot: SPI Mode : DIO[0m
[0;32mI (10820) boot: SPI Flash Size : 8MB[0m
[0;32mI (10834) boot: Partition Table:[0m
[0;32mI (10846) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (10869) boot: 0 nvs WiFi data 01 02 00009000 00006000[0m
[0;32mI (10893) boot: 1 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (10916) boot: 2 factory factory app 00 00 00010000 00100000[0m
[0;32mI (10940) boot: End of partition table[0m
[0;32mI (10954) boot: Disabling RNG early entropy source...[0m
[0;32mI (10971) boot: Loading app partition at offset 00010000[0m
[0;32mI (11510) boot: segment 0: paddr=0x00010018 vaddr=0x00000000 size=0x0ffe8 ( 65512) [0m
[0;32mI (11510) boot: segment 1: paddr=0x00020008 vaddr=0x3f400010 size=0x06f98 ( 28568) map[0m
[0;32mI (11527) boot: segment 2: paddr=0x00026fa8 vaddr=0x3ffb0000 size=0x022f4 ( 8948) load[0m
[0;32mI (11558) boot: segment 3: paddr=0x000292a4 vaddr=0x40080000 size=0x00400 ( 1024) load[0m
[0;32mI (11581) boot: segment 4: paddr=0x000296ac vaddr=0x40080400 size=0x14858 ( 84056) load[0m
[0;32mI (11648) boot: segment 5: paddr=0x0003df0c vaddr=0x400c0000 size=0x00000 ( 0) load[0m
[0;32mI (11649) boot: segment 6: paddr=0x0003df14 vaddr=0x00000000 size=0x020f4 ( 8436) [0m
[0;32mI (11667) boot: segment 7: paddr=0x00040010 vaddr=0x400d0018 size=0x2ab84 (174980) map[0m
and there is then the GURU:
Code: Select all
Guru Meditation Error of type IllegalInstruction occurred on core 0. Exception was unhandled.
Register dump:
PC : 0x400d1b60 PS : 0x00060530 A0 : 0x800824d0 A1 : 0x3ffe3be0
A2 : 0x3ffe3c30 A3 : 0x00000a00 A4 : 0x3ff4904c A5 : 0x00000000
A6 : 0x00000001 A7 : 0x00000001 A8 : 0x00000000 A9 : 0x3ffe3b90
A10 : 0x00000001 A11 : 0x00000000 A12 : 0x00000034 A13 : 0x00000000
A14 : 0x000008ff A15 : 0x00000004 SAR : 0x00000017 EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000 LBEG : 0x40094a40 LEND : 0x40094a6e LCOUNT : 0xffffffff
Backtrace: 0x400d1b60:0x3ffe3be0 0x400824d0:0x3ffe3c30 0x40080f0e:0x3ffe3c60 0x40078855:0x3ffe3ca0 0x40078a7c:0x3ffe3cd0 0x40079110:0x3ffe3d50 0x40080109:0x3ffe3e70 0x40007c34:0x3ffe3eb0 0x40000740:0x3ffe3f20
Rebooting...
ets Jun 8 2016 00:22:57
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:4
load:0xcf3f00c3,len:4195532
1162 mmu set 00010000, pos 00010000
1162 mmu set 00020000, pos 00020000
1162 mmu set 00030000, pos 00030000
1162 mmu set 00040000, pos 00040000
1162 mmu set 00050000, pos 00050000
1162 mmu set 00060000, pos 00060000
1162 mmu set 00070000, pos 00070000
1162 mmu set 00080000, pos 00080000
1162 mmu set 00090000, pos 00090000
1162 mmu set 000a0000, pos 000a0000
1162 mmu set 000b0000, pos 000b0000
1162 mmu set 000c0000, pos 000c0000
1162 mmu set 000d0000, pos 000d0000
1162 mmu set 000e0000, pos 000e0000
1162 mmu set 000f0000, pos 000f0000
1162 mmu set 00100000, pos 00100000
1162 mmu set 00110000, pos 00110000
1162 mmu set 00120000, pos 00120000
1162 mmu set 00130000, pos 00130000
1162 mmu set 00140000, pos 00140000
1162 mmu set 00150000, pos 00150000
1162 mmu set 00160000, pos 00160000
1162 mmu set 00170000, pos 00170000
1162 mmu set 00180000, pos 00180000
1162 mmu set 00190000, pos 00190000
ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:4
load:0x3fff000c,len:4400
ho 0 tail 12 room 4
load:0x40078000,len:12348
load:0x40080000,len:268
entry 0x40080034
[0;32mI (47) boot: ALB-ESP32x64-IDF v2.0-rc1-891-g9faf9c9 2nd stage bootloader[0m
[0;32mI (47) boot: compile time 14:32:34[0m
TEST-SOP-OK?
an other test and log:
Code: Select all
rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:4
load:0x3fff000c,len:4400
ho 0 tail 12 room 4
load:0x40078000,len:12348
load:0x40080000,len:268
entry 0x40080034
[0;32mI (47) boot: ALB-ESP32x64-IDF v2.0-rc1-891-g9faf9c9 2nd stage bootloader[0m
[0;32mI (47) boot: compile time 14:32:34[0m
TEST-SOP-OK?
:O
:K
:
[0;32mI (128497) boot: Enabling RNG early entropy source...[0m
[0;32mI (128497) boot: SPI Speed : 40MHz[0m
[0;32mI (128498) boot: SPI Mode : DIO[0m
[0;32mI (128510) boot: SPI Flash Size : 8MB[0m
[0;32mI (128523) boot: Partition Table:[0m
[0;32mI (128535) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (128559) boot: 0 nvs WiFi data 01 02 00009000 00006000[0m
[0;32mI (128583) boot: 1 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (128607) boot: 2 factory factory app 00 00 00010000 00100000[0m
[0;32mI (128631) boot: End of partition table[0m
[0;32mI (128645) boot: Disabling RNG early entropy source...[0m
[0;32mI (128663) boot: Loading app partition at offset 00010000[0m
[0;32mI (129201) boot: segment 0: paddr=0x00010018 vaddr=0x00000000 size=0x0ffe8 ( 65512) [0m
[0;32mI (129202) boot: segment 1: paddr=0x00020008 vaddr=0x3f400010 size=0x06f98 ( 28568) map[0m
[0;32mI (129219) boot: segment 2: paddr=0x00026fa8 vaddr=0x3ffb0000 size=0x022f4 ( 8948) load[0m
[0;32mI (129250) boot: segment 3: paddr=0x000292a4 vaddr=0x40080000 size=0x00400 ( 1024) load[0m
[0;32mI (129274) boot: segment 4: paddr=0x000296ac vaddr=0x40080400 size=0x14858 ( 84056) load[0m
[0;32mI (129341) boot: segment 5: paddr=0x0003df0c vaddr=0x400c0000 size=0x00000 ( 0) load[0m
[0;32mI (129342) boot: segment 6: paddr=0x0003df14 vaddr=0x00000000 size=0x020f4 ( 8436) [0m
[0;32mI (129360) boot: segment 7: paddr=0x00040010 vaddr=0x400d0018 size=0x2ab84 (174980) map[0m
Guru Meditation Error of type IllegalInstruction occurred on core 0. Exception was unhandled.
Register dump:
PC : 0x400d1b60 PS : 0x00060530 A0 : 0x800824d0 A1 : 0x3ffe3be0
A2 : 0x3ffe3c30 A3 : 0x00000a00 A4 : 0x3ff4904c A5 : 0x00000000
A6 : 0x00000001 A7 : 0x00000001 A8 : 0x00000000 A9 : 0x3ffe3b90
A10 : 0x00000001 A11 : 0x00000000 A12 : 0x00000034 A13 : 0x00000000
A14 : 0x000008ff A15 : 0x00000004 SAR : 0x00000017 EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000 LBEG : 0x40094a40 LEND : 0x40094a6e LCOUNT : 0xffffffff
Backtrace: 0x400d1b60:0x3ffe3be0 0x400824d0:0x3ffe3c30 0x40080f0e:0x3ffe3c60 0x40078855:0x3ffe3ca0 0x40078a7c:0x3ffe3cd0 0x40079110:0x3ffe3d50 0x40080109:0x3ffe3e70 0x40007c34:0x3ffe3eb0 0x40000740:0x3ffe3f20
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:4
load:0xcf3f00c3,len:4195532
1162 mmu set 00010000, pos 00010000
1162 mmu set 00020000, pos 00020000
1162 mmu set 00030000, pos 00030000
1162 mmu set 00040000, pos 00040000
1162 mmu set 00050000, pos 00050000
1162 mmu set 00060000, pos 00060000
1162 mmu set 00070000, pos 00070000
1162 mmu set 00080000, pos 00080000
1162 mmu set 00090000, pos 00090000
1162 mmu set 000a0000, pos 000a0000
1162 mmu set 000b0000, pos 000b0000
1162 mmu set 000c0000, pos 000c0000
1162 mmu set 000d0000, pos 000d0000
1162 mmu set 000e0000, pos 000e0000
1162 mmu set 000f0000, pos 000f0000
1162 mmu set 00100000, pos 00100000
1162 mmu set 00110000, pos 00110000
1162 mmu set 00120000, pos 00120000
1162 mmu set 00130000, pos 00130000
1162 mmu set 00140000, pos 00140000
1162 mmu set 00150000, pos 00150000
1162 mmu set 00160000, pos 00160000
1162 mmu set 00170000, pos 00170000
1162 mmu set 00180000, pos 00180000
1162 mmu set 00190000, pos 00190000
ets Jun 8 2016 00:22:57
an other test without the SOP Test ( Echo test ) and log
Code: Select all
rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:4
load:0x3fff000c,len:4396
load:0x40078000,len:12180
load:0x40080000,len:268
entry 0x40080034
[0;32mI (44) boot: ESP32x-IDF v2.0-rc1-891-g9faf9c9 2nd stage bootloader[0m
[0;32mI (45) boot: compile time 13:29:45[0m
[0;32mI (45) boot: Enabling RNG early entropy source...[0m
[0;32mI (63) boot: SPI Speed : 40MHz[0m
[0;32mI (76) boot: SPI Mode : DIO[0m
[0;32mI (88) boot: SPI Flash Size : 8MB[0m
[0;32mI (100) boot: Partition Table:[0m
[0;32mI (112) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (135) boot: 0 nvs WiFi data 01 02 00009000 00006000[0m
[0;32mI (158) boot: 1 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (181) boot: 2 factory factory app 00 00 00010000 00100000[0m
[0;32mI (204) boot: End of partition table[0m
[0;32mI (217) boot: Disabling RNG early entropy source...[0m
[0;32mI (234) boot: Loading app partition at offset 00010000[0m
[0;32mI (772) boot: segment 0: paddr=0x00010018 vaddr=0x00000000 size=0x0ffe8 ( 65512) [0m
[0;32mI (773) boot: segment 1: paddr=0x00020008 vaddr=0x3f400010 size=0x06f98 ( 28568) map[0m
[0;32mI (789) boot: segment 2: paddr=0x00026fa8 vaddr=0x3ffb0000 size=0x022f4 ( 8948) load[0m
[0;32mI (819) boot: segment 3: paddr=0x000292a4 vaddr=0x40080000 size=0x00400 ( 1024) load[0m
[0;32mI (842) boot: segment 4: paddr=0x000296ac vaddr=0x40080400 size=0x14858 ( 84056) load[0m
[0;32mI (907) boot: segment 5: paddr=0x0003df0c vaddr=0x400c0000 size=0x00000 ( 0) load[0m
[0;32mI (908) boot: segment 6: paddr=0x0003df14 vaddr=0x00000000 size=0x020f4 ( 8436) [0m
[0;32mI (925) boot: segment 7: paddr=0x00040010 vaddr=0x400d0018 size=0x2ab84 (174980) map[0m
Guru Meditation Error of type IllegalInstruction occurred on core 0. Exception was unhandled.
Register dump:
PC : 0x400d1b60 PS : 0x00060530 A0 : 0x800824d0 A1 : 0x3ffe3be0
A2 : 0x3ffe3c30 A3 : 0x00000a00 A4 : 0x3ff4904c A5 : 0x00000000
A6 : 0x00000001 A7 : 0x00000001 A8 : 0x00000000 A9 : 0x3ffe3b90
A10 : 0x00000001 A11 : 0x00000000 A12 : 0x00000034 A13 : 0x00000000
A14 : 0x000008ff A15 : 0x00000004 SAR : 0x00000017 EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000 LBEG : 0x40094a40 LEND : 0x40094a6e LCOUNT : 0xffffffff
Backtrace: 0x400d1b60:0x3ffe3be0 0x400824d0:0x3ffe3c30 0x40080f0e:0x3ffe3c60 0x4007884d:0x3ffe3ca0 0x40078a74:0x3ffe3cd0 0x40079068:0x3ffe3d50 0x40080109:0x3ffe3e70 0x40007c34:0x3ffe3eb0 0x40000740:0x3ffe3f20
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:4
load:0xcf3f00c3,len:4195531
1162 mmu set 00010000, pos 00010000
1162 mmu set 00020000, pos 00020000
1162 mmu set 00030000, pos 00030000
1162 mmu set 00040000, pos 00040000
1162 mmu set 00050000, pos 00050000
1162 mmu set 00060000, pos 00060000
1162 mmu set 00070000, pos 00070000
1162 mmu set 00080000, pos 00080000
1162 mmu set 00090000, pos 00090000
1162 mmu set 000a0000, pos 000a0000
1162 mmu set 000b0000, pos 000b0000
1162 mmu set 000c0000, pos 000c0000
1162 mmu set 000d0000, pos 000d0000
1162 mmu set 000e0000, pos 000e0000
1162 mmu set 000f0000, pos 000f0000
1162 mmu set 00100000, pos 00100000
1162 mmu set 00110000, pos 00110000
1162 mmu set 00120000, pos 00120000
1162 mmu set 00130000, pos 00130000
1162 mmu set 00140000, pos 00140000
1162 mmu set 00150000, pos 00150000
1162 mmu set 00160000, pos 00160000
1162 mmu set 00170000, pos 00170000
1162 mmu set 00180000, pos 00180000
1162 mmu set 00190000, pos 00190000
ets Jun 8 2016 00:22:57
info: HDK
Bootstrap pin MTDI is pulled up to VDD33
SPI Flash share Data pins with PSRAM
PSRAM #CE is pulled up to VDD_SDIO and is connected to GPIO16
PSRAM SCK is connected to GPIO17
Q: why this exampe run on Wrover 32MBit_1.8/32MBit_1.8 modul ( SoC Rev 0 )
but not on the custom 64MBit_wide/32MBit_1.8 ( SoC Rev 0 )
Q: the 64MBit is wide flash ( 1.8 .. 3.6 V ) and works with 1.8 and 3.3 - is there a problem with 1.8 driven wide flash and combine 1.8 psram?
Q: we use Lyontek PSRAM, is there a magic key for psram ( ESP-PSRAM32 ) ID and if this not match the PSRAM is not supported?
Q: is there a hidden/not knowed detail on HDK that we not know? ( missing the edited wrover shematic file - can u post now ? )
Q: we need the HDK wrover shematic with BOM like the WROOM32 modul.
best wishes
rudi
edit1:
and sure:
here is the shematic we use :
bootstrap pulled up:
- pulled_up_MTDI.jpg (51.98 KiB) Viewed 15694 times
flash and psram
- flash_with_psram.jpg (84.59 KiB) Viewed 15694 times
now -
we need your shematic and info what we do wrong here.
edit2:
we work with cadence , eagle, kicad so there is no problem to import yours.
edit3:
FYI the name of PSRAM in Shematic is placeholder only ( it is named as 64 Mbit version )
we use 32MBit version on the Modul for the testings -