Hi Nges,

On Tue, Apr 12, 2016 at 05:49:25PM +0100, Nges B wrote:
> Downloading /home/nges/tproj/bin/arduino_boot/apps/boot/boot.elf.bin
> to 0x00000000
> Open On-Chip Debugger 0.8.0 (2014-10-25-15:24)
> Licensed under GNU GPL v2
> For bug reports, read
>       http://openocd.sourceforge.net/doc/doxygen/bugs.html
> Info : only one transport option; autoselect 'cmsis-dap'
> Info : CMSIS-DAP: SWD  Supported
> Info : CMSIS-DAP: JTAG Supported
> Info : CMSIS-DAP: Interface Initialised (SWD)
> adapter speed: 500 kHz
> adapter_nsrst_delay: 100
> cortex_m reset_config sysresetreq
> Info : CMSIS-DAP: FW Version = 01.1F.0118
> Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
> Info : DAP_SWJ Sequence (reset: 50+ '1' followed by 0)
> Info : CMSIS-DAP: Interface ready
> Info : clock speed 500 kHz
> Info : IDCODE 0x0bc11477
> Info : at91samd21g18.cpu: hardware has 4 breakpoints, 2 watchpoints
> target state: halted
> target halted due to debug-request, current mode: Thread
> xPSR: 0x81000000 pc: 0x000028f4 msp: 0x20002c00
> at91samd bootloader 0: command requires more arguments
> in procedure 'at91samd'
> Error: exit status 1

What command are you running?  From the output, it looks like you might
be trying to debug the bootloader, which is probably not what you want
to do.  When you post output, could you please include the exact
commands that you execute?

The standard command sequence is:

1. Build boot loader (newt build <boot-loader-target>)
2. Upload boot loader to board (newt load <boot-loader-target>)
3. Build / load / debug main application (newt run <main-target>)

Thanks,
Chris

Reply via email to