Fri3dCamp / badge_firmware

MIT License
2 stars 2 forks source link

crash error with micropython and screen #13

Open beverke opened 1 month ago

beverke commented 1 month ago

cli output


I (82278) Fri3d::Application::CPartitionBoot: Switching to `micropython`
I (82278) esp_image: segment 0: paddr=00410020 vaddr=3c1c0020 size=7c668h (509544) map
I (82348) esp_image: segment 1: paddr=0048c690 vaddr=3fc9f800 size=03988h ( 14728) 
I (82348) esp_image: segment 2: paddr=00490020 vaddr=42000020 size=1bfe84h (1834628) map
I (82548) esp_image: segment 3: paddr=0064feac vaddr=3fca3188 size=02050h (  8272) 
I (82558) esp_image: segment 4: paddr=00651f04 vaddr=40374000 size=1b7b0h (112560) 
I (82568) esp_image: segment 5: paddr=0066d6bc vaddr=600fe000 size=0003ch (    60) 
I (82628) Fri3d::Application::CPartitionBoot: Booting into micropython
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40375e64
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3810,len:0x1764
load:0x403c9700,len:0x4
load:0x403c9704,len:0xca4
load:0x403cc700,len:0x2de0
entry 0x403c9910
I (26) boot: ESP-IDF v5.2.2 2nd stage bootloader
I (26) boot: Multicore bootloader
I (26) boot: chip revision: v0.1
I (28) boot.esp32s3: Boot SPI Speed : 80MHz
I (33) boot.esp32s3: SPI Mode       : DIO
I (37) boot.esp32s3: SPI Flash Size : 16MB
I (42) boot: Enabling RNG early entropy source...
I (48) boot: Partition Table:
I (51) boot: ## Label            Usage          Type ST Offset   Length
I (58) boot:  0 otadata          OTA data         01 00 00009000 00002000
I (66) boot:  1 nvs              WiFi data        01 02 0000b000 00005000
I (73) boot:  2 ota_0            OTA app          00 10 00010000 00200000
I (81) boot:  3 ota_1            OTA app          00 11 00210000 00200000
I (88) boot:  4 micropython      OTA app          00 12 00410000 00300000
I (96) boot:  5 launcher         OTA app          00 13 00710000 00100000
I (103) boot:  6 retro-core       OTA app          00 14 00810000 000a0000
I (111) boot:  7 prboom-go        OTA app          00 15 008b0000 000e0000
I (118) boot:  8 vfs              Unknown data     01 81 00990000 00670000
I (126) boot: End of partition table
I (173) esp_image: segment 0: paddr=00410020 vaddr=3c1c0020 size=7c668h (509544) map
I (264) esp_image: segment 1: paddr=0048c690 vaddr=3fc9f800 size=03988h ( 14728) load
I (268) esp_image: segment 2: paddr=00490020 vaddr=42000020 size=1bfe84h (1834628) map
I (599) esp_image: segment 3: paddr=0064feac vaddr=3fca3188 size=02050h (  8272) load
I (602) esp_image: segment 4: paddr=00651f04 vaddr=40374000 size=1b7b0h (112560) load
I (630) esp_image: segment 5: paddr=0066d6bc vaddr=600fe000 size=0003ch (    60) load
I (641) boot: Loaded app from partition at offset 0x410000
I (642) boot: Disabling RNG early entropy source...
INFO:root:Fri3d Camp Badge booting
Traceback (most recent call last):
  File "boot.py", line 31, in <module>
  File "boot.py", line 14, in check_dev_mode
ImportError: no module named 'fri3d.badge'
MicroPython v1.23.0-1+fri3d on 2024-08-13; Fri3d Badge 2024 with ESP32S3
Type "help()" for more information.
>>> 
>>> 
>>> 
>>> import lvgl as lv
>>> disp = lv.display_get_default()

A fatal error occurred. The crash dump printed below may be used to help
determine what caused it. If you are not already running the most recent
version of MicroPython, consider upgrading. New versions often fix bugs.

To learn more about how to debug and/or report this crash visit the wiki
page at: https://github.com/micropython/micropython/wiki/ESP32-debugging

MPY version : v1.23.0-1+fri3d on 2024-08-13
IDF version : v5.2.2
Machine     : Fri3d Badge 2024 with ESP32S3

Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x42035aee  PS      : 0x00060030  A0      : 0x82024c95  A1      : 0x3fcbcf60  
A2      : 0x00000000  A3      : 0x00000000  A4      : 0x00000000  A5      : 0x0000000d  
A6      : 0x3c243c30  A7      : 0x3fcbcf60  A8      : 0x00000000  A9      : 0x3fcbd130  
A10     : 0x3c243cc0  A11     : 0x00000000  A12     : 0x00000000  A13     : 0x00000000  
A14     : 0x00000000  A15     : 0x3c243c30  SAR     : 0x00000020  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000014  LBEG    : 0x400570e8  LEND    : 0x400570f3  LCOUNT  : 0xffffffff  

Backtrace: 0x42035aeb:0x3fcbcf60 0x42024c92:0x3fcbcf80 0x42003fe5:0x3fcbcfc0 0x420b0d91:0x3fcbd000 0x420b0e59:0x3fcbd020 0x403795c6:0x3fcbd040 0x420aa203:0x3fcbd0e0 0x420b0d91:0x3fcbd130 0x420b0da6:0x3fcbd150 0x420bec1b:0x3fcbd170 0x420bef10:0x3fcbd200 0x420c63d0:0x3fcbd240

ELF file SHA256: 44afd2cf9

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
Saved PC:0x403837fe
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3810,len:0x1764
load:0x403c9700,len:0x4
load:0x403c9704,len:0xca4
load:0x403cc700,len:0x2de0
entry 0x403c9910
I (26) boot: ESP-IDF v5.2.2 2nd stage bootloader
I (26) boot: Multicore bootloader
I (26) boot: chip revision: v0.1
I (28) boot.esp32s3: Boot SPI Speed : 80MHz
I (33) boot.esp32s3: SPI Mode       : DIO
I (37) boot.esp32s3: SPI Flash Size : 16MB
I (42) boot: Enabling RNG early entropy source...
I (48) boot: Partition Table:
I (51) boot: ## Label            Usage          Type ST Offset   Length
I (58) boot:  0 otadata          OTA data         01 00 00009000 00002000
I (66) boot:  1 nvs              WiFi data        01 02 0000b000 00005000
I (73) boot:  2 ota_0            OTA app          00 10 00010000 00200000
I (81) boot:  3 ota_1            OTA app          00 11 00210000 00200000
I (88) boot:  4 micropython      OTA app          00 12 00410000 00300000
I (96) boot:  5 launcher         OTA app          00 13 00710000 00100000
I (103) boot:  6 retro-core       OTA app          00 14 00810000 000a0000
I (111) boot:  7 prboom-go        OTA app          00 15 008b0000 000e0000
I (118) boot:  8 vfs              Unknown data     01 81 00990000 00670000
I (126) boot: End of partition table
I (170) esp_image: segment 0: paddr=00010020 vaddr=3c0e0020 size=4b440h (308288) map
I (226) esp_image: segment 1: paddr=0005b468 vaddr=3fc9be00 size=04bb0h ( 19376) load
I (230) esp_image: segment 2: paddr=00060020 vaddr=42000020 size=d9464h (889956) map
I (392) esp_image: segment 3: paddr=0013948c vaddr=3fca09b0 size=00224h (   548) load
I (393) esp_image: segment 4: paddr=001396b8 vaddr=40374000 size=17d88h ( 97672) load
I (419) esp_image: segment 5: paddr=00151448 vaddr=600fe010 size=00004h (     4) load
I (429) boot: Loaded app from partition at offset 0x10000
I (430) boot: Disabling RNG early entropy source...
I (441) cpu_start: Multicore app
I (442) octal_psram: vendor id    : 0x0d (AP)
I (442) octal_psram: dev id       : 0x02 (generation 3)
I (445) octal_psram: density      : 0x03 (64 Mbit)
I (450) octal_psram: good-die     : 0x01 (Pass)
I (455) octal_psram: Latency      : 0x01 (Fixed)
I (461) octal_psram: VCC          : 0x01 (3V)
I (466) octal_psram: SRF          : 0x01 (Fast Refresh)
I (471) octal_psram: BurstType    : 0x01 (Hybrid Wrap)
I (477) octal_psram: BurstLen     : 0x01 (32 Byte)
I (483) octal_psram: Readlatency  : 0x02 (10 cycles@Fixed)
I (489) octal_psram: DriveStrength: 0x00 (1/1)
I (495) MSPI Timing: PSRAM timing tuning index: 4
I (499) esp_psram: Found 8MB PSRAM device
I (504) esp_psram: Speed: 80MHz
I (915) esp_psram: SPI SRAM memory test OK
I (924) cpu_start: Pro cpu start user code
I (924) cpu_start: cpu freq: 240000000 Hz
I (924) cpu_start: Application information:
I (927) cpu_start: Project name:     fri3d_firmware_fox
I (933) cpu_start: App version:      1.0.1
I (937) cpu_start: ELF file SHA256:  2f693cd17...
I (943) cpu_start: ESP-IDF:          v5.2.2
I (948) cpu_start: Min chip rev:     v0.0
I (952) cpu_start: Max chip rev:     v0.99 
I (957) cpu_start: Chip rev:         v0.1
I (962) heap_init: Initializing. RAM available for dynamic allocation:
I (969) heap_init: At 3FCA58D0 len 00043E40 (271 KiB): RAM
I (975) heap_init: At 3FCE9710 len 00005724 (21 KiB): RAM
I (981) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (988) heap_init: At 600FE014 len 00001FD4 (7 KiB): RTCRAM
I (994) esp_psram: Adding pool of 8192K of PSRAM memory to heap allocator
I (1002) spi_flash: detected chip: gd
I (1006) spi_flash: flash io: dio
I (1011) sleep: Configure to isolate all GPIO pins in sleep state
I (1017) sleep: Enable automatic switching of GPIO sleep configuration
I (1024) main_task: Started on CPU0
I (1034) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (1034) main_task: Calling app_main()
I (1044) Fri3d::Application::CApplication: Initializing application
I (1044) Fri3d::Application::Hardware::CWifi: Initializing
I (1054) Fri3d::Application::CHardwareManager: Initialized
I (1064) Fri3d::Application::CNvsManager: Initialized
I (1064) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (1074) gpio: GPIO[48]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (1274) Fri3d::Application::CLVGL: Initializing LVGL library
I (1284) Fri3d::Application::CLVGL: Initializing LVGL display with size 296x240
I (1284) Fri3d::Application::CLVGL: Creating display buffers
I (1284) Fri3d::Application::CLVGL: Registering callback functions
I (1294) Fri3d::Application::CIndev: Initializing
I (1304) Fri3d::Application::CIndevButtons: Initializing
I (1304) button: IoT Button Version: 3.2.3
I (1314) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (1324) button: IoT Button Version: 3.2.3
I (1324) gpio: GPIO[45]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1334) button: IoT Button Version: 3.2.3
I (1344) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1344) button: IoT Button Version: 3.2.3
I (1354) gpio: GPIO[40]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1364) button: IoT Button Version: 3.2.3
I (1364) gpio: GPIO[38]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1374) button: IoT Button Version: 3.2.3
I (1384) gpio: GPIO[41]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1394) Fri3d::Application::CIndevJoystick: Initializing
I (1394) Fri3d::Application::CAppManager: Initializing
I (1404) Fri3d::Application::CAppManager: Registering new app (Launcher)
I (1414) Fri3d::Apps::Launcher::CLauncher: Initializing launcher
I (1414) Fri3d::Application::CAppManager: Registering new app (Splash)
I (1424) Fri3d::Apps::Splash::CSplash: Initializing splash
I (1434) Fri3d::Application::CAppManager: Registering new app (OTA Update)
I (1434) Fri3d::Apps::Ota::COta: Initializing OTA update
I (1444) Fri3d::Application::CAppManager: Registering new app (Hello)
I (1454) Fri3d::Apps::Hello::CHello: Initializing hello
I (1454) Fri3d::Application::CAppManager: Registering new app (MicroPython)
I (1464) Fri3d::Application::CAppManager: Registering new app (Retro-Go Gaming)
I (1544) Fri3d::Apps::Splash::CSplash: Showing splash screen
I (1544) led_indicator: LED Indicator Version: 0.9.3
I (1544) gpio: GPIO[12]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (1554) led_indicator: Indicator create successfully. type:LED Strips mode, hardware_data:0x3fcc8da4, blink_lists:custom
I (1574) Fri3d::Application::CApplication: Starting application loop
I (1614) rtttl: Now playing 'To The Dump To The Dump To The Dump Dump Dump - Short'.
I (3674) rtttl: Finished playing 'To The Dump To The Dump To The Dump Dump Dump - Short'.
I (9634) gpio: GPIO[12]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 ```