11 years, 3 months ago.

How to modify the max number of threads for RTOS ?

I need more than 8 threads for my program. I read that we can modify this number in RTX_Conf_CM.c

#ifndef OS_TASKCNT
#  if defined(TARGET_LPC1768) || defined(TARGET_LPC2368)
#    define OS_TASKCNT         14  // I modified this number but it doesn't work.
#  elif defined(TARGET_LPC11U24)
#    define OS_TASKCNT         6  
#  endif
#endif

I have memory problems when I change it. If somebody know how to augment this number, I would appreciate. Thank you by advance

Be the first to answer this question.