untested functions in freertos

jumjum123
Posts: 199
Joined: Mon Oct 17, 2016 3:11 pm

untested functions in freertos

Postby jumjum123 » Tue Jan 17, 2017 8:31 am

Now that driver are more and more complete, let me ask for that couple of untested functions in freertos.
They are mainly croutine, notification, task resume and some special queue.
Are these already on a todo list for next future ?
In my case notification works(on same cpu), but it is still untested.

www.freertos.org
Posts: 2
Joined: Tue Jan 17, 2017 8:16 pm

Re: untested functions in freertos

Postby www.freertos.org » Tue Jan 17, 2017 8:20 pm

Can you clarify what you mean when you say this functionality is not tested? FreeRTOS developers test the code they distribute, including these functions.

ESP_Sprite
Posts: 9759
Joined: Thu Nov 26, 2015 4:08 am

Re: untested functions in freertos

Postby ESP_Sprite » Wed Jan 18, 2017 2:42 am

We modified FreeRTOS for multi-core use, and in the process we modified a fair few functions of it. Most of the FreeRTOS functions are tested for multicore-compatibility by now, but some are not and they are marked by an assert; that is what the OP means.

We've been planning to test these functions and validate/fix them. With a bit of luck, we'll get around to doing this before the 2.0 release.

guthsmash
Posts: 2
Joined: Sat Feb 04, 2017 9:48 pm

Re: untested functions in freertos

Postby guthsmash » Sat Feb 04, 2017 9:52 pm

I'm using some untested functions because I like to live dangerously. I'd like to share the results of my testing efforts, is there a list if what should be tested to mark them as tested?

ESP_Sprite
Posts: 9759
Joined: Thu Nov 26, 2015 4:08 am

Re: untested functions in freertos

Postby ESP_Sprite » Sun Feb 05, 2017 9:04 am

Not yet. In general we need to see if these functions still work as advertised. More specifically for multicore, we need to test the behaviour of these functions when called from both CPUs at the same time; there may be some muxing race conditions involved. I would definitely be interested in hearing which functions you tested, how, and what the result was. Feel free to post in this topic or mail to jeroen at espressif dot com.

jumjum123
Posts: 199
Joined: Mon Oct 17, 2016 3:11 pm

Re: untested functions in freertos

Postby jumjum123 » Sun Feb 05, 2017 10:40 am

I'm using notification, task resume and task suspend in my app.
Good news, it works fine. :D
Bad news, both tasks are running on same core, so this is not the test you need. :(

guthsmash
Posts: 2
Joined: Sat Feb 04, 2017 9:48 pm

Re: untested functions in freertos

Postby guthsmash » Fri Feb 10, 2017 8:27 am

I didn't really test them exclusively, I simply used some of the process listing functions. I guess making a dozen threads on two cpus and continuously calling some of the utility functions could be used as a kind of explorative testing, but I'm not familiar with systematically looking for problems with deadlocks and race conditions. I'll let you know if I run into an issue :)

Who is online

Users browsing this forum: dkovar and 131 guests