Flashing Bootloader in Duet3 Expansion
-
While updating my Expansion board(Duet3-3HC V1.0) somehow boot-loader got corrupted, So was trying to flash boot-loader using Atmel-studio with Atmel-ICE and following Updating_the_bootloader_on_Duet_3_expansion_and_tool_boards this link. But getting errors while programming the bootloader file.
Error is Failed to write segment at 0x0 to target for memorytypeTimestamp: 2021-04-15 14:06:38.728 Severity: ERROR ComponentId: 20100 StatusCode: 131103 ModuleName: TCF command: Modules:writeToMemory failed. Failed to write segment at 0x0 to target for memorytype base
AC_BIAS0 = 0x01 ADC0_BIASCOMP = 0x07 ADC0_BIASREFBUF = 0x07 ADC0_BIASR2R = 0x07 ADC1_BIASCOMP = 0x07 ADC1_BIASREFBUF = 0x07 ADC1_BIASR2R = 0x07 USB_TRANSN = 0x09 USB_TRANSP = 0x19 USB_TRIM = 0x06 ROOM_TEMP_VAL_INT = 0x1D ROOM_TEMP_VAL_DEC = 0x08 HOT_TEMP_VAL_INT = 0x69 HOT_TEMP_VAL_DEC = 0x00 ROOM_INT1V_VAL = 0x01 HOT_INT1V_VAL = 0x02 ROOM_ADC_VAL_PTAT = 0xAD8 HOT_ADC_VAL_PTAT = 0xD5D ROOM_ADC_VAL_CTAT = 0xB71 HOT_ADC_VAL_CTAT = 0x954 BOD33_DIS = [X] BOD33USERLEVEL = 0x1C BOD33_ACTION = RESET BOD33_HYST = 0x02 NVMCTRL_BOOTPROT = 0 NVMCTRL_SEESBLK = 0x01 NVMCTRL_SEEPSZ = 0x03 RAMECC_ECCDIS = [X] WDT_ENABLE = [ ] WDT_ALWAYSON = [ ] WDT_PER = CYC16384 WDT_WINDOW = CYC16384 WDT_EWOFFSET = CYC16384 WDT_WEN = [ ] NVMCTRL_REGION_LOCKS = 0xFFFFFFFF SW0_WORD_0 = 0x1FF07FD (valid) SW0_WORD_1 = 0x1B29 (valid) TEMP_LOG_WORD_0 = 0x106981D (valid) TEMP_LOG_WORD_1 = 0xD5DAD802 (valid) TEMP_LOG_WORD_2 = 0xFF954B71 (valid) USER_WORD_0 = 0xFE9A9239 (valid) USER_WORD_1 = 0xAEECFFB1 (valid) USER_WORD_2 = 0xFFFFFFFF (valid)
Is the current values in fuse.
Tried to read datasheet but could not understood what's wrong in this.
As NVMCTRL_BOOTPROT is 0. It suppose to flash bootloader file. Also Tried flashing
Duet3Bootloader-SAME5x.bin and Duet3Bootloader-SAME5x.elf but getting same error.
@dc42 @chrishamm -
Have you updated the ICE to latest firmware since you received it?
You may also need to update Atmel Studio.
-
@dc42 It worked after updating ICE's firmware. Found out that atmel-ice firmware version was same. And again tried to flash bootloader it got failed with same error. Then again updated the atmel-ice firmware it worked. There is problem with ICE. Thanks