S32GARDB2 can not drive SJA1110

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

S32GARDB2 can not drive SJA1110

Jump to solution
1,079 Views
zhaohengyi
Contributor II

Hello everyone:

I am testing S32G274ARDB2 board, I have trouble  in testing switch of SJA1110.My test environment is default Yocto BSP.

In UG:

       The Linux kernel module is automatically inserted at boot time on S32G274A RDB2. In order for the driver to
update the firmware of the switch and/or the uC, please provide the path to the binaries on the host machine in
conf/local.conf before the yocto build.
SJA1110_SWITCH_FW = <path_to_sja_switch_binaries>
SJA1110_UC_FW = <path_to_sja_uc_binaries>
Where path_to_sja_switch_binaries is .../sja1110_switch.bin and path_to_sja_uc_binaries is
.../sja1110_uc.bin.

But I can not find sja1110_switch.bin and sja1110_uc.bin. So I download GoldVIP-1.4.0-binaries.zip, and find these two files, then I build Yocto BSP agin. I set SW12 on 1-1 position, but can not work.

You can see below:

zhaohengyi_0-1667988557447.png

Who can help me, thank you.

Tags (1)
0 Kudos
Reply
1 Solution
1,062 Views
zhaohengyi
Contributor II

Hello Daniel,

  • Thank you for your reply. I think I've solved my problem.

  • From the picture of first floor, I think the sja1110  does not operation properly, but my pc can conmunication with pfe0,  the sja1110 actually works. so I want to know what's problem with sja1110, and update the FW of sja1110.

  • I use the method in file "Linux BSP 33.0 User Manual for S32G2 platforms",
    • The Linux kernel module is automatically inserted at boot time on S32G274A RDB2. In order for the driver to update the firmware of the switch and/or the uC, please provide the path to the binaries on the host machine in conf/local.conf before the yocto build.
      SJA1110_SWITCH_FW = <path_to_sja_switch_binaries>
      SJA1110_UC_FW = <path_to_sja_uc_binaries>
      Where path_to_sja_switch_binaries is .../sja1110_switch.bin and path_to_sja_uc_binaries is .../sja1110_uc.bin.
      NOTE:The user can also simply copy the binaries in rootfs at the following path: /lib/firmware.
      In order for the firmware to be updated at boot time, SW12 must be set on the 1-1 position.
  • I try to use first method, update conf/local.conf, and build image again. But it didn't work, and I can't find sja1110_switch.bin and sja1110_uc.bin in /lib/firmware of rootfs.
  • So, I try to use sencond method, copy the binaries in rootfs at the following path: /lib/firmware. And it seems work fine, results as the follows,
  • zhaohengyi_0-1668134507969.png

    So I think there may be some fault in first method.

View solution in original post

3 Replies
1,066 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

The bootmode for SJA1110A on the RDB2 is set to use the SPI Flash connected to it. SJA1110A has already FW flashed to the SPI NOR Flash in this board.

Have you tried using the SJA with the FW provided with the board? Do you have problems reaching to it with the default FW??

0 Kudos
Reply
1,063 Views
zhaohengyi
Contributor II

Hello Daniel,

  • Thank you for your reply. I think I've solved my problem.

  • From the picture of first floor, I think the sja1110  does not operation properly, but my pc can conmunication with pfe0,  the sja1110 actually works. so I want to know what's problem with sja1110, and update the FW of sja1110.

  • I use the method in file "Linux BSP 33.0 User Manual for S32G2 platforms",
    • The Linux kernel module is automatically inserted at boot time on S32G274A RDB2. In order for the driver to update the firmware of the switch and/or the uC, please provide the path to the binaries on the host machine in conf/local.conf before the yocto build.
      SJA1110_SWITCH_FW = <path_to_sja_switch_binaries>
      SJA1110_UC_FW = <path_to_sja_uc_binaries>
      Where path_to_sja_switch_binaries is .../sja1110_switch.bin and path_to_sja_uc_binaries is .../sja1110_uc.bin.
      NOTE:The user can also simply copy the binaries in rootfs at the following path: /lib/firmware.
      In order for the firmware to be updated at boot time, SW12 must be set on the 1-1 position.
  • I try to use first method, update conf/local.conf, and build image again. But it didn't work, and I can't find sja1110_switch.bin and sja1110_uc.bin in /lib/firmware of rootfs.
  • So, I try to use sencond method, copy the binaries in rootfs at the following path: /lib/firmware. And it seems work fine, results as the follows,
  • zhaohengyi_0-1668134507969.png

    So I think there may be some fault in first method.

1,055 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Thanks for the steps you follow.

Let us take this information to our documentation team and see why there is a problem with the first method.

 

0 Kudos
Reply