Arduino: 1.6.5 (Windows 7), Board: "Arduino Zero (Native USB Port)"
Error while burning bootloader: missing 'bootloader.tool' configuration parameter
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
I've selected Arduino Zero native port for the board, and I've selected programmer Atmel-ICE. I get the above error message when trying to burn the bootloader from within the IDE.
Atmel Studio also does not recognize the .BIN file supplied so I can't burn it that way either.
I'm using a board of my own design that features the SAMD21 processor, so burning the bootloader using the EDBG chip isn't an option.
Hm, I found preferences.txt and noticed the configuration options looked suspiciously like that 'bootloader.tool' thing, and I noticed a line 'programmer=arduino:atmel_ice', so I tried adding 'bootloader.tool=arduino:atmel_ice' to the file, but unfortunately it didn't work, and I got the following error message:
Arduino: 1.6.5 (Windows 7), Board: "Arduino Zero (Native USB Port)"
Could not find tool atmel_ice from package arduino
I found that in
C:\Users\USERNAME\AppData\Roaming\Arduino15\packages\arduino\hardware\samd\1.6.0\boards.txt
there are probably missing 2 lines (?)
at the end of the part for the "Arduino Zero (Native USB Port)"
try to add:
arduino_zero_native.bootloader.tool=openocd
arduino_zero_native.bootloader.file=zero/samd21_sam_ba.bin
Windows detected a device when the board powered up and it said Arduino Zero Bootloader, so it's probably working, though I don't know if all the fuses are set right. I'd set them to match the Zero Pro.
I think you may use the tool
C:\Users\USERNAME\AppData\Roaming\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1\bin\arm-none-eabi-objcopy.exe
on a commandline as well to do a bin2hex conversion...
Please let us know if you can upload a sketch now to your custom-board, using the "normal way" with the Arduino IDE (using "Arduino Zero native port")
mOskit:
guys, can you please help with this case?I`m trying to convert .bin to .hex using program you recommended, and this is what i get.
I have also tried using arduino ide with the same result as first post
any suggestions??
Dirk67 posted the solution above:
I found that in
C:\Users\USERNAME\AppData\Roaming\Arduino15\packages\arduino\hardware\samd\1.6.0\boards.txt
there are probably missing 2 lines (?)
at the end of the part for the "Arduino Zero (Native USB Port)"
try to add:
arduino_zero_native.bootloader.tool=openocd
arduino_zero_native.bootloader.file=zero/samd21_sam_ba.bin
That's all that needs to be done to get the bootloader to burn from within the IDE.
I don't know what's wrong with the bintohex tool. I got it to work but I don't remember how. It wasn't difficult though, it just worked the first time.
and they had those lines included, as i found that file through win search.
But i should really change that file which is within board manager.
Do you guys know, when you use board manager to download M0 boards into IDE 1.6.5, where are they actually stored??
I cant really see where they are, i guess
You don't need anything. From the IDE. Just select EDBG as programmer in Tools. Select Burn Bootloader. Job done.
If I have been using Keil or Rowley to program my M0 Pro, it is generally necessary to re-install the bootloader. I can't remember with AS7. But it is not too much of an imposition to do one mouse click for the "Burn".
i don't have EDBG programmer in Tools
please someone make zip file with arduino including all modifying file
That would be the Arduino IDE install. If you don't have "Atmel EDBG" in the Tools/Programmer menu, then it's not installed correctly. (Don't forget that you'll have to install the samd package with the board manager, after installing the main IDE.)
step 1.
I used Arduino M0 Pro as Programer, i de-soldered the 0 ohm resistor from SWCLK, and SWDIO and also I de-soldered 330 ohm from reset pin,
step 2.
I connected SWCLK, SWDIO, RESET, VCC and GND from blank IC to 2x5 PROGRAMMING PINHEAD.
Using Arduino 1.6.7
I select board Arduino zero native usb
after this i select programmer and BURN
DONE!!