Giter Site home page Giter Site logo

Comments (6)

ianfixes avatar ianfixes commented on August 23, 2024 1

I see a passing build 🎉 https://travis-ci.com/scls19fr/mwe_arduino_ci/builds/97377931

from arduino_ci.

ianfixes avatar ianfixes commented on August 23, 2024

It looks like I added a definition for this board, but it's incomplete -- it's missing the compiler flags that are needed for this compilation target. e.g. here's what the definition for leonardo looks like in the default yaml file:

  leonardo:
    board: arduino:avr:leonardo
    package: arduino:avr
    gcc:
      features:
      defines:
        - __AVR_ATmega32U4__
      warnings:
      flags:

That __AVR_ATmega32U4__ is the crucial value, and I don't know what it is (or if there are several, what they all should be).

It appears that not much more is known now than when I first went looking; here are a bunch of search results that just turned up people with the same problem as me:

This is a topic I am entirely unqualified to answer; all the existing stuff in the default YAML file came from values I found in other documentation or source files.

If you want to experiment with it (perhaps just using __AVR_ATmega2560__, shown in this gist , I'd copy the following section into your .arduino-ci.yml file and let me know if it works:

  mega2560:
    board: arduino:avr:mega:cpu=atmega2560
    package: arduino:avr
    gcc:
      features:
      defines:
        - __AVR_ATmega2560__
      warnings:
      flags:

from arduino_ci.

per1234 avatar per1234 commented on August 23, 2024

Here's a list of all the MCU definition macros for AVR:
https://www.microchip.com/webdoc/avrlibcreferencemanual/using_tools_1using_avr_gcc_mach_opt.html
These are widely used in preprocessor conditionals for part-specific code.

from arduino_ci.

scls19fr avatar scls19fr commented on August 23, 2024

Here is my .arduino-ci.yml https://github.com/scls19fr/mwe_arduino_ci/blob/master/.arduino-ci.yml
and build status on Travis https://travis-ci.com/scls19fr/mwe_arduino_ci/builds/97342356

from arduino_ci.

ianfixes avatar ianfixes commented on August 23, 2024

Looks like you're missing the toplevel platforms: section. It should look like this:

platforms:
  mega2560:
    board: arduino:avr:mega:cpu=atmega2560
    package: arduino:avr
    gcc:
      defines:
        - __AVR_ATmega2560__

from arduino_ci.

ianfixes avatar ianfixes commented on August 23, 2024

@per1234 that's exactly what I'm looking for! If you have a list of all known Arduino platforms, I could really use your help on #89.

from arduino_ci.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.