SJA1105QEL config

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

SJA1105QEL config

Jump to solution
2,550 Views
BravoEven
Contributor I

Hello Everyone

      I am configing my SJA1105QEL via a SPI interface, I'v got the static config stream via tools like figure shows, but I cannot get the "CONFIGS" flag set at address 0x0001:bit 31 after writing the stream into the core. Are there any point I'v missed? Help please.

      Thanks.  #SJA1105 屏幕截图 2023-01-04 220457.png

 

BravoEven_0-1672841387304.png

 

0 Kudos
Reply
1 Solution
2,537 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @BravoEven 

you need to send control word first before the stream. Did you send it? It's also mentioned in the user manual:

lukaszadrapa_0-1672928610922.png

 

There's a sample code for this board:

https://www.nxp.com/design/development-boards/automotive-development-platforms/hardware-tools-access...

Link to the code is:

https://www.nxp.com/webapp/Download?colCode=SJA1105SMBEVM-SDK-FIRMWARE&appType=license

And here you can find a function which prepares data to be sent via SPI. As you can see, it creates control word at the beginning and then it appends the byte stream:

lukaszadrapa_1-1672928734778.png

The function can be found in enet_app.c file.

I guess that this could be the source of problem.

Regards,

Lukas

View solution in original post

0 Kudos
Reply
4 Replies
1,539 Views
Jack22
Contributor I

HI ,Lukas

    

I want to use the SJA1105 Ethernet switching chip to realize the time synchronization function based on the 1588 protocol, how should I proceed in the design stage, can give the implementation method from both hardware design and software design; if I need to configure the software, I will choose the SPI interface, the current reference data sheet is the SJA1105PQRS, but it is not enough to support me to complete the configuration of the The current reference data sheet is SJA1105PQRS, but it is not enough to support me to complete the understanding of how to realize the above function, please give help, thank you very much!

0 Kudos
Reply
2,548 Views
BravoEven
Contributor I

By the way ,I just write the stream into the SPI interface one by one(for example: first word is the Device ID) and haven't cared about the structure of write fram shown in chapter3 of UM11040

0 Kudos
Reply
2,538 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @BravoEven 

you need to send control word first before the stream. Did you send it? It's also mentioned in the user manual:

lukaszadrapa_0-1672928610922.png

 

There's a sample code for this board:

https://www.nxp.com/design/development-boards/automotive-development-platforms/hardware-tools-access...

Link to the code is:

https://www.nxp.com/webapp/Download?colCode=SJA1105SMBEVM-SDK-FIRMWARE&appType=license

And here you can find a function which prepares data to be sent via SPI. As you can see, it creates control word at the beginning and then it appends the byte stream:

lukaszadrapa_1-1672928734778.png

The function can be found in enet_app.c file.

I guess that this could be the source of problem.

Regards,

Lukas

0 Kudos
Reply
2,534 Views
BravoEven
Contributor I

Dear Lukaszadrapa:

     Your advice is very helpful! Thank you very much for the demo code!

      Have a good day!

0 Kudos
Reply