trying xconnect by two startkit , modifying xn file

New to XMOS and XCore? Get started here.
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Review this webpage if you have not done so already:

https://www.xcore.com/viewtopic.php?t=4837

to get some good ideas. However, the CPU on the StartKit is not documented and being EOL, doubt that any new information will be made available. Best advice here is to experiment with the more current XCORE-200 series CPU for your needs. At least there are public datasheets for those CPUs.

An an aside, we are working to build some affordable tools / kits for the XMOS line. What would you like to see?

Why is booting from a single SPI flash so important for your daisy chained StartKits? Do recall that the StartKits are based on a dual tile XS1 architecture but one tile is dedicated to be the JTAG tool.

Will study more on how to perform the same task on the XCORE-200 CPU to refresh my memory.


etori90
Active Member
Posts: 34
Joined: Thu Sep 05, 2019 6:49 am

Post by etori90 »

Thank you !
I will try this example at 200 board.
etori90
Active Member
Posts: 34
Joined: Thu Sep 05, 2019 6:49 am

Post by etori90 »

Hi mon2 I have tried example you linked

Did you have any problem compiling example using two 200 board?

Xn file has error
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Have not tested it but do not see any complaints.

Can you post your project and the error log after compiling?
etori90
Active Member
Posts: 34
Joined: Thu Sep 05, 2019 6:49 am

Post by etori90 »

I got this result by two custom 200 board

Code: Select all

Available XMOS Devices
----------------------

  ID    Name                    Adapter ID      Devices
  --    ----                    ----------      -------
  0     XMOS XTAG-3             .KY_BzSG        O[0..1]
first error

Code: Select all

.././XCORE-200-EXPLORER_x2.xn:74 Error: XN11105 Duplicate device name "bootFlash".
xmake[1]: *** [.build/x200.xc.o] Error 1
xmake: *** [bin//x200.xe] Error 2

line 37 : from <Source Location="XMOSLINK"/> to <Source Location="bootFlash1"/>
second error

Code: Select all

..\.\XCORE-200-EXPLORER_x2.xn: Error: XN11188 Network is not fully connected (no route from node "0" to node "4")
line 46~47: delete
        <Node Id="4" InPackageId="1" Type="periph:XS1-SU" Reference="usb_tile" Oscillator="24MHz">
        </Node>
third error

Code: Select all

C:\Users\Mr.Seo\AppData\Local\Temp\_ntcg7: Error: Node 32780, tile 2 not found.

   <Package id="1" Type="XS2-UEnA-512-FB236">
      <Nodes>
        <Node Id="3" InPackageId="0" Type="XS2-L16A-512" OscillatorSrc="1" SystemFrequency="500MHz">
          <Boot>
            <Source Location="XMOSLINK"/>
          </Boot>
          <Tile Number="2" Reference="tile[2]">                        --------------------------changed Tile number 2 to 0
            <Port Location="XS1_PORT_1B" Name="PORT_SQI_CS"/>
            <Port Location="XS1_PORT_1C" Name="PORT_SQI_SCLK"/>
            <Port Location="XS1_PORT_4B" Name="PORT_SQI_SIO"/>
          </Tile>
          <Tile Number="3" Reference="tile[3]"/>                    -----------------------------changed Tile number 3 to 1          
from now I could build the project, but when I command I see like this
4th error

Code: Select all

C:\Users\Mr.Seo\xconnect\x200>xcc x200.xc XCORE-200-EXPLORER_x2.xn -o app.xe
x200.xc:48:1: warning: control reaches end of non-void function [-Wreturn-type]

C:\Users\Mr.Seo\xconnect\x200>xflash app.xe --noinq --boot-partition-size 0x20000 -o flash
xflash: Error: F03105 Node "3" is configured to boot from XMOSLINK but no device is configured to boot it.
so i changed like this

Code: Select all

line 37      <Source Location="XMOSLINK"/> to      <Source Location="bootFlash1"/>
5th error

Code: Select all

.././XCORE-200-EXPLORER_x2.xn:35 Error: XN11105 Node "3" uses an external device ("bootFlash1") that is specified for node "1".
line 73 :
changed <Device NodeId="1" Tile="0" Class="SQIFlash" Name="bootFlash1" Type="S25FL116K"> to
<Device NodeId="3" Tile="0" Class="SQIFlash" Name="bootFlash1" Type="S25FL116K">
now I could build again tried flashing

Code: Select all

contains a reference to resource "portHolder_0" (byte offset 0) not resident on that tile.
Error: F03010 Failed to compile flash inquisitor.

F03010 Failed to compile stage two loader is encountered due to a constraintscheck failure. This failure normally happens when there is a large number of nodesin a network to be booted from flash causing the stage 2 loader to exceed it’sdefault allocated partition-by xflash command line manual- 
-> means out of memory???..I made source code using only one tile flashing led.
spliting source code to two image file problem

Code: Select all

C:\Users\Mr.Seo\xconnect\x200>xflash app.xe --noinq --boot-partition-size 0x20000 -o flash
Warning: F03097
Cannot check factory image protection because --noinq was specified.
Warning: F03102
Node id: 0 - Cannot check boot partition size for sector alignment. The
boot partition should contain a whole number of sectors but
this cannot be checked when the inquirer is disabled

Warning: F03102
Node id: 3 - Cannot check boot partition size for sector alignment. The
boot partition should contain a whole number of sectors but
this cannot be checked when the inquirer is disabled

xflash: Warning: F03148 --quad-spi-clock not given, using default 15.62MHz
xflash: Warning: F03149 QE_REGISTER and/or QE_BIT locations not found in XN file for this flash device. Using default flash_qe_location_status_reg_0 and flash_qe_bit_6.
s2l-n0-f692b139:2890:3: error: tile specified in initializer does not match tile in declaration
  PORT_SQI_CS,
  ^~~~~~~~~~~
C:\\Users\\Mr.Seo\\AppData\\Local\\Temp\\cc0kfaaa.h:26:24: note: expanded from macro 'PORT_SQI_CS'
#define PORT_SQI_CS on tile[2]: XS1_PORT_1B
                       ^~~~~~~
s2l-n0-f692b139:2891:3: error: tile specified in initializer does not match tile in declaration
  PORT_SQI_SCLK,
  ^~~~~~~~~~~~~
C:\\Users\\Mr.Seo\\AppData\\Local\\Temp\\cc0kfaaa.h:27:26: note: expanded from macro 'PORT_SQI_SCLK'
#define PORT_SQI_SCLK on tile[2]: XS1_PORT_1C
                         ^~~~~~~
s2l-n0-f692b139:2892:3: error: tile specified in initializer does not match tile in declaration
  PORT_SQI_SIO,
  ^~~~~~~~~~~~
C:\\Users\\Mr.Seo\\AppData\\Local\\Temp\\cc0kfaaa.h:28:25: note: expanded from macro 'PORT_SQI_SIO'
#define PORT_SQI_SIO on tile[2]: XS1_PORT_4B
                        ^~~~~~~
Error: F03010 Failed to compile second stage bootloader

john's xn file
XCORE-200-EXPLORER_x2.xn
(3.26 KiB) Downloaded 154 times
XCORE-200-EXPLORER_x2.xn
(3.26 KiB) Downloaded 154 times
And at the datasheet XE216-512-TQ128 where i can find LINK E equals to LINK4?
linkname.PNG
linkname.PNG (7.99 KiB) Viewed 1832 times
linkname.PNG
linkname.PNG (7.99 KiB) Viewed 1832 times
by https://www.xmos.com/download/xConnect- ... ual(A).pdf

I apologizes for very long code error and my ignorant
Give me your e-mail, I'm poor student but I want to buy you pizza... you are angel.

x200.zip
(398.16 KiB) Downloaded 136 times
x200.zip
(398.16 KiB) Downloaded 136 times
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Will review in detail later but start with the CPU package referenced in error #3. It is the fbga package and 236 balls.

Later the tqfp package is referenced which is with less pins.

This will impact which pins and links are available.

Compare to the explorer kit CPU package.

Which exact device are you testing? Is this a custom PCB or the XMOS official explorer kits?

The xtag3 has found your 2 CPU devices which is a good start.
etori90
Active Member
Posts: 34
Joined: Thu Sep 05, 2019 6:49 am

Post by etori90 »

I have two custom PCB and one official explorer kits.
I tried this at official to custom and custom to custom

Thank you for reviewing this I will upload the state continually
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Which exact CPU part # is onboard your custom design?

Do your custom PCBA work properly in standalone mode?

For example, run the high speed USB hid mouse IP code example from XMOS. This code example will move your mouse pointer in a square pattern till stopped and is great to validate the CPU operation and confirms the USB traffic.
etori90
Active Member
Posts: 34
Joined: Thu Sep 05, 2019 6:49 am

Post by etori90 »

you mean model of cpu?
same model as 200 kit and It works fine standalone

It is designed for use as a network terminal.. ( I didn't make this board, other one made this)

I have not ran any example using usb, but it worked well for network.

Does the chip's USB operation affect the multiboot or link boot method?
Debugging or downloading flash works fine.
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Hi. As noted, no direct experience with this daisy chaining of the XMOS CPU devices yet but try the modified XN file.

Does this resolve at least the Error Code # 1 from your earlier post?

XCORE-200-EXPLORER_x2_fixed.xn
(3.26 KiB) Downloaded 171 times
XCORE-200-EXPLORER_x2_fixed.xn
(3.26 KiB) Downloaded 171 times
Post Reply