flash write image errror

Hello everyone ,

I am new to openocd .

I am using Atmel SAMD21 xpro board .My host system is Ubuntu LTS 14.04.1

When I am using make flash command , I get follwoing error.

flash write_image erase /home/pinkesh/RIOT/RIOT/examples/samd21_default/bin/samr21-xpro/default.hex: command requires more arguments

in procedure ‘flash’

make: *** Error 1

Open On-Chip Debugger 0.8.0-dev-00175-g8b7acca (2014-10-15-16:59)

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: Interface Initialised (SWD)

adapter speed: 500 kHz

adapter_nsrst_delay: 100

cortex_m reset_config sysresetreq

Info : CMSIS-DAP: FW Version = 01.1B.00FC

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 : at91samd21j18.cpu: hardware has 4 breakpoints, 2 watchpoints

TargetName Type Endian TapName State


0* at91samd21j18.cpu cortex_m little at91samd21j18.cpu halted

target state: halted

target halted due to debug-request, current mode: Thread

xPSR: 0x01000000 pc: 0x00000300 msp: 0x20002980

target state: halted

target halted due to debug-request, current mode: Thread

xPSR: 0x01000000 pc: 0x00000300 msp: 0x20002980

flash write_image erase /home/pinkesh/RIOT/RIOT/examples/samd21_default/bin/samr21-xpro/default.hex: command requires more arguments

in procedure ‘flash’

make: *** Error 1[/img]