Unified Bootloader for S32K116_LIN - Issue in the process UDS

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

Unified Bootloader for S32K116_LIN - Issue in the process UDS

Jump to solution
11,074 Views
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 Kudos
Reply
1 Solution
10,941 Views
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!

View solution in original post

0 Kudos
Reply
16 Replies
11,053 Views
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 Kudos
Reply
11,048 Views
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 Kudos
Reply
11,024 Views
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 Kudos
Reply
11,023 Views
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 Kudos
Reply
11,017 Views
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 Kudos
Reply
11,013 Views
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 Kudos
Reply
11,003 Views
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 Kudos
Reply
10,989 Views
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 Kudos
Reply
10,986 Views
RGMAL
Contributor II

Hello,

Attached the Flash Driver.

Thank you!

0 Kudos
Reply
10,991 Views
nxf10035
NXP Employee
NXP Employee

Hi,

   Please test the attached bootloader or upload your project.

0 Kudos
Reply
10,970 Views
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 Kudos
Reply
10,964 Views
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 Kudos
Reply
10,945 Views
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!

Tags (1)
0 Kudos
Reply
10,942 Views
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 Kudos
Reply
10,923 Views
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 Kudos
Reply
11,002 Views
RGMAL
Contributor II

Hi,

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

Thank you!

0 Kudos
Reply