Open larry-xmos opened 7 years ago
@larry-xmos - thanks for the error report. Patches and pull-requests welcomed!
@andrew-elder, @larry-xmos: We experienced the same issue and had resolved it in our internal repository. I'll work to get the fix pushed upstream in a day or two.
Firmware upgrade fails in erase step if end station is taking some time to erase its non-volatile memory:
cmd_line::cmd_firmware_upgrade
does a START_OPERATION command and callsget_last_resp_status
once to get status. This seems to simply wait for the first response packet to arrive and return its status field.My XMOS end station takes about 3 seconds to erase its flash and will send IN_PROGRESS responses every 120ms and finally a SUCCESS at the end (see
process_aem_cmd_start_abort_operation
in https://github.com/xmos/lib_tsn/blob/master/lib_tsn/src/1722_1/avb_1722_1_aecp.c).Also, I noticed
cmd_firmware_upgrade
uses hardcoded 3 forAEM_MEMORY_OBJECT_OPERATION_ERASE
.