1.add freemaste sdk for project ,this project is S32K146_Project_Hello(Project form Example)
2.modify code as pictures below
3. debug this project,problem occurs
4.how is solved?thank you
I assume you'd like to use UART as a communication channel with PC.
In this case please make sure you enabled macro below in freemaster_cfg.h
#define FMSTR_USE_SCI 1 /* To select SCI communication interface */
FreeMASTER does not contain peripheral initialization (UART/CAN). So please add LPUART initialization code + PinMux code to enable Rx/Tx Pins before you call FMSTR_Init()
I suspect the exception occurs due to accessing peripheral registers while module is not enabled yet (clock gating).
Hope it helps.