Fixed SAM3X8C large file flashing.

The datasheet specifies the EEFC_BASE(0) is at `0x400E0A00` and EEFC_BASE(1) is at `0x400E0C00` which means they're spaced 0x200 bytes apart rather than 0x400.
This commit is contained in:
Simon Rasmussen 2019-07-17 14:23:00 +02:00 committed by UweBonnes
parent 02b2fdb2ae
commit 5a7ffe7a40
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ const struct command_s sam3x_cmd_list[] = {
/* Enhanced Embedded Flash Controller (EEFC) Register Map */
#define SAM3N_EEFC_BASE 0x400E0A00
#define SAM3X_EEFC_BASE(x) (0x400E0A00+((x)*0x400))
#define SAM3X_EEFC_BASE(x) (0x400E0A00+((x)*0x200))
#define SAM3U_EEFC_BASE(x) (0x400E0800+((x)*0x200))
#define SAM4S_EEFC_BASE(x) (0x400E0A00+((x)*0x200))
#define EEFC_FMR(base) ((base)+0x00)