- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
Peripherhal UART
-
SDK 2.X
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The ota secure firmware upgrade sample uses wdog_restart. It works.