We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi All,
I am trying to use my SAMD21 Xplained Pro with Keil uVision, but I am getting the following errors (see screen shot). I've tried everything I can think of to no avail. Am I missing something?
Build started: Project: blinky*** Using Compiler 'V6.16', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'Build target 'Target 1'blinky.c(4): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/Microchip/SAMD21_DFP/3.4.116/samd21a/include\sam.h(36): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/Microchip/SAMD21_DFP/3.4.116/samd21a/include/samd21j18a.h(258): warning: In file included from...C:/Users/bayca/AppData/Local/Arm/Packs/Microchip/SAMD21_DFP/3.4.116/samd21a/include/component/sercom.h(1721): warning: padding size of 'sercom_i2cm_registers_t' with 3 bytes to alignment boundary [-Wpadded]typedef struct ^blinky.c(9): error: use of undeclared identifier 'REG_PORT_DIR1'REG_PORT_DIR1 |= 0x40000000; /* make PB30 output */^blinky.c(12): error: use of undeclared identifier 'REG_PORT_OUT1'REG_PORT_OUT1 &= ~0x40000000; /* turn on LED0 */^blinky.c(14): error: use of undeclared identifier 'REG_PORT_OUT1'REG_PORT_OUT1 |= 0x40000000; /* turn off LED0 */^1 warning and 3 errors generated.compiling blinky.c...".\Objects\blinky.axf" - 3 Error(s), 1 Warning(s).Target not created.Build Time Elapsed: 00:00:00