Go Down

Topic: Arduino Zero & Eclipse -- "couldn't open build.path/ArduinoHowTo.bin" (Read 4447 times) previous topic - next topic

niklas_mayr

Hello,

I was unsure whether to post it to the Eclipse Thread or to the Zero-Thread, but finally I decided to post it here since I believe it is a Problem related to the usage of the Zero with Eclipse.

PROBLEM
When I want to send my (fairly simple - essentially the blink-example) code to the Zero, the following error occurs:

Code: [Select]
      Open On-Chip Debugger 0.10.0+dev-gf0767a31 (2018-06-11-13:36)
      Licensed under GNU GPL v2
      For bug reports, read
      http://openocd.org/doc/doxygen/bugs.html
      debug_level: 2
      Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
      none separate
      adapter speed: 400 kHz
      cortex_m reset_config sysresetreq
      Info : CMSIS-DAP: SWD  Supported
      Info : CMSIS-DAP: Interface Initialised (SWD)
      Info : CMSIS-DAP: FW Version = 02.01.0157
      Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
      Info : CMSIS-DAP: Interface ready
      Info : clock speed 400 kHz
      Info : SWD DPIDR 0x0bc11477
      Info : at91samd21g18.cpu: hardware has 4 breakpoints, 2 watchpoints
      Info : Listening on port 3333 for gdb connections
      target halted due to debug-request, current mode: Thread
      xPSR: 0x61000000 pc: 0x0000060c msp: 0x20007ffc
      ** Programming Started **
      auto erase enabled
-->   Error: couldn't open build.path/ArduinoHowTo.bin}
      embedded:startup.tcl:477: Error: ** Programming Failed **
      in procedure 'program'
      in procedure 'program_error' called at file "embedded:startup.tcl", line 536
      at file "embedded:startup.tcl", line 477


The code I want to send is the following:

Code: [Select]
#include <Arduino.h>

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}


The build works just fine, resulting in this log:

Code: [Select]

Building ArduinoHowTo
make: Nothing to be done for 'all'.
Program store usage: 11487 of maximum 262144 bytes


I also checked the output-folder, all files are created correctly. I'm also using the default folder for the Arduino-IDE.

When I try to load the exactly same code to the ZERO using the "normal" IDE, everything works just fine.

VERSIONS
- Eclipse: 
   / Version: 2019-09 R (4.13.0)
   / Build id: 20190917-1200

- Arduino IDE: 3.0 (most recent)

- SAMD-Plugin: 1.8.4

Thank you very much in advance!

Go Up