drorgl / esp32-tinyemu

A fork to Fabrice Bellard's TinyEmu ported to ESP32
MIT License
51 stars 14 forks source link

Okay i fixed the previous issue but for some reason my board keeps restarting after the upload #5

Open Shreyas-ITB opened 2 years ago

Shreyas-ITB commented 2 years ago

Does the esp board need an SDCard?

Shreyas-ITB commented 2 years ago

the restart monitor log is like this:


ELF file SHA256: e53baac32335d9b6

Rebooting...
ets Jul 29 2019 12:21:46

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:2
load:0x3fff0030,len:5660
ho 0 tail 12 room 4
load:0x40078000,len:14884
load:0x40080400,len:3736
entry 0x40080674
I (29) boot: ESP-IDF 4.4.2 2nd stage bootloader
I (29) boot: compile time 20:05:53
I (29) boot: chip revision: 3
I (32) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (39) boot.esp32: SPI Speed      : 40MHz
I (43) boot.esp32: SPI Mode       : DIO
I (48) boot.esp32: SPI Flash Size : 4MB
I (53) boot: Enabling RNG early entropy source...
I (58) boot: Partition Table:
I (62) boot: ## Label            Usage          Type ST Offset   Length
I (69) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (76) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (84) boot:  2 factory          factory app      00 00 00010000 00100000
I (91) boot: End of partition table
I (95) boot_comm: chip revision: 3, min. application chip revision: 0
I (103) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=0ae00h ( 44544) map
I (128) esp_image: segment 1: paddr=0001ae28 vaddr=3ffb0000 size=01c3ch (  7228) load
I (131) esp_image: segment 2: paddr=0001ca6c vaddr=40080000 size=035ach ( 13740) load
I (140) esp_image: segment 3: paddr=00020020 vaddr=400d0020 size=440c8h (278728) map
I (248) esp_image: segment 4: paddr=000640f0 vaddr=400835ac size=0ca80h ( 51840) load
I (271) esp_image: segment 5: paddr=00070b78 vaddr=50000000 size=00010h (    16) load
I (279) boot: Loaded app from partition at offset 0x10000
I (279) boot: Disabling RNG early entropy source...
I (291) psram: This chip is ESP32-D0WD
E (291) psram: PSRAM ID read error: 0xffffffff
E (291) cpu_start: Failed to init external RAM!

abort() was called at PC 0x40082250 on core 0

Backtrace:0x40082a81:0x3ffe3ba00x40089f81:0x3ffe3bc0 0x4008eb85:0x3ffe3be0 0x40082250:0x3ffe3c50 0x40079481:0x3ffe3c80  |<-CORRUPTED

and also im using esp32 wrover module

Shreyas-ITB commented 2 years ago

and the platform.ini config file is like this

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter, extra scripting
;   Upload options: custom port, speed and extra flags
;   Library options: dependencies, extra library storages
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html

[platformio]
default_envs = native

[env:esp32]
platform = espressif32
board = esp-wrover-kit
framework = espidf
build_flags =  -DCONFIG_VERSION=\"2018-09-23\" -std=c++11 -D_GNU_SOURCE  -Wall -O3 -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -MMD -DCONFIG_RISCV_MAX_XLEN=32  -DESP32 -DTERMIWIN_DONOTREDEFINE -D_POSIX_C_SOURCE -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue
monitor_speed = 115200
monitor_filters = esp32_exception_decoder

[env:esp32s3]
platform = espressif32
board = esp32-s3-devkitc-1 ; (prod code: D3N8R8) WROOM-1 with 8MB Quad Flash, 8MB Octal SPIRAM
framework = espidf    ; change flash/spiram settings in menuconfig if necessary
build_flags =  -DCONFIG_VERSION=\"2018-09-23\" -std=c++11 -D_GNU_SOURCE  -Wall -O3 -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -MMD -DCONFIG_RISCV_MAX_XLEN=32  -DESP32 -DESP32S3 -DTERMIWIN_DONOTREDEFINE -D_POSIX_C_SOURCE -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue
monitor_speed = 115200
monitor_filters = esp32_exception_decoder

[env:native]
platform = native
build_flags = -std=c++11 -Dtrue=1 -DCONFIG_VERSION=\"2018-09-23\"  -D_GNU_SOURCE  -O3 -Wall -g -D_FILE_OFFSET_BITS=64 -D_POSIX_C_SOURCE -D_LARGEFILE_SOURCE -MMD -DCONFIG_RISCV_MAX_XLEN=32 -lws2_32 -lwsock32 -DTERMIWIN_DONOTREDEFINE -Wl,--start-group

[env:nativelinux]
platform = native
build_flags = -std=c++11 -Dtrue=1 -DCONFIG_VERSION=\"2018-09-23\"  -D_GNU_SOURCE  -O0 -Wall -g -D_FILE_OFFSET_BITS=64 -D_POSIX_C_SOURCE -D_LARGEFILE_SOURCE -MMD -DCONFIG_RISCV_MAX_XLEN=32 -DTERMIWIN_DONOTREDEFINE 

[env:nativelinux32]
platform = native
build_flags = -m32 -std=c++11 -Dtrue=1 -DCONFIG_VERSION=\"2018-09-23\"  -D_GNU_SOURCE  -O3 -Wall -g -D_FILE_OFFSET_BITS=64 -D_POSIX_C_SOURCE -D_LARGEFILE_SOURCE -MMD -DCONFIG_RISCV_MAX_XLEN=32 -DTERMIWIN_DONOTREDEFINE 
extra_scripts = scripts/build32.py

[env:native32]
platform = native
build_flags = -m32 -std=c++11 -Dtrue=1 -DCONFIG_VERSION=\"2018-09-23\"  -D_GNU_SOURCE  -O3 -Wall -Wextra -Wshadow -Wdouble-promotion -Wformat=2 -Wformat-truncation -Wundef  -fno-short-enums  -fno-common -g -D_FILE_OFFSET_BITS=64 -D_POSIX_C_SOURCE -D_LARGEFILE_SOURCE -MMD -DCONFIG_RISCV_MAX_XLEN=32 -lws2_32 -lwsock32 -DTERMIWIN_DONOTREDEFINE -Wl,--as-needed
extra_scripts = scripts/build32.py