CAN and LIN Bootloader for S32k116

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

CAN and LIN Bootloader for S32k116

2,937 Views
chaitanya_kalyani
Contributor III

Hello,

 

I am new with bootloader.

 

Need to implement CAN and LIN based bootloader for S32K116 and I have downloaded unified bootloader framework from https://www.nxp.com/downloads/en/snippets-boot-code-headers-monitors/unified_bootloader_framework.zi... this link.

 

We don't have Peak CAN and LIN but we have Vector VN1630 and supported PC application. Can I use Vector VN1630 and our PC application with this unified bootloader framework.

 

If any changes are required then what are that changes.

 

Thank you in advance.

 

Tags (1)
0 Kudos
13 Replies

1,405 Views
Dennis_Gokani
Contributor I

Hello @chaitanya_kalyani ,

Have you got this resolved? I want to develop/verify LIN based bootloader using PCAN USB on board S32K142. Can you help me regarding this?

Thank you in advance.

0 Kudos

1,397 Views
chaitanya_kalyani
Contributor III

Hello, 

@Dennis_Gokani i have implemented and tested long back.

 

Currently not working on that platform but i can support you whatever queries you have.

0 Kudos

1,392 Views
Dennis_Gokani
Contributor I

Hello @chaitanya_kalyani,

I am new with bootloader.

I need to implement LIN based bootloader for S32K142 and I have downloaded unified bootloader Demo from https://community.nxp.com/t5/S32K-Knowledge-Base/Unified-bootloader-Demo/ta-p/1423099. this link.

I needed to know the hardware requirements for a LIN based bootloader and the PCAN which will be used for this setup and configuration.

Also, it would be really helpful if you can provide me some links or some understanding on how I can implement LIN based bootloader using Vector CANoe.

If any changes are required then what are that changes.

Thank you in advance.

0 Kudos

2,916 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

 

I have asked the owner of this tool, see the answer below:

Yes, you can. You need to develop your UI/GUI follow UDS and CAN/LIN TP.

 

I hope it helps.

Best regards,

Diana

0 Kudos

2,833 Views
chaitanya_kalyani
Contributor III

Hello @dianabatrlova ,

 

I checked LIN based bootloader code for S32K116 but while dubbing code is getting stuck into DefaultISR not getting why this is happening.

 

chaitanya_kalya_0-1607351293501.png

Can you please tell why getting this issue.

 

 

0 Kudos

2,828 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

 

Can you please share the line of code after which the DefaultISR was triggered?

 

Thank you.

Best regards,

Diana

0 Kudos

2,826 Views
chaitanya_kalyani
Contributor III

Hello @dianabatrlova ,

 

I am not sure from where it is entering into DefaultISR.

 

I am using below code you can find in the attachment.

0 Kudos

2,796 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

 

Unfortunately, currently, I have not this board in my home office.

However, I suggest debugging the code.

You can also, check if you have handlers for each interrupt which you have enabled. (It always goes to defaultISR if any interrupt handler is missing). 

Add the hardfault handler into your project and place while(1){} loop there.
https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447

Check if you have enabled clock source for all your peripherals.

 

Best regards,

Diana

0 Kudos

2,912 Views
chaitanya_kalyani
Contributor III

Hello @dianabatrlova ,

 

Thank you for response.

.

We have PC software that supports UDS but don't have idea about CAN/LIN tp because that is developed by another person. In this case only with UDS can I use or not ?

 

 

0 Kudos

2,893 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

 

I have received the information below:

It looks like the UDS and CAN/LIN TP can be used. Maybe you can try to send UDS messages to a unified bootloader over your GUI/UI. The commands can be found in the JSON file.

 

Best regards,

Diana

0 Kudos

2,720 Views
chaitanya_kalyani
Contributor III

Hello @dianabatrlova ,

 

For our project we are using IAR compiler and it after compilation IAR generating .out file but I observed NxpOpenBus SW support .bin file format only. How to solve this issue. Is there any another solution for this.

 

chaitanya_kalya_0-1609325900969.png

For LIN in folder flash_driver.bin file is provided what is use of that file and from where I can get the source code of flash_driver.bin file.

 

Thank you in advance.

 

 

 

0 Kudos

1,267 Views
Sitaijun1107
Contributor I

Did you update firmware successed with ECUBus? 

0 Kudos

2,344 Views
Leon5590
Contributor II

Hello Chaitanya,

Did you get this issue resolved? Can you use unified bootloader with Vector VN1630? I'm trying to implement bootloader on S12ZVML128 using UDS and LIN TP.

Thank you in advance.

0 Kudos