-
Notifications
You must be signed in to change notification settings - Fork 197
Description
Hi everyone,
I'm working with a custom breakout board for ATSAMD21G18A chip. Unfortunately, the board pin mapping is not based on other products, and some of the pins on IC have been assigned different names from boards on the market.
For example, PA11 is assigned to D0, which is typical of other boards, too, but PA20 is mapped to D1 instead of PA10.
After a few days of trying and error and researching, I have not found any documentation regarding the UF2 bootloader, and it pin mapping system. I can see the board_config.h is used for the SAMD51 based board to define this configuration, but I have not been able to replicate that for ATSAMD21G18A-A board_config.h file as it won't compile.
I have also tried adding the following, hoping it may work, which did not,
#define LED_PIN PIN_PA17 #define PIN_D0 PIN_PA11 --Me trying to add config #define PIN_D1 PIN_PA20 --Me trying to add config #define LED_TX_PIN PIN_PA27 #define LED_RX_PIN PIN_PB03
Based on my understanding from my research Arduino has a variant.h file that this configuration can be defined, but I have not found something similar on the repository yet.
Any help or even showing the right direction would be highly appreciated.
Thanks.
Alex