Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. Adding new board definitions to arduino 1.6

Adding new board definitions to arduino 1.6

Scheduled Pinned Locked Moved Development
1 Posts 1 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • tbowmoT Offline
    tbowmoT Offline
    tbowmo
    Admin
    wrote on last edited by
    #1

    I'm trying to create a new board definition file for the micro board, so it's easier for others to compile things specifically to this board.

    But It seems that I am missing something, as I keep getting the following error now:

    sketch_feb24a.ino:1:21: fatal error: Arduino.h: No such file or directory 
    compilation terminated.
    

    (It's just the default empty sketch that I'm trying to compile)

    I have created the following structure under my arduino folder

    hardware\
    ->MySensors\
       ->avr\
          ->boards.txt
            platform.txt (copy from main arduino dir)
            programmers.txt (empty file)
            variants\
            ->Micro\
              ->pins_arduino.h
    

    THe above was made partially with info from https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification

    boards.txt contains the following
    MySensorsMicro.name=MySensors Micro

     MySensorsMicro.upload.tool=arduino:avrdude
     MySensorsMicro.upload.protocol=arduino  
     MySensorsMicro.upload.maximum_size=30720
     MySensorsMicro.upload.maximum_data_size=2048
     MySensorsMicro.upload.speed=57600
     MySensorsMicro.bootloader.tool=arduino:avrdude
     MySensorsMicro.bootloader.unlock_bits=0x3F
     MySensorsMicro.bootloader.lock_bits=0x0F 
     MySensorsMicro.bootloader.low_fuses=0xFF 
     MySensorsMicro.bootloader.high_fuses=0xDA
     MySensorsMicro.bootloader.extended_fuses=0x05
     MySensorsMicro.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex
     
     MySensorsMicro.build.board=AVR_MICRO8
     MySensorsMicro.build.core=arduino  
     MySensorsMicro.build.variant=micro 
     MySensorsMicro.build.mcu=atmega328p
     MySensorsMicro.build.f_cpu=8000000L
    

    However, it doesn't work at all.. As mentioned before, It can't find the arduino.h file, and I can't figure out why..

    Is there anyone else that has a bit more knowledge about boards definition in the newest arduino 1.6, that could help out?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    20

    Online

    11.7k

    Users

    11.2k

    Topics

    113.1k

    Posts


    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • MySensors
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular