CAN and LIN Bootloader for S32k116

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

CAN and LIN Bootloader for S32k116

3,372 次查看
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.

 

标记 (1)
0 项奖励
13 回复数

1,840 次查看
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 项奖励

1,832 次查看
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 项奖励

1,827 次查看
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 项奖励

3,351 次查看
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 项奖励

3,268 次查看
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 项奖励

3,263 次查看
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 项奖励

3,261 次查看
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 项奖励

3,231 次查看
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 项奖励

3,347 次查看
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 项奖励

3,328 次查看
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 项奖励

3,155 次查看
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 项奖励

1,702 次查看
Sitaijun1107
Contributor I

Did you update firmware successed with ECUBus? 

0 项奖励

2,779 次查看
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 项奖励