Firmware update failed due to input frame count or file size

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

Firmware update failed due to input frame count or file size

1,101 Views
SakshiM
Contributor I

Hello,

   We have successfully implemented a firmware update using an Android app, but we observed one issue. If the file size is more than 350 KB or the data frame count exceeds 4000, the firmware update process stops at 99%, indicating that the last 8 frames are not accepted, resulting in a failed update process.

We are using LPC5528JBD64.

I have used the below commands for the firmware update

1. Step 1- Send Ping command

2. Step 2 - After getting the response from the ping command, the next command is flash erase region

3. Step 3 - After getting a response of flash erase, we sent the write command

4. Step 4 - After getting a response from the write command, we have to send the write data frame (total frame count: 4020)

    - Write data command send in the loop after getting first frame command response till frame count not reached.

   In my case if the total no. of fame is 3984 then it's working fine but if the frame count is 4020 then not complete process. We are sending 32 bytes of data in a single frame.

5. Step 5 - After successfully completing of write data for all frames, we have sent a reset command.

 

The same file we have tried with BLHost. It's working fine but not working using the Android app.

 

Labels (1)
0 Kudos
Reply
2 Replies

1,026 Views
sakshimodhe
Contributor I

Yes . It working fine now. Thanks for the quick reply.

0 Kudos
Reply

1,035 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

You said that if you use blhost, it is okay, if you use your own tools based on Android app, it is not. Pls compare the difference.

Anyway, there is blhost source code, I attach it, you can refer to it

 

Hope it can help you

BR

XiangJun Rong

 

0 Kudos
Reply