question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add board WT32-SCO and WT32-SCO-Plus

See original GitHub issue

Does anyone know which board I can select as a work around?

I can compile and flash but esp_highmem_get_phys_size() and esp_himem_get_free_size() both crash when called.

  esp_himem_get_phys_size();
  esp_himem_get_free_size();

Results in

E (153) spiram: SPI RAM not initialized

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


Backtrace:0x40083671:0x3ffe3ae00x400892a1:0x3ffe3b00 0x4008df6d:0x3ffe3b20 0x400df714:0x3ffe3ba0 0x400df753:0x3ffe3bc0 0x400df63f:0x3ffe3be0 0x400db8f7:0x3ffe3c10 0x40082d8d:0x3ffe3c40 0x400792ba:0x3ffe3c90  |<-CORRUPTED

  #0  0x40083671:0x3ffe3ae0 in panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:402
  #1  0x400892a1:0x3ffe3b00 in esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:128
  #2  0x4008df6d:0x3ffe3b20 in abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/abort.c:46
  #3  0x400df714:0x3ffe3ba0 in esp_spiram_get_chip_size at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_hw_support/port/esp32/spiram.c:145      
      (inlined by) esp_spiram_get_chip_size at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_hw_support/port/esp32/spiram.c:141
  #4  0x400df753:0x3ffe3bc0 in esp_spiram_get_size at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_hw_support/port/esp32/spiram.c:240
  #5  0x400df63f:0x3ffe3be0 in esp_himem_init at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_hw_support/port/esp32/esp_himem.c:134
  #6  0x400db8f7:0x3ffe3c10 in do_global_ctors at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/startup.c:185
      (inlined by) start_cpu0_default at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/startup.c:404
  #7  0x40082d8d:0x3ffe3c40 in call_start_cpu0 at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/port/cpu_start.c:648
  #8  0x400792ba:0x3ffe3c90 in ?? ??:0

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sukesh-akcommented, Dec 15, 2022
1reaction
zackeescommented, Dec 14, 2022

The internet reports that people are accessing the upper 4mb psram through high mem bank switching. At the very least calling this function should not crash the system.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found