Hi @petervlna , @CherryDeng ,
Please see the attached for a simple cpp and S32K358 RTD3.0.0 example. (based on a single core)
Note...in order to use the RTD with a c++ program, a few things need to be considered.
- 1 - correct include paths in the project which include paths to the RTD
- 2 - modified linker file to include c++ requirements (i.e crt0.o and constructor definitiions)
- 3 - modified startup to include both RTD and c++ requirements.
In the attached S32K358 example, the steps to get it working were:
1 - Start with an RTD example.
2 - Convert RTD example to c++ by selecting File/New/Convert to a C/C++ Project
3 - Modify linker file to include c++ requirements. (refer to attached linker file)
4 - Modify RTD startup_cm7.s by changing the Reset_Handler entry name to _start_RTD (needed to avoid redundant definitioin of _start from RTD and C++)

5. Change the bl main to bl _start to jump to the c++ _start files. (this is defined incrt0.o)

The attached project is a very simple PIT interrupt example but may be a good place to start.
Regards,
Peter