I am getting compiler errors with a new empty ASF project. Simply adding the SERCOM I2C driver (master/callback) results in a compiler errors:
Error 'PINMUX_PA00D_SERCOM1_PAD0' undeclared (first use in this function) Test C:\Test\src\ASF\sam0\drivers\sercom\sercom_pinout.h 579
Error 'PINMUX_PA01D_SERCOM1_PAD1' undeclared (first use in this function) Test C:\Test\src\ASF\sam0\drivers\sercom\sercom_pinout.h 580
PINMUX_PA00D_SERCOM1_PAD0 is not defined in the samd21g17l.h file, it is there for the 'd' variant. This only seems to happen with the "L" variant. "D" compiles without errors.
This issue can be replicated by creating an ASF board project and adding SERCOM I2C Master (callback) and compiling.
The error occurs with ASF V3.47 and 3.50.0. I am using Microchip Studio V7.0.2542.