-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
esp_log_write
is placed in IRAM but esp_log_writev
is not (IDFGH-13682)
#14557
Comments
esp_log_write
is placed in IRAM but esp_log_writev
is notesp_log_write
is placed in IRAM but esp_log_writev
is not (IDFGH-13682)
Hi @robin96c, Thank for reporting this to us. Indeed, the |
Thanks for reporting, sorry for the slow turnaround, fix on master branch is available at 9eeee92. |
Since there was no response from the user - closing this issue. If the issue persists or if you have any other problems, please reopen this or create a new issue. Cheers! |
This issue was reported on v5.2.1, but the fix is not yet available in 5.2 branch. |
Hi @AxelLin, the fix is currently being backported to v5.2 branch, reopening until fixed. cc @SoucheSouche @KonstantinKondrashov |
@Indastri The v5.2.4 does not include this fix, what's wrong? |
The fix does not exist in any release branches so far. It's only available in master. |
@AxelLin as I stated before, the fix is currently being backported. Not yet available in other branches. Cheers! |
Answers checklist.
IDF version.
v5.2.1
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?
I was looking into the logging system. I noticed some logging functions are placed into IRAM by means of the linker file.
One of such functions is
esp_log_write
.esp_log_write
callsesp_log_writev
, but this last function is NOT placed in IRAM. To my understanding, this nullifies the advantage of not needing to access the flash during a log call.What is the actual behavior?
Only
esp_log_write
is placed into IRAM.Once you dig deeper, there are also other functions that are called while outputting a log that are also not in IRAM:
I'm no expert in this, and I don't know if all these functions need to be placed into IRAM. But it seems weird that some functions are in IRAM while others are not. The reason why I'm digging into this is because I will set a new logger output with
esp_log_set_vprintf
, and I was wondering if that new function should be put into IRAM.Steps to reproduce.
xtensa-esp32s3-elf-objdump build/your_app.elf -t | grep esp_log
Build or installation Logs.
No response
More Information.
No response
The text was updated successfully, but these errors were encountered: