Unified Bootloader for S32K116_LIN - Issue in the process UDS

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

Unified Bootloader for S32K116_LIN - Issue in the process UDS

跳至解决方案
10,901 次查看
RGMAL
Contributor II

Hello,

I am working with your Unified Bootloader for S32K116_LIN. Which use the UDS Process with CANalyzer but I have a problem, I received a log of LIN communication from an NXP Support and I followed the same steps but after downloading the Flash Driver I only see that the APP_Demo is downloaded in RAM (0x200021C0) but I never see that is passes to the Flash memory.

After Erase Memory I saw that only the RAM is erased (from 0x20002FF0 onwards) and not the Flash.

The problem could be that I don't use the OpenBus tool? or Can it be a problem of the Erase Memory Function?

Thank you in advance.

RGMAL

0 项奖励
回复
1 解答
10,768 次查看
nxf10035
NXP Employee
NXP Employee

Hi,

    Do you have test on other boards or erase all P-Flash content? If not please try. Actually, we update the bootloader stack, due to some issues. So, you can also try the newest bootloader stack.

    Best Regards!

在原帖中查看解决方案

0 项奖励
回复
16 回复数
10,880 次查看
nxf10035
NXP Employee
NXP Employee

Hi,

    Plse upload your update process and log(captured by CANalyzer). It's maybe download or verify(CRC) flash driver failed.

   Best Regards!

0 项奖励
回复
10,875 次查看
RGMAL
Contributor II

Hello,

I attach my LOG but in these steps (download or verify(CRC) flash driver) I have no Negative Response.

Thank you!

0 项奖励
回复
10,851 次查看
nxf10035
NXP Employee
NXP Employee

Hi,

     From the log, the problem is erase P-flash failed.

nxf10035_0-1628558007818.png

   Have some questions:

1. Is the flash driver provided by NXP? 

2. Do you modify the bootloader?

Best Regards!

 

0 项奖励
回复
10,850 次查看
RGMAL
Contributor II

Hello,

yes, I am using the NXP Flash Driver, I didn't modify the bootloader.

For example, after the Erase Memory step I saw that only the RAM was deleted after that I only see that APP_Demo is downloaded in RAM but never in Flash.

Thank you!

0 项奖励
回复
10,844 次查看
nxf10035
NXP Employee
NXP Employee

Hi,

      It's erase P-flash successful on my side. Attachment is my bootloader project. You can test again.

nxf10035_0-1628563619244.png

   Best Regards!

0 项奖励
回复
10,840 次查看
nxf10035
NXP Employee
NXP Employee

Hi,

   I found an issue for PC tool. Default, bootloader program flash data align with 8 bytes, max data length is 128 bytes. For the PC side, send message data must align with 8 bytes, send max data is 128B(0x80). For 0x36 service, send message length should set 0x82. For flash driver maybe have not problem, for APP have an issue.

nxf10035_0-1628564764162.png

 

0 项奖励
回复
10,830 次查看
RGMAL
Contributor II

I changed the message length to 0x82 but I saw the same error in Erase Memory.

Attached my log.

Thank you!

0 项奖励
回复
10,816 次查看
nxf10035
NXP Employee
NXP Employee

Hi,

   Please upload your flash driver' binary. I want to check the flash driver correct or not.

Best Regards!

0 项奖励
回复
10,813 次查看
RGMAL
Contributor II

Hello,

Attached the Flash Driver.

Thank you!

0 项奖励
回复
10,818 次查看
nxf10035
NXP Employee
NXP Employee

Hi,

   Please test the attached bootloader or upload your project.

0 项奖励
回复
10,797 次查看
RGMAL
Contributor II

Hello,

I worked with your boot loader and saw the same error in Erase Memory and saw the same error in the last Routine Control (31 01 02 02) I got as a response 71 01 02 02 01.

I attached a log. 

Thank you!

0 项奖励
回复
10,791 次查看
nxf10035
NXP Employee
NXP Employee

Hi,

   Did you have test over PEAK(NXP provide the open BUS tool). I saw some issue as below:

nxf10035_0-1628662726122.png

 The PC tool not following LIN TP spec.

Best Regards!

 

0 项奖励
回复
10,772 次查看
RGMAL
Contributor II

Hello, 

I have fixed this error and I do not have a PEAK PLIN_USB, I only have Vector VN1630A CANcase.

Could this be the problem?

Thank you!

标记 (1)
0 项奖励
回复
10,769 次查看
nxf10035
NXP Employee
NXP Employee

Hi,

    Do you have test on other boards or erase all P-Flash content? If not please try. Actually, we update the bootloader stack, due to some issues. So, you can also try the newest bootloader stack.

    Best Regards!

0 项奖励
回复
10,750 次查看
RGMAL
Contributor II

Hello,

Yes, I have tried with other boards and also delete all P-Flash.

Right now I am testing with the new Bootloader but I have problems with Erase Memory, I saw these values. 

I am using evaluation board (S32K116 EVB).

RGMAL_0-1628827546783.png

If I put a peak point I can see the answer, but in my GUI the slave does not answer me.

RGMAL_0-1628827085555.png

 

Thank you!

0 项奖励
回复
10,829 次查看
RGMAL
Contributor II

Hi,

okay, let me change this part and I will tell you if I have a positive response.

Thank you!

0 项奖励
回复