MPC5748G config SJA110

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

MPC5748G config SJA110

643 Views
yong_ban
Contributor I

Hi : My MCU platform is MPC5748G, connect with SJA1105 through DSPI;The system architecture is as follows:
MPC5748G connect the first SJA1105 through MII1, then connect the second SJA1105 MII0 through MII4;
Switchconfigure.c is NXP official configuration code (mcu connect sja1105 MII0);
Switchconfigure change.c is my code, I need change the port to MII1 from MII0, so I change the configuration; But SJA1105 unable to configure successfully, can you help to check the configuration? tks

block.PNG

0 Kudos
1 Reply

549 Views
bpe
NXP Employee
NXP Employee

First of all, it is unclear what was meant with "NXP official configuration code",
if this is an officially released code, it should have a package
name, package identifier, version, the name of the file where the functions you
are trying to re-use are defined, etc.

At a brief glance, your code seem to be writing all MII port 1 CGU registers
to invalid addresses:

static const uint8_t port1_mii_tx_clk[] = {0x01|0x80,0x00,0x01,0x30, ...

The value in red looks like the address of  MII port 0 TX Clk config CGU register rather than port1. Suggestion:
review your code, compare carefully what and where it writes against
AH1601, Sections 2.3 and 2.4. Similar mistakes seem to appear in all port1 initialization values.

Hope it helps,

Platon

0 Kudos