SJA1110 create python configuration hex

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SJA1110 create python configuration hex

跳至解决方案
1,142 次查看
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 项奖励
回复
1 解答
1,093 次查看
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

在原帖中查看解决方案

3 回复数
1,096 次查看
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 项奖励
回复
1,094 次查看
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,110 次查看
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 项奖励
回复