Page 1 of 2
is printf from newlib?
Posted: Thu Sep 02, 2021 9:01 am
by mathildawyx
Is it from the newlib, because I can't find the detailed function body?
I'v search the code and forum but have not get the conclusion.
sorry I don't know much about newlib, i'm learning
Re: is printf from newlib?
Posted: Fri Sep 03, 2021 2:00 am
by ESP_Sprite
Yes, it is. Our newlib is partially in ROM and partially in a binary library in ESP-IDF, but we publish the
sources on Github.
Re: is printf from newlib?
Posted: Mon Sep 06, 2021 12:14 am
by mathildawyx
Thanks!
Re: is printf from newlib?
Posted: Mon Sep 06, 2021 3:26 am
by mathildawyx
I‘m sorry it's a little hard for me..
Is there any protection to prevent two core printting log at the same time to prevent disorder log,or do you suggest to use ESP_LOGI/ESP_LOGW...? Thanks
Re: is printf from newlib?
Posted: Tue Sep 07, 2021 1:20 am
by ESP_Sprite
Yes, there should be. You can also use the ESP_LOG* calls, they can be more handy if you want to use different log levels.
Re: is printf from newlib?
Posted: Tue Sep 07, 2021 11:44 am
by mathildawyx
sorry i'm feeling a little confused.. there should be means there is or there isnot..
Re: is printf from newlib?
Posted: Tue Sep 07, 2021 11:45 am
by mathildawyx
thank you for your answer by the way
Re: is printf from newlib?
Posted: Sun Sep 12, 2021 6:49 am
by mathildawyx
I check the source code you provide, it seems no protect in printf when it comes to 2 cores printing at the same time? Am I missing something? Thanks
Re: is printf from newlib?
Posted: Sun Sep 12, 2021 11:45 am
by ESP_Sprite
Sorry, I'm decently sure printf has locks somewhere in the pipeline, but I can't tell you for sure where...
Re: is printf from newlib?
Posted: Sun Sep 12, 2021 7:46 pm
by WiFive