Number of lock regions on the SAM4E8E

Discussion around product based on ARM Cortex M4 core.

Moderators: nferre, ncollot

boofooz
Contact:
Location: Auckland, New Zealand
Posts: 14
Joined: Mon Jun 04, 2007 6:57 pm

Number of lock regions on the SAM4E8E

Wed Aug 13, 2014 11:58 pm

The datasheet and the sam4e8e.h include file from the Atmel Software Framework both state the number of lock regions is 128 and the size of the lock regions is 8 Kbytes which corresponds to 1Mbyte of flash memory. However this IC has only 512 Kbytes so one of these numbers is wrong. Either there are only 64 lock regions or they are only 4K. Does anyone know which number is correct?

SAM-BA's behaviour when it asks if it should lock regions after uploading a firmware file would indicate that they are 8K.
jharley
Posts: 238
Joined: Thu Dec 06, 2012 6:40 am

Re: Number of lock regions on the SAM4E8E

Thu Aug 14, 2014 5:47 am

64 x 8K for the SAM4E8(E/C)
128 x 8K for the SAM4E16(E/C)

You can issue the GETD command in EEFC_FCR to get the flash organization. See 21.4.3.1 in the data sheet (11157D, 12 Jun 14).
boofooz
Contact:
Location: Auckland, New Zealand
Posts: 14
Joined: Mon Jun 04, 2007 6:57 pm

Re: Number of lock regions on the SAM4E8E

Thu Aug 14, 2014 6:04 am

Thanks for the information.

Do you know how we can get Atmel to correct the IFLASH_NB_OF_LOCK_BITS definition in sam4e8e.h? (I also have another correction, which is that the "PIO_PD6A_GRX0" definition in pio\sam4e8e.h should actually be called "PIO_PD6A_GRX1".)
jharley
Posts: 238
Joined: Thu Dec 06, 2012 6:40 am

Re: Number of lock regions on the SAM4E8E

Thu Aug 14, 2014 7:09 am

The ASF buglist is located here: http://asf.atmel.com/bugzilla/

Return to “SAM4 Cortex-M4 MCU”

Who is online

Users browsing this forum: No registered users and 3 guests