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,767件の閲覧回数
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,754件の閲覧回数
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,715件の閲覧回数
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,681件の閲覧回数
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,728件の閲覧回数
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,683件の閲覧回数
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 件の賞賛
返信