Skip to content
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

cpu_start chrashes when CONFIG_SECURE_FLASH_ENC_ENABLED and LOG_LEVEL>ERROR (IDFGH-2799) #4862

Closed
1 task
jas39 opened this issue Feb 29, 2020 · 2 comments
Closed
1 task

Comments

@jas39
Copy link

jas39 commented Feb 29, 2020

call_start_cpu0 in cpu_start calls esp_efuse_api which uses ESP_LOG* instead of ESP_EARLY_LOG_*
at this point the ESP_LOG_* functionality is not initiated and causes a crash.

Using idf v4.0, compiling with default cmake toolchain and VSCode

  • coredump as follows
0x4008229d: esp_log_write at C:/Users/A/esp-idf/v4.0/components/log/log.c:196

0x400e5416: esp_efuse_get_coding_scheme at C:/Users/A/esp-idf/v4.0/components/efuse/src/esp_efuse_api.c:200 (discriminator 6)

0x400e5649: check_range_of_bits at C:/Users/A/esp-idf/v4.0/components/efuse/src/esp_efuse_utility.c:443

0x400e56e6: esp_efuse_utility_process at C:/Users/A/esp-idf/v4.0/components/efuse/src/esp_efuse_utility.c:87

0x400e5319: esp_efuse_read_field_blob at C:/Users/A/esp-idf/v4.0/components/efuse/src/esp_efuse_api.c:45

0x400e6436: esp_get_flash_encryption_mode at C:/Users/A/esp-idf/v4.0/components/bootloader_support/src/flash_encrypt.c:79

0x400e648f: esp_flash_encryption_init_checks at C:/Users/A/esp-idf/v4.0/components/bootloader_support/src/flash_encrypt.c:48

0x40081548: call_start_cpu0 at C:/Users/A/esp-idf/v4.0/components/esp32/cpu_start.c:209 (discriminator 1)
@github-actions github-actions bot changed the title cpu_start chrashes when CONFIG_SECURE_FLASH_ENC_ENABLED and LOG_LEVEL>ERROR cpu_start chrashes when CONFIG_SECURE_FLASH_ENC_ENABLED and LOG_LEVEL>ERROR (IDFGH-2799) Feb 29, 2020
@Alvin1Zhang
Copy link
Collaborator

@jas39 Thanks for reporting the issue. Would you please help provide more details as suggested in the issue template? Information like elf, sdk configuration, backtrace, log outputs, commit ID, hardware and etc. would help us debug further. Thanks.

@KonstantinKondrashov
Copy link
Collaborator

Hi @jas39 !
Thanks for your report. I will fix this on the master and will backport to the previous version as well.

espressif-bot pushed a commit that referenced this issue Apr 27, 2020
espressif-bot pushed a commit that referenced this issue Apr 28, 2020
igrr pushed a commit that referenced this issue May 8, 2020
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

3 participants