I searched the forum for a answer to a question about using FreeRTOS related,and catch this:Is it safely to call pvPortMalloc() before scheduler running?
it is exactly the same as my required.
so,as newbie,quite wish that reference documents to be update now.
Hmm, this is an interesting point. All our demos do just this because they create tasks before the scheduler starts, and if you create tasks (or any other FreeRTOS object) using dynamic rather than static allocation then pvPortMalloc() is called before the scheduler starts - but that is probably not documented anywhere.