espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
12.97k stars 7.11k forks source link

Unable to build code on esp-idf V5.1.2 due to error in file spi_flash_ll.h (IDFGH-12875) #13838

Open adityamilinddesai-eaton opened 1 month ago

adityamilinddesai-eaton commented 1 month ago

Answers checklist.

General issue report

We are using https://github.com/espressif/esp-idf/tree/release/v5.1 and branch 5.1.2. While building our code we are getting error in the file \esp-idf\components\hal\esp32\include\hal\spi_flash_ll.h line no 319 to 323 and 245 to 270. We are not directly calling any function from this file. Still we are getting below errors for this file. Previously we are using esp-idf 4.3. In that also for this file content was same. There we are not getting error. But after migration now we are getting error. Also if we change the code in that file highlighted in the yellow color in right side, then build is successful.
Is there any option need to select to resolve this issue? Please refer the below comment screenshots for error. In comparison image left side is original content and right side yellow highlight is working code due to modifications.

bhardadinesh-eaton commented 1 month ago

image image image image image