-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Compiler error in driver/can.c if optimized for performance (IDFGH-1945) #4143
Comments
I found a temporary solution If somebody needs an immediate fix: Add the line |
@zinke-ct-video 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. |
Here are some more information: And here are the full command line prints: C:\Users\user258\esp\projects\webserver-poe-switch>idf.py build Do you need any other info? |
When CONFIG_FREERTOS_ASSERT_DISABLE is set, the function calls wrapped inside the assertion macros would be removed from the code. Closes #4143
When CONFIG_FREERTOS_ASSERT_DISABLE is set, the function calls wrapped inside the assertion macros would be removed from the code. Closes #4143
When CONFIG_FREERTOS_ASSERT_DISABLE is set, the function calls wrapped inside the assertion macros would be removed from the code. Closes #4143
This is in line with the [arduino platform specification](https://arduino.github.io/arduino-cli/platform-specification/#recipes-for-extraction-of-executable-files-and-other-binary-data) specifying that the file extension after recipe.objcopy is arbitrary and that the AVR platform uses `eep` & `hex`, while the esp32 platform seems to have file extensions `partition.bin` & `bin`
Hello,
the latest IDF (4.1) won't compile anymore, if I select compiler optimization = performance and assertions = disabled.
If I select compiler optimization = size then everything is fine.
The mentioned error is below:
C:/Users/user258/esp/esp-idf/components/driver/can.c: In function 'can_intr_handler_main':
C:/Users/user258/esp/esp-idf/components/driver/can.c:281:9: error: '((unsigned char*)&frame..)[0]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
if (frame->self_reception) {
^~~~~
cc1.exe: some warnings being treated as errors
This issue is also very similar to #3591
Thanks for any help!
The text was updated successfully, but these errors were encountered: