EmbedXcode

v64 Oct 5, 2016

Tags:
  1. v64

    v64 TrainBoard Member

    21
    19
    3
    I can build and run DCCpp_UNO using Xcode (with the Arduino embed extension) for a UNO board

    I can also build/run it using the Arduino IDE on a mega2560

    I cannot compile it in Xcode for a mega2560

    I get the failure

    ARDUINO_AVR_MEGA2560 is undefined and leads to (in Dccpp_Uno.h)

    #error CANNOT COMPILE - DCC++ ONLY WORKS WITH AN ARDUINO UNO OR AN ARDUINO MEGA 1280/2560

    I have set up targets in the Xcode options - as I had for the Uno, but I cant find where the above option is set in dccpp_uno.h

    I have tried setting it (and overriding the failure) but I then get further failures setting up the main and programming pins.

    Does anyone use Xcode to programme Arduino?
     

Share This Page