LLCE Linux S32G

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

LLCE Linux S32G

489 Views
Abhiram_m_s
Contributor I

Hello all,

I am trying to solve LLCE can using Linux. I am facing few issues.

After editing local.conf file and after compiling the linux kernel, i am not able to configure CAN

Abhiram_m_s_0-1712733710734.png

Can you let me know how to proceed and also if possible, can you give me the clear steps for this demo.

I am using LLCE 1.0.7 and RTD 4.0.2 and linux BSP 38.0

Thank you. Regards.
Abhiram M S

0 Kudos
Reply
3 Replies

387 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Abhiram_m_s

Thanks for the feedback.

I will have a test with Yocto to see if there are issues, would you please compiling the kernel/modules manually to have a try?

I could confirm that it works fine with LLCECAN interface on BSP38.0, the reference steps are shown below:

  1. Add the following configuration to the kernel config

_Networking support

_CAN bus subsystem support

_CAN Device Drivers

_Platform CAN drivers with Netlink support

_NXP LLCE CAN Support

<M>   LLCE CAN

  1. Build the kernel/modules, copy kernel image, ./drivers/net/can/llce/llce_can.ko, ./drivers/mailbox/llce-mailbox.ko ./drivers/mfd/llce-core.ko to the SD card.
  2. Copy the LLCE firmware binaries to the /lib/firmware on the SD card, including dte.bin, frpe.bin, ppe_tx.bin, ppe_rx.bin.
  3. Boot the board with newly built kernel image on the SD card
  4. Insmod the three modules following the order with:  llce-core.ko, llce-mailbox.ko, llce_can.ko
  5. Setup the llcecan port by the following commands:

ip link set up llcecan0 type can bitrate 500000 dbitrate 5000000 fd on

ip link set up llcecan14 type can bitrate 500000 dbitrate 5000000 fd on

  1. Connect the llcecan0 and llcecan14 to have a test with candump/cansend.

Hope it helps.

 

Best Regards

Chenyin

0 Kudos
Reply

469 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Abhiram_m_s

Thanks for the question, would you please help to clarify the following?

  1. May I know if you are using the custom board or RDB? It is based on S32G2 or G3?
  2. May I know which example/demo you are testing with?
  3. What is the modification to the conf/local.conf, would you please help to provide the steps you have done?
  4. From the logs, seems it is a ubuntu RFS, then you have done a ubuntu build based on BSP38.0 using yocto?

 

Best Regards

Chenyin

 

0 Kudos
Reply

463 Views
Abhiram_m_s
Contributor I

Hello @chenyin_h ,

  1. We are using S32G3-VNP-RDB3 board.
  2. We are trying to execute LLCE can demo
  3. We have added the following 2 lines for the local.conf file

DISTRO_FEATURES_append = " llce-can "
NXP_FIRMWARE_LOCAL_DIR = "/path/to/firmware/binaries/folder"

4. We have done ubuntu build based on BSP 38.0 using yocto.

 

0 Kudos
Reply