From d6d3d9d1bd8da26cf195099a0c555b23e584f44e Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 8 Jan 2012 15:12:54 +0100 Subject: DFU: Implement SAM3U Flash Programming Errata 46.2.1.3 --- usb-dfu-experiment/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usb-dfu-experiment') diff --git a/usb-dfu-experiment/main.c b/usb-dfu-experiment/main.c index 31c2c4f..12de844 100644 --- a/usb-dfu-experiment/main.c +++ b/usb-dfu-experiment/main.c @@ -366,7 +366,11 @@ int USBDFU_handle_dnload(uint8_t altif, unsigned int offset, switch (altif) { case ALTIF_APP: case ALTIF_FPGA: + /* SAM3U Errata 46.2.1.3 */ + SetFlashWaitState(6); rc = FLASHD_Write(addr, buf, len); + /* SAM3U Errata 46.2.1.3 */ + SetFlashWaitState(2); if (rc != 0) { TRACE_ERROR("Error during write of DFU partition %u\n\r", altif); dfu.status = DFU_STATUS_errPROG; -- cgit v1.2.3