Skip to content

Compile error on esp_cpu_intr_has_handler on ESP32-P4 (IDFGH-15282) #15941

Closed
@Weltenprinz

Description

@Weltenprinz

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.

v5.4.1

Operating System used.

Windows

How did you build your project?

VS Code IDE

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

None

What is the expected behavior?

Build the project for the ESP32-P4 successfully.

What is the actual behavior?

Sometimes I get a compilation error in the function esp_cpu_intr_has_handler because of the line has_handler = intr_handler_get(intr_num), that a pointer is implicitly casted to a bool.

Steps to reproduce.

I cannot retrigger it all the time. It may depend on the optimization setting.

  1. I checked out newest 5.4 release of the esp-idf and built the sld_demo_p4_slint from the esp component registry.
  2. Sometimes it failes because of the error i mentioned above. When i modify the esp_cpu.h by adding a != NULL or (bool) to the line in the esp-idf, the error is gone.

Build or installation Logs.


Diagnostic report archive.

No response

More Information.

I did not store the report, when I had the error and cannot reproduce it right now.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions