Skip to content

Build & Formatting #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 2 tasks
ModischFabrications opened this issue Jan 2, 2022 · 7 comments
Closed
1 of 2 tasks

Build & Formatting #3

ModischFabrications opened this issue Jan 2, 2022 · 7 comments

Comments

@ModischFabrications
Copy link
Owner

ModischFabrications commented Jan 2, 2022

  • fix formatter crash on new (clang-v13) format. Probably due to invalid reference to different version of clang.
  • Flash Reader self-reports 4MB, Uploader assumes 1MB. Might be wrong board definition.
@ModischFabrications
Copy link
Owner Author

Seems like it's a problem of integrating external SPI RAM into local memory map: https://community.platformio.org/t/a-question-about-board-configuration-files-with-esp32/21877/6

Solution seems to be a menuconfig tool that doesn't work for me. The ominous sdkconfig file from the HUB75 examples might be a way.

@ModischFabrications
Copy link
Owner Author

ModischFabrications commented Jan 13, 2022

@ModischFabrications
Copy link
Owner Author

"Auto-detected Flash size: 4MB" from upload log

@ModischFabrications
Copy link
Owner Author

Getting close now:

RAM: [== ] 15.9% (used 52152 bytes from 327680 bytes)
Flash: [========= ] 93.2% (used 1221122 bytes from 1310720 bytes)

@ModischFabrications
Copy link
Owner Author

ModischFabrications commented Jan 14, 2022

Went over now.

Seems like partition tables are used to increase usable space: platformio/platform-espressif32#309

@ModischFabrications
Copy link
Owner Author

Great overview in espressif/arduino-esp32#4551 (comment), seems like the full 4MB are already used, it's just partitioned into the different areas. Using no_ota.csv should save some space, that's probably enough.

@ModischFabrications
Copy link
Owner Author

build_flags =
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue

are great, but they seem to be a board-specific thing and are set already. 4MB of this board seems to be onboard only, so this was a pointless search. Use

void printRAM(){
// useful to validate PSRAM fix is running
Serial.printf("Total heap: %d\n", ESP.getHeapSize());
Serial.printf("Free heap: %d\n", ESP.getFreeHeap());
Serial.printf("Total PSRAM: %d\n", ESP.getPsramSize());
Serial.printf("Free PSRAM: %d\n", ESP.getFreePsram());
}

to check for size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant