cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Smart Bluetooth

Anonymous
Not applicable

I've noticed that if I try to upload a bigger image (~25KB) then uart_firmware_upgrade code fails on crc calculation stage, when calling ws_upgrade_verify().

Seems this is related to some internal timers which don't allow you to stay in interrupt handler code (ws_upgrade_uart_interrupt_callback() in this case) for more than 3-4 seconds.

Did anybody experience the same problem?

Is there any workaround or fix for this?

I'm using WICED Smart SDK 2.2

0 Likes
Reply
1 Solution
Employee

I am guessing is that it take too long to read downloaded image during verification so watch dog timer triggers.  In the ws_upgrade_verify in the loop where image is read add wdog_restart().  Hope it helps.

View solution in original post

0 Likes
Reply
3 Replies
Employee

I am guessing is that it take too long to read downloaded image during verification so watch dog timer triggers.  In the ws_upgrade_verify in the loop where image is read add wdog_restart().  Hope it helps.

View solution in original post

0 Likes
Reply
Anonymous
Not applicable

Thanks, it helped!

I suspected that it was watchdog but I tried to use bleappfwu_restartWatchdog, I didn't know of wdog_restart.

I wonder now what bleappfwu_restartWatchdog is for?

0 Likes
Reply
Employee

The ota secure firmware upgrade sample uses wdog_restart. It works.

0 Likes
Reply