This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MEMORY ALLOCATION RTX

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

Parents
  • 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
    
    

Reply
  • 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
    
    

Children
No data