Hi Sam,
Thanks for your feedback.
I have already double-checked, and I can confirm that the functions running on both bare-metal and RTOS are 100% the same.
The same call flow works correctly in the bare-metal project, but in the FreeRTOS project the buffer data is always 0x00000000.
Do you think there could be any other project settings (for example in MCUXpresso IDE, such as linker script, memory regions, or compiler options) that might cause this kind of difference?
Thanks again for your suggestions.
Weitin