Custom platforms.txt not working?

I'm trying to add a new board I'm working on to my IDE. I've created a custom boards.txt for it, but it requires a custom uploader instead of avrdude.

In the boards.txt file, I've put (along with everything else for the board):

mn85.upload.tool=myuploader

Then in the platform.txt file:

name=myuploader
version=1.0.0


tools.myuploader.cmd=myuploader
tools.myuploader.cmd.windows=myuploader.exe
tools.myuploader.path={runtime.ide.path}/hardware/tools/avr/bin
tools.myuploader.upload.pattern="{path}/{cmd}" "{build.path}/{build.project_name}.hex"

The board shows up in the Boards menu, however when trying to upload to it, the IDE is still trying to use avrdude.

Am I doing something wrong here? Or is this functionality not ready in 1.6.4 yet?

Thanks

I'm seeing the same thing. I'm using a Due board and I've tried to switch the optimizations from -Os to -O2 or -O3 and it isn't taken effect as observed by viewing console output in the IDE after enabling verbose compiler output....and yes, I made the changes with the IDE not running and then started it up afterward.

I'm running 64 bit version 1.6.5 on a customized Fedora base install with kernel 3.8.13.

I've figured out that it works .. but ONLY if you rename the "custom" executable to avrdude. Seems like a bug to me.

1.6.5 doesn't even have a "custom" binary and there is already an avrdude binary in the avr/bin directory. The platform.txt references avrdude as well. This is seriously getting irritating :slight_smile:

I have grepped the entire source tree and cannot find where that param is being defined and used.

-> Update <-
Doh! Nevermind, it's the platform.txt file in the ~/.arduino15 directory...not the one that comes with the IDE source :slight_smile:

On linux, the path is ~/.arduino15/packages/arduino/hardware/sam/1.6.4/

Thanks!