X
RSS YouTube LinkedIn Twitter Facebook

Search




Post new topic Reply to topic   [ 4 posts ] 
Author Message
69
PostPosted: Thu May 17, 2012 8:26 pm 
Joined: Tue Apr 03, 2012 1:35 pm
Posts: 10
How can I flash my programme on a dual Xk-1a?

this is the error I get when I try :

Code:
C:/Users/ALEXAN~1/AppData/Local/Temp/ccs1aaaa.h:31: warning: The macro is redefined
    #define PORT_UART_RX on stdcore[1]: XS1_PORT_1I
    from C:/Program Files (x86)/XMOS/DevelopmentTools/11.11.0/target/include/platform.h: 21:    #include _PLATFORM_INCLUDE_FILE
    from C:/Users/ALEXAN~1/AppData/Local/Temp/fdxc_2: 1:    #include <platform.h>
    previously macro "PORT_UART_RX" defined as: #define PORT_UART_RX on stdcore[0]: XS1_PORT_1I    /* C:/Users/ALEXAN~1/AppData/Local/Temp/ccs1aaaa.h:22   */
C:/Users/ALEXAN~1/AppData/Local/Temp/ccs1aaaa.h:32: warning: The macro is redefined
    #define PORT_UART_TX on stdcore[1]: XS1_PORT_1J
    from C:/Program Files (x86)/XMOS/DevelopmentTools/11.11.0/target/include/platform.h: 21:    #include _PLATFORM_INCLUDE_FILE
    from C:/Users/ALEXAN~1/AppData/Local/Temp/fdxc_2: 1:    #include <platform.h>
    previously macro "PORT_UART_TX" defined as: #define PORT_UART_TX on stdcore[0]: XS1_PORT_1J    /* C:/Users/ALEXAN~1/AppData/Local/Temp/ccs1aaaa.h:23   */
C:/Users/ALEXAN~1/AppData/Local/Temp/ccs1aaaa.h:33: warning: The macro is redefined


Top
Offline Profile View all posts by this user  
 
2668
PostPosted: Thu May 17, 2012 10:29 pm 
User avatar
XCore Expert
Joined: Sun Jul 11, 2010 1:31 am
Posts: 824
It looks like you specified the wrong XN file, or your XN file is wrong.


Top
Offline Profile View all posts by this user  
 
69
PostPosted: Fri May 18, 2012 1:56 pm 
Joined: Tue Apr 03, 2012 1:35 pm
Posts: 10
Hello,

This is the xn file I've been using:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<Network xmlns="http://www.xmos.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.xmos.com http://www.xmos.com">
  <Type>Board</Type>
  <Name>XK-1A Development Board</Name>
  <BoardId>0005021X</BoardId>

  <Declarations>
    <Declaration>core stdcore[2]</Declaration>
  </Declarations>

  <Packages>
    <Package id="0" Type="XS1-L1A-TQ128">
      <Nodes>
        <Node Id="0" InPackageId="0" Type="XS1-L1A" Oscillator="20MHz" SystemFrequency="400MHz">
          <Boot>
            <Source Location="SPI:bootFlash"/>
          </Boot>
          <Core Number="0" Reference="stdcore[0]">
            <Port Location="XS1_PORT_1I" Name="PORT_UART_RX"/>
            <Port Location="XS1_PORT_1J" Name="PORT_UART_TX"/>
   
            <Port Location="XS1_PORT_1K" Name="PORT_BUT_1"/>
            <Port Location="XS1_PORT_1L" Name="PORT_BUT_2"/>
   
            <Port Location="XS1_PORT_1M" Name="PORT_SPI_MISO"/>
            <Port Location="XS1_PORT_1N" Name="PORT_SPI_SS"/>
            <Port Location="XS1_PORT_1O" Name="PORT_SPI_CLK"/>
            <Port Location="XS1_PORT_1P" Name="PORT_SPI_MOSI"/>

            <Port Location="XS1_PORT_4F" Name="PORT_LED"/>
          </Core>
        </Node>
              </Nodes>
    </Package>
    <!--  ----------------------------------------------- -->
      <Package id="1" Type="XS1-L1A-TQ128">
      <Nodes>
        <Node Id="1" InPackageId="0" Type="XS1-L1A" Oscillator="20MHz" SystemFrequency="400MHz">
          <Boot>
            <Source Location="SPI:bootFlash"/>
          </Boot>
          <Core Number="0" Reference="stdcore[1]">
            <Port Location="XS1_PORT_1I" Name="PORT_UART_RX"/>
            <Port Location="XS1_PORT_1J" Name="PORT_UART_TX"/>
   
            <Port Location="XS1_PORT_1K" Name="PORT_BUT_1"/>
            <Port Location="XS1_PORT_1L" Name="PORT_BUT_2"/>
   
            <Port Location="XS1_PORT_1M" Name="PORT_SPI_MISO"/>
            <Port Location="XS1_PORT_1N" Name="PORT_SPI_SS"/>
            <Port Location="XS1_PORT_1O" Name="PORT_SPI_CLK"/>
            <Port Location="XS1_PORT_1P" Name="PORT_SPI_MOSI"/>

            <Port Location="XS1_PORT_4F" Name="PORT_LED"/>
          </Core>
        </Node>
        <!--  ----------------------------------------------- --> 
      </Nodes>
    </Package>
  </Packages>

  <Links>
    <Link Encoding="2wire" Delays="0,1">
      <LinkEndpoint NodeId="0" Link="1"/>
      <LinkEndpoint NodeId="1" Link="0"/>
    </Link>
  </Links>

  <ExternalDevices>
    <Device NodeId="0" Core="0" Class="SPIFlash" Name="bootFlash" Type="AT25FS010">
      <Attribute Name="PORT_SPI_MISO" Value="PORT_SPI_MISO"/>
      <Attribute Name="PORT_SPI_SS"   Value="PORT_SPI_SS"/>
      <Attribute Name="PORT_SPI_CLK"  Value="PORT_SPI_CLK"/>
      <Attribute Name="PORT_SPI_MOSI" Value="PORT_SPI_MOSI"/>
    </Device>
  </ExternalDevices>

  <JTAGChain>
     <JTAGDevice NodeId="0"  Position="0"/>
     <JTAGDevice NodeId="1"  Position="1"/>
  </JTAGChain>

</Network>




Top
Offline Profile View all posts by this user  
 
2668
PostPosted: Fri May 18, 2012 11:08 pm 
User avatar
XCore Expert
Joined: Sun Jul 11, 2010 1:31 am
Posts: 824
Your XN file specifies that both L1s are connected to the same
bootflash. That is wrong. You should duplicate the definitions
for "bootflash", say name it "bootflash2", and link up the second
chip to that in the XN file.

You use identical names for the ports on both cores; fix that as
well, that won't work.


Top
Offline Profile View all posts by this user  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic   [ 4 posts ] 


Who is online

Users browsing this forum: Google [Bot] and 4 guests



Search for:
Jump to: