We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Dear All,
I have need mor informations on RTX memory allocation.
I have created a task with this memory allocation
char str[400]; memset( &str, 0x0, size(str) );
I have this configuration on RTX_Config.c
OS_STKSIZE 50 //200Byte for task
With this configutarion I have a block application but I have block application also with "char str[200];"
Why? How do I use the function "sys_error (ERROR_CODE code)" that I have found in other demo project?
Is it possible to management memory fault
A last question... What do the OS_PRIVCNT
Thanks a lot
Luc
I don't understand what you mean with "a block application".
Your variable char str[400]; seems to be a global variable. No memory allocation involved, so no memory allocation that can fail.
From comments in RTX_Config.c:
// <o>Number of tasks with user-provided stack <0-250> // Define the number of tasks that will use a bigger stack. // The memory space for the stack is provided by the user. // Default: 0