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

error: implicit declaration of function 'soc_has_cache_lock_bug' when ESP_INT_WDT option is disabled if SPIRAM is enabled (IDFGH-8889) #10310

Closed
3 tasks done
stkw0 opened this issue Dec 5, 2022 · 1 comment
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@stkw0
Copy link

stkw0 commented Dec 5, 2022

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

ESP-IDF v5.0.0

Operating System used.

Linux

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

What is the expected behavior?

It compiles the software successfully. (although it may fail at runtime due to SPIRAM dependency on INT_WDT).
I guess that Kconfig should add INT_WDT as a dependency of SPIRAM such a way that if SPIRAM is enabled INT_WDT is also enabled

What is the actual behavior?

The next error is returned

esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c: In function 'esp_startup_start_app':
esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:486:13: error: implicit declaration of function 'soc_has_cache_lock_bug' [-Werror=implicit-function-declaration]
  486 |     assert(!soc_has_cache_lock_bug() && "ESP32 Rev 3 + Dual Core + PSRAM requires INT WDT enabled in project config!");

Steps to reproduce.

  1. Make a copy of the hello world example
  2. Run idf.py menuconfig enable SPIRAM option and disable ESP_INT_WDT
  3. Run idf.py build

Build or installation Logs.

esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c: In function 'esp_startup_start_app':
esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:486:13: error: implicit declaration of function 'soc_has_cache_lock_bug' [-Werror=implicit-function-declaration]
  486 |     assert(!soc_has_cache_lock_bug() && "ESP32 Rev 3 + Dual Core + PSRAM requires INT WDT enabled in project config!");


### More Information.

_No response_
@stkw0 stkw0 added the Type: Bug bugs in IDF label Dec 5, 2022
@stkw0 stkw0 changed the title error: implicit declaration of function 'soc_has_cache_lock_bug' when ESP_INT_WDT option is disabled error: implicit declaration of function 'soc_has_cache_lock_bug' when ESP_INT_WDT option is disabled if SPIRAM is enabled Dec 5, 2022
@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 5, 2022
@github-actions github-actions bot changed the title error: implicit declaration of function 'soc_has_cache_lock_bug' when ESP_INT_WDT option is disabled if SPIRAM is enabled error: implicit declaration of function 'soc_has_cache_lock_bug' when ESP_INT_WDT option is disabled if SPIRAM is enabled (IDFGH-8889) Dec 5, 2022
@ESP-Marius
Copy link
Collaborator

Hi,

The issue seems to be that esp_chip_info.h is missing from port.c, we'll fix that.

As for making INT_WDT depend on SPIRAM in kconfig, I think the problem here is that we do not know the ECO version at compile time. so this will have to stay as a run-time check for now I think.

@espressif-bot espressif-bot added Status: Reviewing Issue is being reviewed Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new Status: Reviewing Issue is being reviewed Resolution: NA Issue resolution is unavailable labels Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

3 participants