Syntax for erasing Explorer Kit flash Topic is solved

Technical discussions related to any XMOS development kit or reference design. Eg XK-1A, sliceKIT, etc.
alwalker
Member++
Posts: 27
Joined: Sun Apr 08, 2018 11:19 pm

Syntax for erasing Explorer Kit flash

Postby alwalker » Sat Jan 25, 2020 4:10 am

Hi,

I programmed an Explorer Kit module using xflash --id 'adapter ID' filename.xe and would like to erase it.

I've looked at the xTIMEcomposer guide xflash command line chapter, but it doesn't give full syntax examples.

I've tried xflash --id 'adapter ID' --target XCORE-200-EXPLORER.xn --erase-all but get the attached error in Bash, can anyone help please?

Thanks in advance,

Al
You do not have the required permissions to view the files attached to this post.
View Solution
User avatar
mon2
XCore Legend
Posts: 1816
Joined: Thu Jun 10, 2010 11:43 am

Postby mon2 » Sun Jan 26, 2020 12:03 pm

Can you apply the --verbose flag to the command line and post the detailed log?
alwalker
Member++
Posts: 27
Joined: Sun Apr 08, 2018 11:19 pm

Postby alwalker » Mon Jan 27, 2020 5:57 pm

Thanks very much for the reply, please see attached. I tried a couple of variations of the sequence with the --verbose flag option, but with no effect.

Cheers,

Al
You do not have the required permissions to view the files attached to this post.
User avatar
mon2
XCore Legend
Posts: 1816
Joined: Thu Jun 10, 2010 11:43 am

Postby mon2 » Mon Jan 27, 2020 11:09 pm

Hi. I knew I was forgetting something about your posted syntax...after some digging, found the relevant post from Sethu (formerly of XMOS):
If you want to specify a target based on list of targets which are available in XMOS tools, you need to specify as below:

xflash --target <target_file> <binary.xe> ; here you can pass a kit macro name (if one exists)


you can get the list of installed targets from the following directory:
XMOS_xTIMEcomposer_Enterprise_13.2.0/targets/

But If you want to flash to custom board, you need to specify the target file as shown below:

xflash --target-file custom.xn <binary.xe>
So:

review if the file name for the target kit XN file is 100% as you are passing to this command line utility and use:

xflash --target-file XCORE-200-EXPLORER.xn --erase-all


Please post your results.
alwalker
Member++
Posts: 27
Joined: Sun Apr 08, 2018 11:19 pm

Postby alwalker » Tue Jan 28, 2020 7:07 am

Hi,

Thanks very much, I've been able to erase the flash on the Explorer Kit successfully.

The only issue was that I found that I had to drag the .xn file into macOS Terminal to fully specify the file path for the xflash command to be able to find it.

Kind regards,

Al
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: No registered users and 2 guests