Hello,
unfortunately, I do not know Trace functions in uC/OS-III, but S32DS has it's own method, how to dump memory.
In debug session, click Memory tab and choose export. Export memory menu will appear. Please see figure below:

Now choose the required format, address range and path and click OK File with memory dump will be created.
Please let me know if this solution is suitable for you.
Regards,
Martin