esp_log_write
is placed in IRAM but esp_log_writev
is not (IDFGH-13682)
#14557
Labels
Resolution: Done
Issue is done internally
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
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: