The attached is a ASF Wizard generated project (no modifications yet) for the ATSAM3X8E processor.
There are all kinds of compile errors. At least one seems to stem to a difference between the file "sam3x8e.h" that is in the pack file
(C:\Program Files (x86)\Atmel\Studio\7.0\packs\atmel\SAM3X_DFP\1.0.50\include)
and the one that is in the project directory structure:
C:\Users\User 1\Documents\Atmel Studio\7.0\DDRE4MS\DDRE4MS-c\src\ASF\sam\utils\cmsis\sam3x\include
(why are these files duplicated?)
The file that is called is the pack file, and it is lacking one definition for the CHIP_FREQ_FWS codes, CHIP_FREQ_FWS_4:
#define CHIP_FREQ_FWS_0 (22500000UL) /**< \brief Maximum operating frequency when FWS is 0 */ #define CHIP_FREQ_FWS_1 (34000000UL) /**< \brief Maximum operating frequency when FWS is 1 */ #define CHIP_FREQ_FWS_2 (53000000UL) /**< \brief Maximum operating frequency when FWS is 2 */ #define CHIP_FREQ_FWS_3 (78000000UL) /**< \brief Maximum operating frequency when FWS is 3 */
as opposed to the CMSIS file:
#define CHIP_FREQ_FWS_0 (19000000UL) /**< \brief Maximum operating frequency when FWS is 0 */ #define CHIP_FREQ_FWS_1 (50000000UL) /**< \brief Maximum operating frequency when FWS is 1 */ #define CHIP_FREQ_FWS_2 (64000000UL) /**< \brief Maximum operating frequency when FWS is 2 */ #define CHIP_FREQ_FWS_3 (80000000UL) /**< \brief Maximum operating frequency when FWS is 3 */ #define CHIP_FREQ_FWS_4 (90000000UL) /**< \brief Maximum operating frequency when FWS is 4 */
And the values that are there are different. The missing definition causes the compile to fail.
Which one's right and how do I fix it?
(the pack is the latest version).