S32K342 custom board + PEmicro. Ported S32K344_HSE_FW_INSTALL example to S32K342. Build OK, S32K342.mac reset completes, but code traps into Default_Handler (BusFault/HardFault) before reaching main — fails during startup. Pink is 0.13.0_2.40.0 FULL_MEM. What startup/linker changes are needed for S32K342?
It could be possibly caused by used library (semihosting or so..) as I have recently faced similar issue. Choose newlib_nano no I/O
Otherwise porting of S32K344_HSE_FW_INSTALL to different derivative is quite straightforward. You need to use startup code and register definitions fro S32K342.