Page 1 of 1

XLF208 XN file missng flash pins

Posted: Thu May 10, 2018 1:19 pm
by aelder
I'm working on a .xn file for custom hardware based on the XLF208.

I started with file XLF208-128-TQ64-C10 shipped with xTimeComposer tools. Since the XLF208 part has embedded flash, I was expecting to see sections that looked something like

Code: Select all

         <Boot>
            <Source Location="bootFlash"/>
          </Boot>
          <Tile Number="0" Reference="tile[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>
and

Code: Select all

  <ExternalDevices>
    <Device NodeId="0" Tile="0" Class="SQIFlash" Name="bootFlash" Type="S25FL116K">
      <Attribute Name="PORT_SQI_CS" Value="PORT_SQI_CS"/>
      <Attribute Name="PORT_SQI_SCLK"   Value="PORT_SQI_SCLK"/>
      <Attribute Name="PORT_SQI_SIO"  Value="PORT_SQI_SIO"/>
      <Attribute Name="QE_REGISTER" Value="quad_spi_qe_location_status_reg_0"/>
      <Attribute Name="QE_BIT" Value="quad_spi_qe_bit_6"/>
    </Device>
  </ExternalDevices>
But the above sections are missing. Is this pin specification done some other way that I am unaware of?

Thanks,
Andrew

Re: XLF208 XN file missng flash pins

Posted: Thu May 10, 2018 6:18 pm
by mon2
Wow, that is an interesting observation. Indeed that section of the xn file is empty. Section 8 of the respective datasheet offers the details of this internal flash and how it is mapped.

Have you attempted to flash this internal device? If the empty xn file fails, consider to insert your definition using the port pins they note in the datasheet. Could be a toolchain typo so perhaps open a support ticket on the xmos.com website to receive proper closure on this case.

Re: XLF208 XN file missng flash pins

Posted: Thu May 10, 2018 6:28 pm
by aelder
Thanks for the response. Yes, section 8 does look clear enough to me. I will open a support ticket.

Re: XLF208 XN file missng flash pins

Posted: Fri May 11, 2018 9:49 am
by matthew1
Looks a genuine issue to me, I'll follow up internally. In the short term, you could create a custom xn based on the XLF208-256-TQ64-C10.xn file (which is OK in 14.3.3) but change 256 to 128 where appropriate.

Cheers,

Matthew.
XMOS

Re: XLF208 XN file missng flash pins

Posted: Thu May 24, 2018 7:54 pm
by aelder
On a related note, I see
xflash: Warning: F03149 QE_REGISTER and/or QE_BIT locations not found in XN file for this flash device. Using default quad_spi_qe_location_status_reg_0 and quad_spi_qe_bit_6.
Should these also be defined?