Xu224 can't boot up, flash can be written and read Topic is solved

Sub forums for various specialist XMOS applications. e.g. USB audio, motor control and robotics.
susanyin0501
Member++
Posts: 16
Joined: Thu Apr 20, 2017 9:00 am

Xu224 can't boot up, flash can be written and read  Topic is solved

Postby susanyin0501 » Wed Jul 12, 2017 10:11 am

i'm working for xu224 project, Xu224 can't boot up, flash can be written and read.
would you please give us some suggestions? thanks

usb connect to tile[0]
SPI flash connect to tile[0]
please refer to attached file
无标题.png
(105.16 KiB) Not downloaded yet
无标题.png
(105.16 KiB) Not downloaded yet
Last edited by susanyin0501 on Wed Sep 13, 2017 3:08 am, edited 3 times in total.
View Solution
User avatar
mon2
XCore Expert
Posts: 747
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Postby mon2 » Wed Jul 12, 2017 12:57 pm

Have not worked with this exact CPU but...

You are using QSPI flash to boot this board but is the QSPI bit 6 enabled inside the external IS25LQ016B ? QSPI Bit 6 must be 1 to boot your code.

Believe you can enable this bit QSPI using xflash tool.


Image

update, see here:

viewtopic.php?t=5874

so update your XN file:

Code: Select all

  <ExternalDevices>
    <Device NodeId="0" Tile="0" Class="SQIFlash" Name="bootFlash" Type="IS25LQ016B">
      <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 not clear on how xflash is enabling the QE BIT - is it automatic or do you need to manually pass a parameter to enable QE?
Last edited by mon2 on Wed Jul 12, 2017 1:05 pm, edited 1 time in total.
User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm
Contact:

Postby Bianco » Wed Jul 12, 2017 1:03 pm

Any activity on the SCK and CS lines of the SPI chip during powerup?
User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm
Contact:

Postby Bianco » Wed Jul 12, 2017 1:17 pm

mon2 wrote:
but not clear on how xflash is enabling the QE BIT - is it automatic or do you need to manually pass a parameter to enable QE?


QE bit will always be written to 1 when flashing the device using xflash (if you have a QuadFlash device in the XN file).
The default is bit 6 register 0, so even not providing the definition, it should go OK.
susanyin0501
Member++
Posts: 16
Joined: Thu Apr 20, 2017 9:00 am

Postby susanyin0501 » Thu Jul 13, 2017 4:41 am

Thanks for your reply.

external message
1, SPI seems boot up, but boot up fail finallly. when we power on board there are usb connecting message (icon) display on PC, but just a while (blink one time)
2, if we cut tile2 and tile3, just use tile0 and tile1, xn file refer to attached file, it can boot up successfully and work well.
3, in section 8 Boot Procedure of XU224-1024-FB374-Datasheet(1.12).pdf, there are the following content
Pin X2D06 must be pulled high with an external pull-up whilst the chip comes
out of reset, to ensure that tile 2 will boot from link. X2D04, X2D05, and X2D07
should be kept low whilst the chip comes out of reset.

Must we pull-up X2D06 whilst the chip comes out of reset? we didn't connect these pins to anywhere. i don't know whether it cause this issue?
plex
Member++
Posts: 21
Joined: Fri Aug 12, 2016 6:13 pm

Postby plex » Thu Jul 13, 2017 9:39 am

Yes you need to add a pull up resistor to pin X2D06 for tiles 2 and 3 to boot from link as noted in the datasheet. Also add pull downs or ensure that X2D04, X2D05, X2D07 are low during reset.
susanyin0501
Member++
Posts: 16
Joined: Thu Apr 20, 2017 9:00 am

Postby susanyin0501 » Wed Sep 13, 2017 2:38 am

thanks for all of your reply. just Adding a pull up resisteror to PIN X2D06, now it can work well ( bootup from flash)

Return to “Applications”

Who is online

Users browsing this forum: No registered users and 9 guests