S32 DS for Freemaster

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32 DS for Freemaster

580 Views
mapengyun
Contributor I

1.add freemaste sdk for project ,this project is S32K146_Project_Hello(Project form Example)

mapengyun_1-1629861085622.png

mapengyun_0-1629860964588.png

2.modify code as pictures below

mapengyun_2-1629861146507.png

mapengyun_3-1629861194779.png

mapengyun_4-1629861211822.png

3. debug this project,problem occurs

mapengyun_5-1629861278674.png

mapengyun_6-1629861325448.png

4.how is solved?thank you

 

 

0 Kudos
1 Reply

564 Views
stanish
NXP Employee
NXP Employee

Hi,

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.

Stan

0 Kudos