JanStaschulat opened a new issue #2935:
URL: https://github.com/apache/incubator-nuttx/issues/2935


   Hi, 
   I am using NuttX for micro-ROS on STM32 microcontroller on Olimex board. 
   
https://github.com/micro-ROS/nuttx_apps/blob/feature/foxy_rbs_one_sporadic_thread/examples/uros_rbs/main_rbs.c
   - sporadic thread 1 configuration: 
https://github.com/micro-ROS/nuttx_apps/blob/6f692d9bfcb0e3d1971e2b2a6448d1084d5a81ea/examples/uros_rbs/main_rbs.c#L367
   - sporadic thread 2 configuration: 
https://github.com/micro-ROS/nuttx_apps/blob/6f692d9bfcb0e3d1971e2b2a6448d1084d5a81ea/examples/uros_rbs/main_rbs.c#L399
   
   which is a very simple extension of the NuttX example for sporadic 
scheduling:
   
https://github.com/micro-ROS/nuttx_apps/blob/feature/foxy_rbs_one_sporadic_thread/testing/ostest/sporadic.c
   
   In the experimental setup, the callback sleeps for 1ms and increments a 
counter. With this - I can test if budget enforcement is correct over a period 
of 10 seconds. 
   - When I configure the application with one sporadic thread and one FIFO 
thread (with lower priority and 100% CPU utilization), budget enforcement works 
well.
   - When I configure the application with two sporadic threads and one FIFO 
thread (with lower priority and 100% CPU utilization) budget enforcement does 
not work any more. I tested with budget/period 10ms/10mms; 1s/5s. 
   
   I came to the conclusion, that NuttX sporadic scheduling only works for one 
sporadic thread. 
   
   For real applications, I would like to configure multiple threads with 
sporadic scheduling. Could you please check the implementation and give support?
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to