Hi Alex,
We got the bootloader from Atmel for the SAMR21 which we updated to use the SAMD21.
Here is what we observed:
-we programmed our nodes using image V1.0
-after some time, we perform an OTAU to update to image V1.1 which success 100% of the time (tested in a network of 107, 149, 157 and 242 nodes)
- if we need to perform another OTAU in a section that was 100% success the first time, this succeeds only at a 15% to 50% rate. Even if we use image V1.1 or V1.0
-all OTAU attempts after that fails
The units are fully operational after an OTA failure. The nodes that updated successfully and those that did not updated seems to be fully operational and communicating with the coordinator correctly.
Here are the setting in the OTA server:
#define OTA_MAX_BLOCK_SIZE 64 //(Page alignment limit in D21 flash)
#define OTA_RESPONSE_TIMEOUT 60000 //Timeout to move to next client when sending unicast messages.
#define MAX_PROGRAM_SIZE 128512ul
#define FLASH_PAGE_SIZE 64
#define OTA_MAX_RETRIES 5
#ifdef BROADCAST_OTAU
#define OTA_BROADCAST_FRAME_SPACING 9000
#define OTA_UINCAST_FRAME_SPACING 9000
#define MAX_32_BIT_POSITION 32
#define OTA_BLOCK_RETRY_SPACING 9000
#define OTA_QUERY_RESP_TIMEOUT 11000
#define BROADCAST_ADDR 0xFFFF
#else
#define OTA_FRAME_SPACING 100
#define OTA_BROADCAST_FRAME_SPACING OTA_FRAME_SPACING
#endif
What we see in the serial output is that queries are being sent to the nodes but no replay is received from the nodes. This is an example of what we see during the OTAU:
------ OTA_QUERY_REQ_SENT_STATUS Client Addr: 0x0af2 Status: Success
------ OTA_QUERY_REQ_SENT_STATUS Client Addr: 0x0291 Status: Success
------ OTA_QUERY_REQ_SENT_STATUS Client Addr: 0x21bd Status: Success
------ OTA_QUERY_REQ_SENT_STATUS Client Addr: 0x71e6 Status: Success
------ OTA_QUERY_REQ_SENT_STATUS Client Addr: 0x46b7 Status: Success
------ OTA_BLOCK_RETX_SENT_STATUS Client Addr: 0x46b7 Status: Success
------ OTA_QUERY_REQ_SENT_STATUS Client Addr: 0x46b7 Status: Success
------ OTA_SWITCH_REQ_SENT_STATUS Client Addr: 0x46b7 Status: Success
------ OTA_QUERY_REQ_SENT_STATUS Client Addr: 0x2fbe Status: Success
------ OTA_QUERY_REQ_SENT_STATUS Client Addr: 0x76a4 Status: Success
------ OTA_QUERY_REQ_SENT_STATUS Client Addr: 0x60bb Status: Success
------ OTA_QUERY_REQ_SENT_STATUS Client Addr: 0x29b5 Status: Success
------ OTA_QUERY_REQ_SENT_STATUS Client Addr: 0x2083 Status: Success
------ OTA_QUERY_REQ_SENT_STATUS Client Addr: 0x7e9d Status: Success
------ OTA_QUERY_REQ_SENT_STATUS Client Addr: 0x0428 Status: Success
------ OTA_QUERY_REQ_SENT_STATUS Client Addr: 0x2da2 Status: Success
------ OTA_QUERY_REQ_SENT_STATUS Client Addr: 0x5fe8 Status: Success
------ OTA_QUERY_REQ_SENT_STATUS Client Addr: 0x0b7a Status: Success
Thanks,
gc_lead