how to develop bootloader using LIN protocal based on AN4723-S12Z_BootLoader software

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

how to develop bootloader using LIN protocal based on AN4723-S12Z_BootLoader software

1,772 次查看
NoahXu
Contributor III

Dear support , 

 now i am developing bootloader for S12ZVML128 MCU.

 ia read through the AN4723 and find the SCI1 is used, if sci1 is not available but LIN is available, how can i modify the AN4723SW?

0 项奖励
回复
5 回复数

1,759 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @NoahXu,

I'm not sure what you mean.

The LINPHY can be routed to SCI0 only.

There is such a bootlaoder already:

AN5389 S12Z MagniV LIN Bootloader

https://www.nxp.com/docs/en/application-note/AN5389.pdf

https://www.nxp.com/docs/en/application-note-software/AN5389SW.zip

 

Best regards,

Daniel

 

 

0 项奖励
回复

1,720 次查看
NoahXu
Contributor III

Hi,Daniel

another problem during compile of this AN5328SW ,seems the stack size is set wrong for this demo.

how would you suggest to change?

NoahXu_0-1706956436290.png

 

BR

Noah

0 项奖励
回复

1,686 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Noah,

Indeed the compiled code is too big.

Have you tried increasing the size SHADOW_ROM_S and SHADOW_RAM_S sections:

danielmartynek_1-1707136063419.png

 

You could also use a higher optimization level:

danielmartynek_0-1707135674765.png

 

Regards,

Daniel

0 项奖励
回复

1,733 次查看
NoahXu
Contributor III

Hi, Danielmartynek

  thanks for reminder, this AN5389SW is what I need.

  when i try to use this SW, i found the PC application program is difficult to understand.

  how to use this S12Z_MagniV_Serial_Bootloader_Interface.jar ?

  should i develop some windows java application?

 

BR

Noah

0 项奖励
回复

1,688 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @NoahXu,

The S12Z_MagniV_Serial_Bootloader_Interface.jar interface is for the SCI bootloader.

For the LIN bootloader, you need a LIN master that would send the data

The master should send the S-record file data in frames of 8 bytes with the ID reserved for reception of data, as explained in AN5389.

 

Regards,

Daniel

 

 

0 项奖励
回复