diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-11-27 14:33:20 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-11-27 14:33:20 -0500 |
commit | 73e84abaff7759cac0f40b52d5553406c1395e76 (patch) | |
tree | f745b3e47548b0544241f53484cda4e041a6141a | |
parent | ef2c7cb3632f38041099e26752e9207b18fb950f (diff) | |
download | kutter-73e84abaff7759cac0f40b52d5553406c1395e76.tar.gz kutter-73e84abaff7759cac0f40b52d5553406c1395e76.tar.xz kutter-73e84abaff7759cac0f40b52d5553406c1395e76.zip |
atsam: Fix typo causing chipid to not be fully read
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | src/atsam/chipid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/atsam/chipid.c b/src/atsam/chipid.c index b3e58983..b4ab289c 100644 --- a/src/atsam/chipid.c +++ b/src/atsam/chipid.c @@ -46,8 +46,8 @@ read_chip_id(uint32_t *id) // Copy the id id[0] = *(uint32_t*)(IFLASH0_ADDR + 0x00); id[1] = *(uint32_t*)(IFLASH0_ADDR + 0x04); - id[1] = *(uint32_t*)(IFLASH0_ADDR + 0x08); - id[1] = *(uint32_t*)(IFLASH0_ADDR + 0x0c); + id[2] = *(uint32_t*)(IFLASH0_ADDR + 0x08); + id[3] = *(uint32_t*)(IFLASH0_ADDR + 0x0c); // Send the SPUI command EFC0->EEFC_FCR = EEFC_FCR_FKEY_PASSWD | EEFC_FCR_FCMD_SPUI; |