Two XK-1 connected test code does'nt work from SPI boot.

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
mio
Member
Posts: 13
Joined: Fri Dec 11, 2009 6:14 am
Location: Japan

Two XK-1 connected test code does'nt work from SPI boot.

Post by mio »

Hi,

I connedted two "XK-1" board and run sample.
This sample works like that, one XK-1's button is pushed, another XK-1's led is on. each other.

[see attachment project please]

This code works fine, from debugger or xrun (from IDE),
and xflash'ed successfully,
But does not works from XK-1's SPI flash memory,

Will anyone find the cause of this problem?
My tools version is 10.4.2 on WindowsXP.

# I had reported ticket like this problem to XMOS last year,
# "1293: Can't write to SPI with xflash version XDK 9.9.1"
# but it's status is still "suspend".

-- Stuck status is follow --
***** Active Threads *****
2 xcore[1] hwthread 0 0x0001f978 in ?? ()
* 1 xcore[0] hwthread 0 0x0001025a in ?? ()

Thread 2 (xcore[1] hwthread 0):

***** Call Stack *****
#0 0x0001f978 in ?? ()

***** Disassembly *****
0x1f978: chkct (rus) res[r3], 0x1 *
0x1f97a: freer (1r) res[r3] *
0x1f97c: retsp (u6) 0x8
0x1f97e: entsp (u6) 0x7
0x1f980: stw (ru6) r0, sp[0x1]

***** Registers *****
r0 0xbfeb143c -1075112900
r1 0x8 8
r2 0x3e 62
r3 0x2 2
r4 0x10d00 68864
r5 0x10f00 69376
r6 0x10c00 68608
r7 0x1 1
r8 0x0 0
r9 0x1 1
r10 0x5a4 1444
r11 0x10800 67584
cp 0x1fbf4 130036
dp 0x1fc08 130056
sp 0x1fc64 130148
lr 0x1f94e 129358
pc 0x1f978 129400
sr 0x40 64
spc 0x0 0
ssr 0x0 0
et 0x0 0
ed 0x0 0
kep 0x0 0
ksp 0x0 0
epc 0x0 0

Thread 1 (xcore[0] hwthread 0):

***** Call Stack *****
#0 0x0001025a in ?? ()

***** Disassembly *****
0x1025a: in (2r) r0, res[r1] *
0x1025c: chkct (rus) res[r1], 0x1 *
0x1025e: ldc (ru6) r0, 0x0
0x10260: out (r2r) res[r1], r0 *
0x10262: outct (rus) res[r1], 0x1 *

***** Registers *****
r0 0x2002 8194
r1 0x2 2
r2 0x80000002 -2147483646
r3 0x10524 66852
r4 0x2 2
r5 0x10498 66712
r6 0x0 0
r7 0x0 0
r8 0x0 0
r9 0x0 0
r10 0x0 0
r11 0x10524 66852
cp 0x10490 66704
dp 0x104c0 66752
sp 0x1fef8 130808
lr 0x1016c 65900
pc 0x1025a 66138
sr 0x40 64
spc 0x0 0
ssr 0x0 0
et 0x0 0
ed 0x0 0
kep 0x0 0
ksp 0x0 0
epc 0x0 0
Sincerely,
mio
You do not have the required permissions to view the files attached to this post.


mio / a.k.a. yu-pi-te-ru at http://moxi.jp/
User avatar
larry
Respected Member
Posts: 275
Joined: Fri Mar 12, 2010 6:03 pm

Post by larry »

Thank you for your message. There is a bug in the xflash program related to booting from SPI in multi-chip configurations, that we are currently working on fixing. The symptoms are similar to what you are reporting.

It would help if you could post your report to the support tracking system at http://www.xmos.com/support (click on Support Tickets). That way we can assign a tracking number to it and notify you when the bug has been fixed so that you can try to see if the fix addresses your issue.
User avatar
mio
Member
Posts: 13
Joined: Fri Dec 11, 2009 6:14 am
Location: Japan

Post by mio »

Hi, larry.

Thanks for your suggestion.

I created new ticket on XMOS site.
"#2090: Two XK-1 connected test code does'nt work from SPI boot."

Sincerely,
mio
mio / a.k.a. yu-pi-te-ru at http://moxi.jp/