Problems after flashing uLisp to an ESP32 board


#1

Hi,

The board I used is a TTGO T8 v1.7.1 with an “ESP PSRAM32H” chip (8MB). I used the Arduino IDE v1.8.19, all libraries and board updates were downloaded and installed for the IDE.
Additionally I activated the following defines in the code:
#define lisplibrary
#define lineeditor
#define vt100

Compiling/flashing was no problem and the infos given by the compiler did not indicate and shortness of the
resources.

In the Arduino IDE I choosed the
ESP32 DEV board with the following settings:
custom_CPUFreq=esp32_240
custom_CrystalFreq=generic_26
custom_DebugLevel=esp32_none
custom_EventsCore=esp32_1
custom_FlashFreq=esp32_80
custom_FlashMode=esp32_qio
custom_FlashSize=esp32_8M
custom_LoopCore=esp32_1
custom_PSRAM=esp32_enabled
custom_PartitionScheme=esp32_default

After reconnecting the board and starting a terminal program I got this endless loop:
Rebooting…
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1324
ho 0 tail 12 room 4
load:0x40078000,len:13508
load:0x40080400,len:3604
entry 0x400805f0
E (267) spi_flash: Detected size(4096k) smaller than the size in the binary image header(8192k). Probe failed.
assert failed: do_core_init startup.c:298 (flash_ret == ESP_OK)
Backtrace:0x40083805:0x3ffe3aa00x4008cff5:0x3ffe3ac0 0x40092341:0x3ffe3ae0 0x400e708e:0x3ffe3c10 0x4008309a:0x3ffe3c40 0x40079202:0x3ffe3c90 |<-CORRUPTED
ELF file SHA256: 0000000000000000
Rebooting…

What went wrong here? How can I fix the problem?


#2

I think the TTGO T8 is based on the ESP32-S2 processor, which is different from the ESP32 processor supported by the current ESP version of uLisp.

I’m working on adding support for the ESP32-S2 and the next release will probably support it.

David


#3

Hi David,

the TTGO T8 1.7.1 is equipped with an ESP32 DOWD08 chip.
The TTGO T8 1.8 is based on an ESP32-S2?

See also:
v1.1


v1.7.1 (my board)

v1.8

mcc


#4

OK, yes it looks like your board is ESP32. However I think the problem is that the specification of your board is:

4MB Flash & 8MB PSRAM

However you’ve chosen the option:

FlashSize=esp32_8M

so I think this explains the error:

E (267) spi_flash: Detected size(4096k) smaller than the size in the binary image header(8192k). Probe failed.

Try choosing a smaller flash size setting.


#5

Hi David,

Oh! Uuuuh…sorry. I confused flash and RAM…I fixed that and now it runs … somehow.
But this seems more a problem of the used tools:
After reflashing the board I can access it with picocom (I am using Linux).
NICE!
:)
Thanks a lot for your help!
mcc


#6

No problem! Good to know it works on those boards.


#7