Board.txt What am I doing wrong

Ok so I make my own PCBs and I want to use Pin 8. Oddly as a SS but I have multiple slaves so I wanted to be explicit in setting it. That lead me down a rabbit hole where I learned about Digital 17 and 30 for RXLED and TXLED. As I never bother with those ANYWAYS on my hardware, I decided to see if I could reclaim them. Turns out I can by null defining those functions in pins.h

From what I read I jsut needed to create a Variant folder and copy the pins file, in this case the Leonardo version as I love me the 32u4. well I love it when I'm not able to sqweezes me gadget onto an ATTiny 1604/1634 Sorry getting side tracked. So I made the edits to the pins file then I followed a how to for adding the vattiant to the IDE and it said to make an entry in Boards.txt

I more or less cloned the Leonardo and renamed everything I thought I should rename. Then saved it and relaunched the IDE. But the board is no where to be found. What am I missing>


image

##############################################################

splinter.name=Arduino 32u4 Splinter
splinter.vid.0=0x2342
splinter.pid.0=0x0037
splinter.vid.1=0x2342
splinter.pid.1=0x8037
splinter.vid.2=0x2A03
splinter.pid.2=0x0037
splinter.vid.3=0x2A04
splinter.pid.3=0x8037

splinter.upload.tool=avrdude
splinter.upload.protocol=avr109
splinter.upload.maximum_size=28672
splinter.upload.maximum_data_size=2560
splinter.upload.speed=57600
splinter.upload.disable_flushing=true
splinter.upload.use_1200bps_touch=true
splinter.upload.wait_for_upload_port=true

splinter.bootloader.tool=avrdude
splinter.bootloader.low_fuses=0xff
splinter.bootloader.high_fuses=0xd8
splinter.bootloader.extended_fuses=0xcb
splinter.bootloader.file=caterina/Caterina-Leonardo.hex
splinter.bootloader.unlock_bits=0x3F
splinter.bootloader.lock_bits=0x2F

splinter.build.mcu=atmega32u4
splinter.build.f_cpu=16000000L
splinter.build.vid=0x2342
splinter.build.pid=0x8037
splinter.build.usb_product="Six_Systems"
splinter.build.board=AVR_LEONARDO
splinter.build.core=arduino
splinter.build.variant=splinter
splinter.build.extra_flags={build.usb_flags}

##############################################################

leonardo.name=Arduino Leonardo
leonardo.vid.0=0x2341
leonardo.pid.0=0x0036
leonardo.vid.1=0x2341
leonardo.pid.1=0x8036
leonardo.vid.2=0x2A03
leonardo.pid.2=0x0036
leonardo.vid.3=0x2A03
leonardo.pid.3=0x8036

leonardo.upload.tool=avrdude
leonardo.upload.protocol=avr109
leonardo.upload.maximum_size=28672
leonardo.upload.maximum_data_size=2560
leonardo.upload.speed=57600
leonardo.upload.disable_flushing=true
leonardo.upload.use_1200bps_touch=true
leonardo.upload.wait_for_upload_port=true

leonardo.bootloader.tool=avrdude
leonardo.bootloader.low_fuses=0xff
leonardo.bootloader.high_fuses=0xd8
leonardo.bootloader.extended_fuses=0xcb
leonardo.bootloader.file=caterina/Caterina-Leonardo.hex
leonardo.bootloader.unlock_bits=0x3F
leonardo.bootloader.lock_bits=0x2F

leonardo.build.mcu=atmega32u4
leonardo.build.f_cpu=16000000L
leonardo.build.vid=0x2341
leonardo.build.pid=0x8036
leonardo.build.usb_product="Arduino Leonardo"
leonardo.build.board=AVR_LEONARDO
leonardo.build.core=arduino
leonardo.build.variant=leonardo
leonardo.build.extra_flags={build.usb_flags}

##############################################################

Hi @six. Cool project!

It is important to know that the platform in the hardware/arduino/avr subfolder of the Arduino IDE 1.x installation is only used if you haven't ever installed the "Arduino AVR Boards" platform using the Arduino IDE Boards Manager. Boards Manager installs the platform to a completely different location on your hard drive and after that the copy of the platform bundled with the Arduino IDE installation is no longer used.

You can determine the location of the active platform by examining the verbose output from compiling for one of the boards of the platform. I'll provide instructions:

  1. Select File > Preferences from the Arduino IDE menus.
  2. Check the box next to "Show verbose output during: ☐ compilation".
  3. Click the OK button.
  4. Select Sketch > Verify/Compile from the Arduino IDE menus.
  5. Wait for the compilation to finish.
  6. Click on the black console panel at the bottom of the Arduino IDE window.
  7. Scroll the panel all the way up to the top.
  8. Look for the line that starts with "Using board ...".
    For example:
    Using board 'uno' from platform in folder: 
    C:\Users\per\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
    

The path you see in that output line is the path of the active platform for the board. You must make your modifications there.

1 Like

Facepalm! I'll have to try it in the morning. But I'm pretty confident you're right! I feel like a silly Billy! That seems pretty obviously the right answer :slight_smile: so I bet you're right!

YUP! that works!

I'm glad it is working. Thanks for taking the time to post an update.

Regards,
Per

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.