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

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

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

1,771 Views
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 Kudos
Reply
5 Replies

1,758 Views
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 Kudos
Reply

1,719 Views
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 Kudos
Reply

1,685 Views
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 Kudos
Reply

1,732 Views
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 Kudos
Reply

1,687 Views
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 Kudos
Reply