This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C/C++ Compiler
Dear Sir:
I want to check task stack in the taskHook switchFxn, and print the warning while the stack used over 90%.
but the system maybe dump when the AppUtils_Printf() is called in the switchFxn.
my pdk : psdk_rtos_auto_j7_07_00_00_11
I am not sure that it is a bug. or the AppUtils_Printf() should not be invoked in the switchFxn.
--and I find it's ok while AppUtils_Printf() is called in the createFxn.
Regards,
Huanggl
Hi Huanggi,
From which core are you trying this? If you are printing from a remote core like DSP/R5F you will need to call board init first which will initialize and allocate memory for the print statements to be stored in memory and the A72 prints the contents of the buffer in UART console.
Regards,
Shyam
I am not familiar with this system, but printf() takes a lot of stack by itself, so you might be running out out stack when you use it to report that you are low on stack.
Hi Shyam,
>From which core are you trying this?
MCU1_0.
and only mcu1_0 is running, AppUtils_Printf() output string via UART.
regards,
Huanggl
Hi,
I am not familiar with this system, but printf() takes a lot of stack by itself, so you might be running out out stack when you use it to report that you are low on stack.
Can you try just setting a flag in the hook function when the stack increases over a certain threshold and then print in the main task? Did you try that?
Regards,
Karan