I was recently assigned to a project that involves flashing a custom board with an XE216-C20 chip and onboard flash memory, IS25LP080D.
However, upon following the given documentation and running the command xflash bin/<targetfile>.xe I am presented with the following error:
Code: Select all
.
.
.
XFlash_Builder_Binary::GetSearchLimitPadding : current size (f000) 0
XFlash_Builder_Binary::CalculateBufferSize_Data
XFlash_Builder_Binary::BuildBinary : Allocating buffer - f000
XFlash_Builder_Binary::GetSearchLimitPadding : current size (f000) 0
XFlash_Builder_Binary::WriteBufferToBinary : flash_bin_node0
XFlash_Builder_Storage_PPB::BuildStorage
XFlash_Programmer_Write::DoWrite
XFlash_Programmer_Write::IssueCompileCommand
xcc -w -fxscope -x xn "target-xn-v0-f535c753" -O2 -lquadflash -D xnPORT_SQI_CS0=PORT_SQI_CS -D xnPORT_SQI_SCLK0=PORT_SQI_SCLK -D xnPORT_SQI_SIO0=PORT_SQI_SIO -x xc "fw-f21db6d0" -o "fw-0f76a135"
XFlash_Utils::BuildRunCommand : xrun --xscope fw-0f76a135
Site 0 has started.
Site 0 has ID 0x9d6014.
Site 0 erase 0x00000000.
Site 0 write 0x00000000.
Verify failed for page 0x00000000, offset 0x0000 (read 0x00, expected 0x37).
Error: F03013 Failed to run : 0x7ffc445bae80.
I've tried declaring different options in my environment but all to no avail (such as specifying the partition size, i have yet to change the spi settings), partially due to my current lack of experience with the XMOS architecture.
The board is a verified design and has worked in the past. We recently sourced production from a different company though and the board I am using is a part of that batch. Running the .xe with xrun --xscope bin/<targetfile>.xe is successful.
For reference, the .xn file entry regarding the flash device is is as follows:
Code: Select all
.
.
.
69 <ExternalDevices>
70 <Device NodeId="0" Tile="0" Class="SQIFlash" Name="bootFlash" Type="ISSI_IS25LP080D" PageSize="256" SectorSize="4096" NumPages="4096">
71 <Attribute Name="PORT_SQI_CS" Value="PORT_SQI_CS"/>
72 <Attribute Name="PORT_SQI_SCLK" Value="PORT_SQI_SCLK"/>
73 <Attribute Name="PORT_SQI_SIO" Value="PORT_SQI_SIO"/>
74 </Device>
75 </ExternalDevices>