Hi all,
Thought it may be interesting/useful to post this on here...
We are currently working with the ATSAMC21N17A device, and have noticed errors in the DFP headers for this device. In particular, the pin assignments in samc21n17a.h.
Located in C:\Program Files (x86)\Atmel\Studio\7.0\packs\atmel\SAMC21_DFP\1.2.176\samc21n\include\pio
All of the device pin assignments are incorrect, for example PIN_PA10 on the device is pin 40... but the DFP PIO headers are incorrect.
#ifndef _SAMC21N17A_PIO_ #define _SAMC21N17A_PIO_ #define PIN_PA00 0 /**< \brief Pin Number for PA00 */ #define PORT_PA00 (_UL_(1) << 0) /**< \brief PORT Mask for PA00 */ #define PIN_PA01 1 /**< \brief Pin Number for PA01 */ #define PORT_PA01 (_UL_(1) << 1) /**< \brief PORT Mask for PA01 */ #define PIN_PA02 2 /**< \brief Pin Number for PA02 */ #define PORT_PA02 (_UL_(1) << 2) /**< \brief PORT Mask for PA02 */ #define PIN_PA03 3 /**< \brief Pin Number for PA03 */ #define PORT_PA03 (_UL_(1) << 3) /**< \brief PORT Mask for PA03 */ #define PIN_PA04 4 /**< \brief Pin Number for PA04 */ #define PORT_PA04 (_UL_(1) << 4) /**< \brief PORT Mask for PA04 */ #define PIN_PA05 5 /**< \brief Pin Number for PA05 */ #define PORT_PA05 (_UL_(1) << 5) /**< \brief PORT Mask for PA05 */ #define PIN_PA06 6 /**< \brief Pin Number for PA06 */ #define PORT_PA06 (_UL_(1) << 6) /**< \brief PORT Mask for PA06 */ #define PIN_PA07 7 /**< \brief Pin Number for PA07 */ #define PORT_PA07 (_UL_(1) << 7) /**< \brief PORT Mask for PA07 */ #define PIN_PA08 8 /**< \brief Pin Number for PA08 */ #define PORT_PA08 (_UL_(1) << 8) /**< \brief PORT Mask for PA08 */ #define PIN_PA09 9 /**< \brief Pin Number for PA09 */ #define PORT_PA09 (_UL_(1) << 9) /**< \brief PORT Mask for PA09 */ #define PIN_PA10 10 /**< \brief Pin Number for PA10 */ #define PORT_PA10 (_UL_(1) << 10) /**< \brief PORT Mask for PA10 */ #define PIN_PA11 11 /**< \brief Pin Number for PA11 */ #define PORT_PA11 (_UL_(1) << 11) /**< \brief PORT Mask for PA11 */ #define PIN_PA12 12 /**< \brief Pin Number for PA12 */ #define PORT_PA12 (_UL_(1) << 12) /**< \brief PORT Mask for PA12 */
I've raised a support ticket with Microchip to see if they are aware/if there is a DFP update coming. Has anybody else come across this, or similar before?
On the other hand, maybe I've misunderstood the PIO header... after all, the header appears not to list pins all the way up to 100.