SJA1105QEL config

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

SJA1105QEL config

Jump to solution
554 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
1 Solution
541 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
3 Replies
552 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
542 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
538 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