ATWINC1500 OTA Firmware Upgrade

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm attempting to update the WINC1500 on a  custom board.  Currently the firmware is 19.3.0 and I started with the sample application for OTA from Microchip Studio for SAMD21 (which I don't have a connection available).

 

-- WINC1500 OTA firmware upgrade example --
-- SAMD21_XPLAINED_PRO --
-- Compiled: Apr 12 2021 14:11:38 --
(APP)(INFO)Chip ID 1503a0
(APP)(INFO)DriverVerInfo: 0x13301361
(APP)(INFO)Firmware ver   : 0.0.0 Svnrev 0
(APP)(INFO)Firmware Build  Time
(APP)(INFO)Firmware Min driver ver : 0.0.0
(APP)(INFO)Driver ver: 19.6.1
(APP)(INFO)Driver built at Apr 12 2021  14:11:28
main: m2m_wifi_init call error!(-12)

 

I realize it's probably the missing SAMD21 causing this - is it possible to circumvent this somehow and proceed with the update?

 

traced error -12 to nm_get_firmware_full_info() which calls nm_read_reg_with_ret() and returns 0 so fails.

 

 

The failed stack looks like this.

> WINC1500_OTA_FIRMWARE_UPGRADE_EXAMPLE1.elf! nm_read_reg_with_ret (uint32 u32Addr, uint32 u32Addr@entry, uint32 * pu32RetVal, uint32 * pu32RetVal@entry) Line: 151
  WINC1500_OTA_FIRMWARE_UPGRADE_EXAMPLE1.elf! nm_get_firmware_full_info (tstrM2mRev * pstrRev, tstrM2mRev * pstrRev@entry) Line: 106
  WINC1500_OTA_FIRMWARE_UPGRADE_EXAMPLE1.elf! m2m_wifi_init_start (tstrWifiInitParam * pWifiInitParam, tstrWifiInitParam * pWifiInitParam@entry) Line: 471
  WINC1500_OTA_FIRMWARE_UPGRADE_EXAMPLE1.elf! m2m_wifi_init (tstrWifiInitParam * pWifiInitParam, tstrWifiInitParam * pWifiInitParam@entry) Line: 500
  WINC1500_OTA_FIRMWARE_UPGRADE_EXAMPLE1.elf! main Line: 263

 

Louis F. Naber

Last Edited: Mon. Apr 12, 2021 - 09:37 PM