how to creat sja1110_switch.bin and sja1110_uc.bin in GoldVIP 1.3.0

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

how to creat sja1110_switch.bin and sja1110_uc.bin in GoldVIP 1.3.0

Jump to solution
2,469 Views
Ethan_L
Contributor III

Hi everyone,

I want to know how to creat sja1110_switch.bin and sja1110_uc.bin in GoldVIP 1.3.0.

Does anybody have an idea for this?

Thanks,

Ethan.

0 Kudos
Reply
1 Solution
2,419 Views
kaden
NXP Employee
NXP Employee

Hi @Ethan_L , 

not, this is correct. There is only one binary file which you need to load into the SJA1110.

BR

Kevin

View solution in original post

0 Kudos
Reply
8 Replies
2,420 Views
kaden
NXP Employee
NXP Employee

Hi @Ethan_L , 

not, this is correct. There is only one binary file which you need to load into the SJA1110.

BR

Kevin

0 Kudos
Reply
2,441 Views
kaden
NXP Employee
NXP Employee

Hi @Ethan_L 

if you successfully compiled the example project, your Debug_Flash folder should look like the attached picture. 

You may then use a supported debugger (e.g. PE Micro/Lauterbach) to flash the *.elf file into the flash memory of the switch. 

The SJA1110 SDK comes with flashing algorithms from PE Micro which will flash both internal microcontroller and switch configuration accordingly. 

BR

Kevin 

0 Kudos
Reply
2,438 Views
Ethan_L
Contributor III

嗨 @kaden  ,

我可以使用調試器 將 *.elf 文件閃存到交換機的閃存中。

但我想通過像 GoldVIP 1.3.0 這樣的 SDL 引導模式來引導 SJA1110。

在文檔中它只描述瞭如何加載 sja1110_switch.bin 和 sja1110_uc.bin,但我沒有得到任何關於如何創建或替換它們的信息。

我可以用 *.elf 文件替換 sja1110_switch.bin 和 sja1110_uc.bin 以 在 GoldVIP 1.3.0 中啟動 SJA1110 嗎?

另外,我在 SJA1110 SDK1.0.1 中找不到 spi slave 的例子,你能把 IDE 設置的例子發郵件給我嗎?非常感謝!

 

謝謝,

伊桑。

0 Kudos
Reply
2,456 Views
kaden
NXP Employee
NXP Employee

Hi @Ethan_L , 

to create a switch binary you may use S32 Design Studio + SJA1110 SDK (it comes with a bunch of example projects. This also showcases code examples for the internal M7 core). Please note that you need to adapt the port configuration in these projects accordingly to fit the Gold VIP 1.3.0 port assignment. This is because the example projects are tailored towards the SJA1110-EVM. 

Best regards

Kevin

 

0 Kudos
Reply
2,447 Views
Ethan_L
Contributor III

Hi @kaden ,

I have used S32DS to create switch binary, but I only get the "flash_image.bin".

Am I missing any settings preventing me from getting sja1110_switch.bin and sja1110_us.bin?

Is there any documentation about this?

Thanks.

0 Kudos
Reply
2,271 Views
nicolasespla93
Contributor II

Hi @Ethan_L,

At the end how did you solve this problem? I'm facing the same problem but I have had not any success on it... I'll appreciate any information about this

 

Best regards

0 Kudos
Reply
2,255 Views
Ethan_L
Contributor III

Hi @nicolasespla93 ,

I still don't know how to create "sja1110_switch.bin", so I didn't make any changes to it.

I just use "flash_image.bin" to replace "sja1110_us.bin", and my firmware can be executed.

Thanks,

Ethan.

0 Kudos
Reply
2,037 Views
shanlan123
Contributor II
I just use "flash_image.bin" to replace "sja1110_us.bin", and my firmware can be executed.

how do you do this?
rmmod sja1110
modprobe sja1110
echo flash_image_2G5.bin > /sys/devices/platform/402d0000.spi/spi_master/spi5/spi5.0/uc-configuration/uc_fw_upload
like this?when I do this,it print some error as below:
[ 183.624571] sja1110 spi5.0: [sysfs_set_cfg_upload] received command to upload binary 'flash_image_qbv.bin' to uc
[ 183.638051] sja1110 spi5.0: [sja1110_init_hw] loaded fw 'flash_image_qbv.bin'
[ 183.638073] sja1110 spi5.0: [sja1110_pre_uc_upload] Found firmware of size 126408
[ 183.638170] sja1110 spi5.0: [sja1110_pre_uc_upload] firmware appears to be valid
[ 183.638225] sja1110 spi5.0: [sja1110_uc_parse_status] Invalid status header (0x5b)
[ 183.638233] sja1110 spi5.0: [sja1110_uc_read_status] Parsing uC status failed with -22
[ 183.638240] sja1110 spi5.0: [sja1110_pre_uc_upload] Could not read µC status
[ 183.638291] sja1110 spi5.0: [sja1110_uc_parse_status] Invalid status header (0x5b)
[ 183.638298] sja1110 spi5.0: [sja1110_uc_read_status] Parsing uC status failed with -22
[ 183.638306] sja1110 spi5.0: [sja1110_pre_uc_upload] Could not read µC status
[ 183.638356] sja1110 spi5.0: [sja1110_uc_parse_status] Invalid status header (0x5b)
[ 183.638364] sja1110 spi5.0: [sja1110_uc_read_status] Parsing uC status failed with -22
[ 183.638372] sja1110 spi5.0: [sja1110_pre_uc_upload] Could not read µC status
[ 183.638421] sja1110 spi5.0: [sja1110_uc_parse_status] Invalid status header (0x5b)
[ 183.638429] sja1110 spi5.0: [sja1110_uc_read_status] Parsing uC status failed with -22
[ 183.638436] sja1110 spi5.0: [sja1110_pre_uc_upload] Could not read µC status
[ 183.638486] sja1110 spi5.0: [sja1110_uc_parse_status] Invalid status header (0x5b)
[ 183.638493] sja1110 spi5.0: [sja1110_uc_read_status] Parsing uC status failed with -22
[ 183.638500] sja1110 spi5.0: [sja1110_pre_uc_upload] Could not read µC status
[ 183.638550] sja1110 spi5.0: [sja1110_uc_parse_status] Invalid status header (0x5b)
[ 183.638558] sja1110 spi5.0: [sja1110_uc_read_status] Parsing uC status failed with -22
[ 183.638565] sja1110 spi5.0: [sja1110_pre_uc_upload] Could not read µC status
[ 183.638615] sja1110 spi5.0: [sja1110_uc_parse_status] Invalid status header (0x5b)
[ 183.638622] sja1110 spi5.0: [sja1110_uc_read_status] Parsing uC status failed with -22
[ 183.638628] sja1110 spi5.0: [sja1110_pre_uc_upload] Could not read µC status
[ 183.638678] sja1110 spi5.0: [sja1110_uc_parse_status] Invalid status header (0x5b)
[ 183.638686] sja1110 spi5.0: [sja1110_uc_read_status] Parsing uC status failed with -22
[ 183.638692] sja1110 spi5.0: [sja1110_pre_uc_upload] Could not read µC status
[ 183.638742] sja1110 spi5.0: [sja1110_uc_parse_status] Invalid status header (0x5b)
[ 183.638750] sja1110 spi5.0: [sja1110_uc_read_status] Parsing uC status failed with -22
[ 183.638757] sja1110 spi5.0: [sja1110_pre_uc_upload] Could not read µC status
[ 183.638807] sja1110 spi5.0: [sja1110_uc_parse_status] Invalid status header (0x5b)
[ 183.638814] sja1110 spi5.0: [sja1110_uc_read_status] Parsing uC status failed with -22
[ 183.638822] sja1110 spi5.0: [sja1110_pre_uc_upload] Could not read µC status
[ 183.638829] sja1110 spi5.0: checking firmware failed with -22
[ 183.638877] sja1110 spi5.0: Could not initialize hw (type=1)
0 Kudos
Reply