SJA1110 create python configuration hex

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

SJA1110 create python configuration hex

Jump to solution
1,134 Views
pix-stefan
Contributor I

Hi All,

I have a SJA1110 design and want to generate static .hex files for configuration. Unfortunately I could not find an example script in the following ressources:

SJA1110-EVM Configuration Tools / SJA1110-EVM Host Tools

Can somebody point me to an example, how the switch-config.hex files were generated using python?

Thank you,

Stefan

0 Kudos
Reply
1 Solution
1,085 Views
PavelL
NXP Employee
NXP Employee

Hello @pix-stefan ,

I agree, the Note might be confusing.

FYI, SJA1105 has limited support in S32SDK SJA1110 RTM and the python scripts are the main way how to generate configuration.

The example hex files were generated by the S32SDK SJA1110 RTM.

Naturally, you are allowed to create switch configuration by any tool. After loading your configuration, you should check CFG_STAT register bit 31(CONFIGDONE) to ensure that a valid config was loaded.

I'm not aware of any official python Configuration Generation Tool. Once you have fully supported GUI, it doesn't make sense to me.

Best regards,

Pavel

View solution in original post

3 Replies
1,088 Views
pix-stefan
Contributor I

Hi @PavelL,

thanks for the fast answer!

I was asking, because the README.txt of the EVM-hosttools states:

"Note: In order to generate the hex file from the python file, the `Configuration Generation Tool` must be installed separately (DocStore)."

Is this referring to the S32SDK SJA1110 RTM you referenced above? For me it sounds like it is also possible to generate it from python tools.

This forum entry also references to a python script to generate hex files, but I ask myself where the "example file" is to have a reference? https://community.nxp.com/t5/Other-NXP-Products/SJA1110-no-communication-100Base-T1-to-100Base-TX/m-...

I would really appreciate doing this from python, because we might want to integrate this in our CI/CD and python would make things a lot easier...

BR

Stefan

0 Kudos
Reply
1,086 Views
PavelL
NXP Employee
NXP Employee

Hello @pix-stefan ,

I agree, the Note might be confusing.

FYI, SJA1105 has limited support in S32SDK SJA1110 RTM and the python scripts are the main way how to generate configuration.

The example hex files were generated by the S32SDK SJA1110 RTM.

Naturally, you are allowed to create switch configuration by any tool. After loading your configuration, you should check CFG_STAT register bit 31(CONFIGDONE) to ensure that a valid config was loaded.

I'm not aware of any official python Configuration Generation Tool. Once you have fully supported GUI, it doesn't make sense to me.

Best regards,

Pavel

1,102 Views
PavelL
NXP Employee
NXP Employee

Hello @pix-stefan ,

SJA1110 is fully supported by S32SDK SJA1110 RTM, which generates hex files to the folder your_project_name/board/

Available python tools are able to load hex file to the switch, read/write registers, debug support, ... via USB FTDI driver.

Best regards,

Pavel

0 Kudos
Reply