Open Cimby1 opened 2 weeks ago
Hi @Cimby1,
I'm trying to understand and reproduce this issue at my end. I picked up a random project "/esp-idf/examples/system/esp_event/user_event_loops/" and rename main.c to main.txt and create a new main.c, but it still can be compiled.
To clarify the issue and help us check it further, can you please describe what did you modify in your project and show your file hierarchy and a valid complete log?
Thanks, Xiaoyu
Hi, thanks for helping me out!
In the menuconfig I changed the memory size to 4MB, and to auto detect mode.
For my components I only added ESP-IDF.
It is a weird bug, that is not happening on my side all the time.
I try to build the project on another PC, to see if the issue moves or not.
What kind of log can I attach ? I though the build error contains enough information.
Hi, thanks for helping me out!
In the menuconfig I changed the memory size to 4MB, and to auto detect mode.
For my components I only added ESP-IDF.
It is a weird bug, that is not happening on my side all the time.
I try to build the project on another PC, to see if the issue moves or not.
What kind of log can I attach ? I though the build error contains enough information.
Hi @Cimby1,
Did you reproduce it in another computer? I followed the steps you pointed that enable flash auto detect and change flash size to 4MB, and also create a renamed txt file, but still didn't hid the same issue.
For the issue signatures identifier "CONFIG_FREERTOS_HZ" is undefined
and struct "" has no field "left_align
, I don't find it in the log, and I can't see how flash configurations may affect FreeRTOS. It will be helpful to further debugging if a complete context could be provided.
Regards, Xiaoyu
Hi, sorry for the late reply I was a little busy with other projects. I try to bring back this issue at the weekend.
So after days of trying I solved this problem by rewriting the CMakeLists.txt in the main folder.
The SRCS section was empty, but I don't know why.
idf_component_register(SRCS INCLUDE_DIRS ".")
I add "main.c" to it and it worked again. I did not modify this file between renamings, as I mentioned earlier.
idf_component_register(SRCS "main.c" INCLUDE_DIRS ".")
But the the real problem is that VSCode gives a different error code, and it is very misleading.
Looks like this might be an issue with VS Code extension. Please see https://github.com/espressif/vscode-esp-idf-extension/issues/1170#issuecomment-2017873247 and leave a comment there if you have a way to reproduce the issue.
cc @brianignacio5
Answers checklist.
IDF version.
V5.3
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
CMD
What is the expected behavior?
Build project like in the other folder.
What is the actual behavior?
Throw 2 error:
Steps to reproduce.
Build or installation Logs.
More Information.
I didn't change my void app_main(void) function name in any code that I tried to copy paste like this. So I guess the suggested problem in the build logs are not valid.
If I creat a new project usigng the ESP IDF wizard, and paste my code there it works flawlessly.