Page 1 of 1

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

Posted: Wed Jul 12, 2017 10:11 am
by susanyin0501
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

Re: Xu224 can't boot up, flash can be written and read

Posted: Wed Jul 12, 2017 12:57 pm
by mon2
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:

http://www.xcore.com/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?

Re: Xu224 can't boot up, flash can be written and read

Posted: Wed Jul 12, 2017 1:03 pm
by Bianco
Any activity on the SCK and CS lines of the SPI chip during powerup?

Re: Xu224 can't boot up, flash can be written and read

Posted: Wed Jul 12, 2017 1:17 pm
by Bianco
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.

Re: Xu224 can't boot up, flash can be written and read

Posted: Thu Jul 13, 2017 4:41 am
by susanyin0501
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?

Re: Xu224 can't boot up, flash can be written and read

Posted: Thu Jul 13, 2017 9:39 am
by plex
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.

Re: Xu224 can't boot up, flash can be written and read

Posted: Wed Sep 13, 2017 2:38 am
by susanyin0501
thanks for all of your reply. just Adding a pull up resisteror to PIN X2D06, now it can work well ( bootup from flash)