Other Parts Discussed in Thread: SYSBIOS
Hi
I tried running a standard udma memcpy application using the PDK version "ti-processor-sdk-rtos-j721e-evm-09_00_01_01\pdk_jacinto_09_00_01_04\packages\ti\drv\udma\examples\udma_memcpy_test" in C7x core
Here I added a freertos API "uxTaskGetStackHighWaterMark( NULL )" to get the stack size at the starting of the task function "int32_t Udma_memcpyTest(void)" to check whether I am getting the stack size used for task creation in main_rtos.c for C7x as shown below using the rtos API
1. The issue is rtos API is not returning the entire stack size as 32 KB ( in form of words as return value )
2. While debugging I found that the function "prvTaskCheckFreeStackSpace" is checking for 0xA5 (165) and returning the incremented value based on the check as shown below where 0xA5 value is changed in the middle of the stack space which is unknown.
3. Another question is why for C7x APP_TSK_STACK_MAIN is defined specifically as (32 * 1024U) ? Is there any reason behind this one?
Thanks
Madhu