S32K LIN

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

S32K LIN

2,668 Views
imdevendra258
Contributor I

Hello NXP Team, 

I am using S32K148 LIN master example to blink a RGB LIN Slave NCV7430.

I have created a LDF for NCV7430 & generated lin cfg files in S32DS.

 I am updating signal using api's of lin_cfg.h.

However I can observe the signal is not being updated on Canoe trace window.

I am uploading LDF file and generated lin (CFG) and main.c.

Please let me know what am I missing  ?

0 Kudos
Reply
3 Replies

2,599 Views
imdevendra258
Contributor I

Hi Dan, 

Thanks for response It is resolved .I needed to do correct the clock setting  for timer as I have 40MHZ external crystal on board.

However I am facing issue with blinking of RGB NCV7430.

I have sent 2 frames: 0x24 and 0x23 from LDF & however it is not blinking it.

I am uploading updated LDF created for NCV7430, main.c & generated lin cfg file, NCV7430 Datasheet,NCV7430 Demo code of arduino link

https://github.com/skpang/Teensy32_LIN-bus_NCV7430_RGB_demo .

I am transferring data as expected .I have set signal as per requirement in main.c but still it is not blinking the NCV7430 RGB led.

Do I need to send PID along with data byte frame of lin. Please let me know what am I missing here ? 

 

Please change timer compare macro value and TIMER PRES macro value to this main.c according to  last main.c file value.I have changed these two macro  as I am running on different frequency and PREscale.

You can see diff I have just modified the LDF signal and those 2 macro value in main.c. 

Thanks & Regards,

Devendra Mishra

0 Kudos
Reply

2,575 Views
DanNguyenDuy
NXP Employee
NXP Employee

Hi @imdevendra258 ,

I only can support you with issues regarding the LIN driver and can't support for debug the Demo code of arduino following your request.

Best regards,

Dan

0 Kudos
Reply

2,613 Views
DanNguyenDuy
NXP Employee
NXP Employee

Hi @imdevendra258 ,

I tried to create an example based on the data that was sent by you. It seems all the signals have been updated correctly.
      - Hardware: S32K148EVB-Q176 29644 PCB RevX1 SCH RevB
      - Software version: S32SDK S32K1xx RTM v3.0.3
      - S32DS: S32DS 2.2
Signals before updated:
      nxf78987_0-1677731124056.png
 
Signal after updated:
      nxf78987_1-1677731124060.png
Please recheck on your side. If the issue is still not resolved, please share with me some information about your setup(hardware, software ...).

Best regards,

Dan

0 Kudos
Reply