"xflash -o" fails Topic is solved

If you have a simple question and just want an answer.
Post Reply
ffomich
Experienced Member
Posts: 119
Joined: Mon Sep 15, 2014 1:32 pm

"xflash -o" fails

Post by ffomich »

Hi,
I try to generate encrypted image for XE216-512 based board with QSPI flash:

Code: Select all

xburn --genkey keys.dat
xflash image.xe --key keys.dat -o image_enc.bin --verbose
I have no any XMOS board connected to PC.
xflash fails:

Code: Select all

& xflash image.xe --key keys.dat -o image_enc.bin --verbose"
XFlash_Application found _start :40000 on Node 0
XFlash_Application found _DoSyscall :45e24 on Node 0
XFlash_Application found _DoException :44da8 on Node 0
XFlash_Application found _start :40000 on Node 0
XFlash_Application found _DoSyscall :44f94 on Node 0
XFlash_Application found _DoException :44184 on Node 0
XFlash_Application : Attempting to Compress Binary Data
libcompressor marker 1=246
libcompressor marker 2=223
libcompressor marker 3=229
libcompressor best marker length 3 2 2
libcompressor best marker length 3 2 3
libcompressor best marker length 3 2 4
libcompressor best marker length 3 2 5
libcompressor DoCompression_Compress took : 570ms
libcompressor compile command=xcc -nostartfiles -Xmapper --bootstyle=forsim -x a
ssembler-with-cpp "decompressor-ffb7d127" -x xn "target-xn-v0-08411fdb" -o decom
pressor-d97e1993
libcompressor validating decompressor decompressor-d97e1993
libcompressor launching simulator decompressor-d97e1993 --disable-syscalls --max
-cycles 100000000
libcompressor simulator starting @0x40000
libcompressor simulator terminate @0x7ff76
libcompressor decompressor validated
XFlash_Application on Node : 0 compressed from : 32536 bytes to : 22968 bytes (2
9.41%)
libcompressor marker 1=229
libcompressor marker 2=223
libcompressor marker 3=54
libcompressor best marker length 3 2 2
libcompressor best marker length 3 2 3
libcompressor best marker length 3 2 4
libcompressor best marker length 4 2 4
libcompressor DoCompression_Compress took : 892ms
libcompressor compile command=xcc -nostartfiles -Xmapper --bootstyle=forsim -x a
ssembler-with-cpp "decompressor-b474b25f" -x xn "target-xn-v0-08411fdb" -o decom
pressor-9c93abb6
libcompressor validating decompressor decompressor-9c93abb6
libcompressor launching simulator decompressor-9c93abb6 --disable-syscalls --max
-cycles 100000000
libcompressor simulator starting @0x40000
libcompressor simulator terminate @0x7ff74
libcompressor decompressor validated
XFlash_Application on Node : 0 compressed from : 28944 bytes to : 20252 bytes (3
0.03%)
XFlash::DoXFlash
XFlash::DoImageProgramming
XFlash::GetDeviceInfo
XFlash_DeviceInfo::GetDeviceInfo_SQI_Hardware
XFlash_DeviceInfo::GetDeviceInfo_SQI_Hardware_GenerateSource
XFlash_DeviceInfo::GetDeviceInfo_SQI_Hardware_IssueCompileCommand : xcc -Xmapper
 --dontenablesodlinks -Xmapper --wnoXN -x xc "sqi-f5c46617" -x xn "target-xn-v0-
08411fdb" -o "sqi-fe2bce85" -lquadflash -D xnPORT_SQI_CS0=PORT_SQI_CS -D xnPORT_
SQI_SCLK0=PORT_SQI_SCLK -D xnPORT_SQI_SIO0=PORT_SQI_SIO
XFlash_DeviceInfo::GetDeviceInfo_SQI_Hardware_IssueRunCommand : xrun --io "sqi-f
e2bce85"
xrun: Problem in connection to device
XFLASH User Guide
-o file Places output in file, disabling programming.
Why xflash try to connect to device? Is this xflash bug?


View Solution
User avatar
Ross
XCore Expert
Posts: 962
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

use --noinq
ffomich
Experienced Member
Posts: 119
Joined: Mon Sep 15, 2014 1:32 pm

Post by ffomich »

Thank you, Ross.
It works now. In that case xburn recommends to specify --boot-partition-size.
User avatar
Ross
XCore Expert
Posts: 962
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

no probs :)
Post Reply