Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core compilation error - 1.6.18-beta-b0 #20

Open
obdevel opened this issue Jun 15, 2018 · 3 comments
Open

Core compilation error - 1.6.18-beta-b0 #20

obdevel opened this issue Jun 15, 2018 · 3 comments
Assignees
Labels

Comments

@obdevel
Copy link

obdevel commented Jun 15, 2018

Just trying the Blink sketch to test my installation and I get core compilation errors. Config is:

screen shot 2018-06-15 at 15 52 03

Errors:

...
"/Users/xx/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m0plus -mthumb -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD "-I/Users/xx/Library/Arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/Users/xx/Library/Arduino15/packages/MattairTech_Arduino/tools/CMSIS-Atmel/1.0.0-mattairtech-2/CMSIS/Device/ATMEL/" -DCLOCKCONFIG_32768HZ_CRYSTAL -DUSB_DISABLED -DONE_UART -DONE_WIRE -DONE_SPI -D__8KB_BOOTLOADER__ -D__SAMC21G18A__  "-I/Users/xx/Library/Arduino15/packages/MattairTech_Arduino/hardware/samd/1.6.18-beta-b0/cores/arduino" "-I/Users/xx/Library/Arduino15/packages/MattairTech_Arduino/hardware/samd/1.6.18-beta-b0/variants/Xeno_Mini" "/Users/xx/Library/Arduino15/packages/MattairTech_Arduino/hardware/samd/1.6.18-beta-b0/cores/arduino/wiring_analog.c" -o "/var/folders/03/s3pv8qk91w78m4_st_nbxl5m0000gn/T/arduino_build_389544/core/wiring_analog.c.o"

/Users/xx/Library/Arduino15/packages/MattairTech_Arduino/hardware/samd/1.6.18-beta-b0/cores/arduino/wiring_analog.c: In function 'analogReference':
/Users/xx/Library/Arduino15/packages/MattairTech_Arduino/hardware/samd/1.6.18-beta-b0/cores/arduino/wiring_analog.c:234:22: error: 'AR_INTREF_1V0' undeclared (first use in this function)
   } else if (mode >= AR_INTREF_1V0) {  // Values starting at AR_INTREF_1V0 are used for the Supply Controller reference (AR_INTREF)
                      ^
/Users/xx/Library/Arduino15/packages/MattairTech_Arduino/hardware/samd/1.6.18-beta-b0/cores/arduino/wiring_analog.c:234:22: note: each undeclared identifier is reported only once for each function it appears in
exit status 1
Error compiling for board MattairTech Xeno Mini.
@mattairtech
Copy link
Owner

This works for me. I suspect this has to do with your previous installation problems. Do you still have this problem after switching to the new json?

@mattairtech mattairtech self-assigned this Jun 27, 2018
@glennsky
Copy link

The SAMC21 doesn't seem to have a AR_INTREF_1V0 defined (AR_INTREF_1V024 is defined) --- so I added this after line 87 in https://github.com/mattairtech/ArduinoCore-samd/blob/master/cores/arduino/wiring_analog.h

AR_INTREF_1V0 = 6,

This gets it to compile, though not sure if the analog would work as expected.

@togglebit
Copy link

FWIW I had to do the same the same thing with Beta-b1. Compiles, not tested analog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants