Robot-Will / Stino

A Sublime Text Plugin for Arduino
Other
1.58k stars 249 forks source link

Code does not compile for Teensy 2 #231

Closed kaimac1 closed 7 years ago

kaimac1 commented 9 years ago

I get the following error. Other boards including Teensy 3 seem to work.

[Stino - Start building "Blink"...] [ 4%] Creating C:\Users\XXX\AppData\Local\Temp\Stino_build\Blink\core_teensy\keylayouts.c.o... unknown MCU '{build.cpu}' specified

Known MCU names: avr2 at90s2313 at90s2323 at90s2333 at90s2343 attiny22 [etc.] C:/XXX/arduino/hardware/teensy/cores/teensy/keylayouts.c:1: error: MCU '{build.cpu}' supported for assembler only [Stino - Exit with error code 1.]

kaimac1 commented 9 years ago

Fixed by adding teensy2.build.cpu=atmega32 to the teensy boards.txt file. However it wasn't there by default on my machine.

Now I get the following error: [Stino - Start building "Blink"...] [ 4%] Creating C:\Users\XXX\AppData\Local\Temp\Stino_build\Blink\core_teensy\keylayouts.c.o... [ 9%] Creating C:\Users\XXX\AppData\Local\Temp\Stino_build\Blink\core_teensy\malloc.c.o... [ 14%] Creating C:\Users\XXX\AppData\Local\Temp\Stino_build\Blink\core_teensy\pins_teensy.c.o... In file included from C:/XXX/arduino/hardware/teensy/cores/teensy/wiring.h:33, from C:/XXX/arduino/hardware/teensy/cores/teensy/wiring_private.h:33, from C:/XXX/arduino/hardware/teensy/cores/teensy/pins_teensy.c:28: C:/XXX/arduino/hardware/teensy/cores/teensy/core_pins.h: In function 'digitalWrite': C:/XXX/arduino/hardware/teensy/cores/teensy/core_pins.h:831: error: 'CORE_PIN0_PORTREG' undeclared (first use in this function) C:/XXX/arduino/hardware/teensy/cores/teensy/core_pins.h:831: error: (Each undeclared identifier is reported only once C:/XXX/arduino/hardware/teensy/cores/teensy/core_pins.h:831: error: for each function it appears in.) C:/XXX/arduino/hardware/teensy/cores/teensy/core_pins.h:831: error: 'CORE_PIN0_BITMASK' undeclared (first use in this function) [etc.]