-
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
Support for vTaskList and vTaskGetRunTimeStats #1350
Comments
You could compile the libraries with the needed options yourself: |
I've built the blink example with esp-idf and the appropriate options in sdkconfig (via make menuconfig/Component config/FreeRTOS) and the FreeRTOS options are built. But not entirely clear to me how to merge my build into the arduino-esp32 directories. Do I need to take the entire batch of archives from my project build and just overlay the archives in ../arduino-esp32/tools/sdk/lib? I tried just overlaying the libfreertos.a and get a couple of undefined symbols (_thread_local_start and _thread_local_end); not clear which archive they are in. Are there any other changes or considerations needed? |
Follow the directions in issue 1142. You must have your esp-idf repo synched to the same point that arduino-esp32 was last built at (currently f586f5e) or you may have mismatched symbols/functions. It should then just be a matter of copying the libfreertos.a archive to the lib directory. I haven't ever done this for libfreertos.a, but have replaced libesp32 and liblwip.a before. |
It would be nice if it just worked without having to rebuild it all when a new release is out... |
arduino-esp32 is set up for simplicity. If you are micromanaging your tasks, you should probably be using esp-idf or arduino as a component. Please close the issue if this is now working for you. |
I finally got this working, there was one little trick that took a while for me to figure out, the arduino-esp32/tools/sdk/include/config/sdkconfig.h needs to be updated with the appropriate defines in the Blink/build/include/sdkconfig.h which is generated by make menuconfig. I did a diff on the files between my esp-idf Blink example build and the arduino-esp32 version and merged the appropriate debug settings: |
As noted in last comment, it can be made to work. It appears that in the "ESP-IDF Release v3.0, release notes" we see that Runtime stats are available in the base code. --> "FreeRTOS Runtime statistics support (configurable via menuconfig)".... So the work is done, we just need to have a way to enable in the Arduino port with out a re-compile or modification of the base code... |
maybe someone can post the libfreertos.a I am unable to create it... |
Would be awesome for these to be added, more and more people spawning tasks and this info would be nice to have access to. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
is it possible to get these function exposed so one can use them under the Arduino platform... Thanks |
Will it make more sense to you if I just say no? |
No, it's a very useful features of freertos when developing code. Ive been
using freertos for 8 years now. Lots of experience with it...
It's a great tool
On Thu, Aug 8, 2019 at 4:42 PM lbernstone ***@***.***> wrote:
Will it make more sense to you if I just say no?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1350?email_source=notifications&email_token=ABC4EKZUW5YJU6OUWY7UPVLQDSVONA5CNFSM4E4H2SRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD35GEKA#issuecomment-519725608>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABC4EK2XSY7SE3ITUXBOESLQDSVONANCNFSM4E4H2SRA>
.
--
~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~
Tom Lafleur
|
@trlafleur while it is a useful tool for some it isn't highly useful for the majority of Arduino users. I'd suggest shift to Arduino as an IDF component instead. |
Enabling the features in the Arduino ide will not effect most users, but will allow those who need it to have it.....
I have many students in my classes, and would love to access it with out having to move to the IDF....
~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~
Tom Lafleur
… On Aug 8, 2019, at 6:07 PM, Mike Dunston ***@***.***> wrote:
@trlafleur while it is a useful tool for some it isn't highly useful for the majority of Arduino users. I'd suggest shift to Arduino as an IDF component instead.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Profiling features require memory and cpu cycles. Most people are not willing to pay that penalty, essentially having the device in a debug mode all the time. What I can offer, is that @atanisoft has made it significantly easier to compile your own libraries (or compile from scratch every time), by making a simplified method to compile arduino as an esp-idf component in platform.io. Watch that page in the next couple months for instructions on how to do this. |
Thanks, that would be great to find an easy way to build the code... PS:
ESP32 processor have a lot of CPU power, adding any debug code in most
cases make very little performance hit...
~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~
Tom Lafleur
…On Fri, Aug 9, 2019 at 6:32 AM lbernstone ***@***.***> wrote:
Profiling features require memory and cpu cycles. Most people are not
willing to pay that penalty, essentially having the device in a debug mode
all the time. What I can offer, is that @atanisoft
<https://github.com/atanisoft> has made it significantly easier to
compile your own libraries (or compile from scratch every time), by making
a simplified method to compile arduino as an esp-idf component
<https://github.com/espressif/arduino-esp32/blob/master/docs/esp-idf_component.md>
in platform.io. Watch that page in the next couple months for
instructions on how to do this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1350?email_source=notifications&email_token=ABC4EKZ5PVY6HFRSTVNBBETQDVWYBA5CNFSM4E4H2SRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD36VVIY#issuecomment-519920291>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABC4EKYG4AMCHR2RXGB4CYTQDVWYBANCNFSM4E4H2SRA>
.
|
as a minimum would consider just adding vTaskList to the Arduino release, minimal code increase... |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
Expose it! |
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future. |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
Will these FreeRTOS function be exposed in a future release of the Arduino code build?
vTaskList
vTaskGetRunTimeStats
The text was updated successfully, but these errors were encountered: