Unified Bootloader for S32K116_LIN - Issue in the process UDS

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Unified Bootloader for S32K116_LIN - Issue in the process UDS

ソリューションへジャンプ
11,472件の閲覧回数
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 解決策
11,339件の閲覧回数
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 返答(返信)
11,451件の閲覧回数
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 件の賞賛
返信
11,446件の閲覧回数
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 件の賞賛
返信
11,422件の閲覧回数
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 件の賞賛
返信
11,421件の閲覧回数
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 件の賞賛
返信
11,415件の閲覧回数
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 件の賞賛
返信
11,411件の閲覧回数
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 件の賞賛
返信
11,401件の閲覧回数
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 件の賞賛
返信
11,387件の閲覧回数
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 件の賞賛
返信
11,384件の閲覧回数
RGMAL
Contributor II

Hello,

Attached the Flash Driver.

Thank you!

0 件の賞賛
返信
11,389件の閲覧回数
nxf10035
NXP Employee
NXP Employee

Hi,

   Please test the attached bootloader or upload your project.

0 件の賞賛
返信
11,368件の閲覧回数
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 件の賞賛
返信
11,362件の閲覧回数
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 件の賞賛
返信
11,343件の閲覧回数
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 件の賞賛
返信
11,340件の閲覧回数
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 件の賞賛
返信
11,321件の閲覧回数
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 件の賞賛
返信
11,400件の閲覧回数
RGMAL
Contributor II

Hi,

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

Thank you!

0 件の賞賛
返信