{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/arduino-builder/issues/18","labels_url":"https://api.github.com/repos/arduino/arduino-builder/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/arduino/arduino-builder/issues/18/comments","events_url":"https://api.github.com/repos/arduino/arduino-builder/issues/18/events","html_url":"https://github.com/arduino/arduino-builder/issues/18","id":108137234,"number":18,"title":"USBCON not definied with a different boards.txt","user":{"login":"NicoHood","id":6888294,"avatar_url":"https://avatars.githubusercontent.com/u/6888294?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoHood","html_url":"https://github.com/NicoHood","followers_url":"https://api.github.com/users/NicoHood/followers","following_url":"https://api.github.com/users/NicoHood/following{/other_user}","gists_url":"https://api.github.com/users/NicoHood/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoHood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoHood/subscriptions","organizations_url":"https://api.github.com/users/NicoHood/orgs","repos_url":"https://api.github.com/users/NicoHood/repos","events_url":"https://api.github.com/users/NicoHood/events{/privacy}","received_events_url":"https://api.github.com/users/NicoHood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ffissore","id":510465,"avatar_url":"https://avatars.githubusercontent.com/u/510465?v=3","gravatar_id":"","url":"https://api.github.com/users/ffissore","html_url":"https://github.com/ffissore","followers_url":"https://api.github.com/users/ffissore/followers","following_url":"https://api.github.com/users/ffissore/following{/other_user}","gists_url":"https://api.github.com/users/ffissore/gists{/gist_id}","starred_url":"https://api.github.com/users/ffissore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffissore/subscriptions","organizations_url":"https://api.github.com/users/ffissore/orgs","repos_url":"https://api.github.com/users/ffissore/repos","events_url":"https://api.github.com/users/ffissore/events{/privacy}","received_events_url":"https://api.github.com/users/ffissore/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-09-24T14:03:52Z","updated_at":"2015-09-25T08:56:15Z","closed_at":null,"body":"Using the board definitions for another board does not define USBCON and you get a compile error for the HID-Project:\r\nhttps://github.com/NicoHood/HID/tree/dev_2_4\r\nhttps://github.com/NicoHood/HoodLoader2\r\n\r\nThis also applies for 32u4 (mostly a copy of leonardo, just different upload speed).\r\n\r\nThis was tested without and with .a linkage!\r\n\r\nNote:\r\nThis also applies to the MCU type:\r\n`Arduino/sketchbook/libraries/PinChangeInterrupt/src/PinChangeInterruptBoards.h:97:2: error: #error PinChangeInterrupt library does not support this MCU.\r\n #error PinChangeInterrupt library does not support this MCU.`\r\n\r\nComparison:\r\n```\r\n\r\n\r\n\r\n\r\n\r\nBuild options changed, rebuilding all\r\n\"/Arduino/Arduino/build/linux/work/hardware/tools/avr/bin/avr-g++\" -w -x c++ -M -MG -MP -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_HOODLOADER2 -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER=\"Nico Hood\"' '-DUSB_PRODUCT=\"HoodLoader2 32u4\"' -DMAGIC_KEY_POS=(RAMEND-1) -DIO_MCU_RESET_PIN=4  \"/tmp/buildb84c392175987be7c846c2e342599d63.tmp/sketch/Remote_USB_MCU_2.ino.cpp\"\r\n\"/Arduino/Arduino/build/linux/work/hardware/tools/avr/bin/avr-g++\" -w -x c++ -M -MG -MP -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_HOODLOADER2 -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER=\"Nico Hood\"' '-DUSB_PRODUCT=\"HoodLoader2 32u4\"' -DMAGIC_KEY_POS=(RAMEND-1) -DIO_MCU_RESET_PIN=4 \"-I/Arduino/Arduino/build/linux/work/hardware/arduino/avr/cores/arduino\" \"-I/Arduino/Arduino/build/linux/work/hardware/arduino/avr/variants/leonardo\" \"-I/Arduino/sketchbook/libraries/HID-Project/src\" \"-I/Arduino/sketchbook/libraries/PinChangeInterrupt/src\" \"-I/Arduino/sketchbook/libraries/IRLremote/src\" \"-I/Arduino/sketchbook/libraries/FastLED\" \"/tmp/buildb84c392175987be7c846c2e342599d63.tmp/sketch/Remote_USB_MCU_2.ino.cpp\"\r\nIn file included from Remote_USB_MCU_2.ino:25:0:\r\n/Arduino/sketchbook/libraries/HID-Project/src/HID-Project.h:33:2: error: #error \"This is not an USB AVR or you use an old version of the IDE.\"\r\n #error \"This is not an USB AVR or you use an old version of the IDE.\"\r\n  ^\r\n\r\n\r\nBuild options changed, rebuilding all\r\n\"/Arduino/Arduino/build/linux/work/hardware/tools/avr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER=\"Unknown\"' '-DUSB_PRODUCT=\"Arduino Leonardo\"'  \"/tmp/buildb84c392175987be7c846c2e342599d63.tmp/sketch/Remote_USB_MCU_2.ino.cpp\"\r\n\"/Arduino/Arduino/build/linux/work/hardware/tools/avr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER=\"Unknown\"' '-DUSB_PRODUCT=\"Arduino Leonardo\"' \"-I/Arduino/Arduino/build/linux/work/hardware/arduino/avr/cores/arduino\" \"-I/Arduino/Arduino/build/linux/work/hardware/arduino/avr/variants/leonardo\" \"-I/Arduino/sketchbook/libraries/FastLED\" \"-I/Arduino/sketchbook/libraries/HID-Project/src\" \"-I/Arduino/sketchbook/libraries/PinChangeInterrupt/src\" \"-I/Arduino/sketchbook/libraries/IRLremote/src\" \"/tmp/buildb84c392175987be7c846c2e342599d63.tmp/sketch/Remote_USB_MCU_2.ino.cpp\"\r\n\"/Arduino/Arduino/build/linux/work/hardware/tools/avr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER=\"Unknown\"' '-DUSB_PRODUCT=\"Arduino Leonardo\"' \"-I/Arduino/Arduino/build/linux/work/hardware/arduino/avr/cores/arduino\" \"-I/Arduino/Arduino/build/linux/work/hardware/arduino/avr/variants/leonardo\" \"-I/Arduino/sketchbook/libraries/FastLED\" \"-I/Arduino/sketchbook/libraries/HID-Project/src\" \"-I/Arduino/sketchbook/libraries/PinChangeInterrupt/src\" \"-I/Arduino/sketchbook/libraries/IRLremote/src\" \"/tmp/buildb84c392175987be7c846c2e342599d63.tmp/sketch/Remote_USB_MCU_2.ino.cpp\"\r\n\"/Arduino/Arduino/build/linux/work/hardware/tools/avr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -M -MG -MP -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR  -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER=\"Unknown\"' '-DUSB_PRODUCT=\"Arduino Leonardo\"' \"-I/Arduino/Arduino/build/linux/work/hardware/arduino/avr/cores/arduino\" \"-I/Arduino/Arduino/build/linux/work/hardware/arduino/avr/variants/leonardo\" \"-I/Arduino/sketchbook/libraries/HID-Project/src\" \"-I/Arduino/sketchbook/libraries/FastLED\" \"-I/Arduino/sketchbook/libraries/PinChangeInterrupt/src\" \"-I/Arduino/sketchbook/libraries/IRLremote/src\" \"/tmp/buildb84c392175987be7c846c2e342599d63.tmp/sketch/Remote_USB_MCU_2.ino.cpp\"\r\n\r\n[...]\r\n\r\nSketch uses 14,458 bytes (50%) of program storage space. Maximum is 28,672 bytes.\r\nGlobal variables use 656 bytes (25%) of dynamic memory, leaving 1,904 bytes for local variables. Maximum is 2,560 bytes.\r\n```\r\n\r\nThis line is totally missed:\r\n`-c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics`"},"comment":{"url":"https://api.github.com/repos/arduino/arduino-builder/issues/comments/143164189","html_url":"https://github.com/arduino/arduino-builder/issues/18#issuecomment-143164189","issue_url":"https://api.github.com/repos/arduino/arduino-builder/issues/18","id":143164189,"user":{"login":"NicoHood","id":6888294,"avatar_url":"https://avatars.githubusercontent.com/u/6888294?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoHood","html_url":"https://github.com/NicoHood","followers_url":"https://api.github.com/users/NicoHood/followers","following_url":"https://api.github.com/users/NicoHood/following{/other_user}","gists_url":"https://api.github.com/users/NicoHood/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoHood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoHood/subscriptions","organizations_url":"https://api.github.com/users/NicoHood/orgs","repos_url":"https://api.github.com/users/NicoHood/repos","events_url":"https://api.github.com/users/NicoHood/events{/privacy}","received_events_url":"https://api.github.com/users/NicoHood/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T08:56:15Z","updated_at":"2015-09-25T08:56:15Z","body":"You need the dev version of HoodLoader2:\r\nhttps://github.com/NicoHood/HoodLoader2/tree/fast-usbserial\r\nOr the most bleeding edge (which will be leonardo compatible again)\r\nhttps://github.com/NicoHood/HoodLoader2/tree/dev_205"}}