Custom flash support in xTIMEcomposer Topic is solved

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
eez-open
Active Member
Posts: 60
Joined: Mon Oct 23, 2017 1:49 pm
Location: Croatia
Contact:

Post by eez-open »

After trying to establish communication for many hours, I find out the datasheet info for used flash memory include wrong Device ID number: 0x1f8401 instead of 0x1f8501. With proper config file (i.e. Adesto.txt) the xflash returns the following (Don't forget to first run source SetEnv on Linux!):

./xflash --spi-read-id 0x9f --spi-spec Adesto.txt --target EEZ-XE216-512-EVAL --verbose
XFlash_Options::ListDevices : xgdb --batch -q --ex listdevices devl-b5da9800
XFlash::DoXFlash
XFlash::DoReadWriteErase
XFlash_Programmer_ReadDeviceID::ReadDeviceId
XFlash_Programmer_ReadDeviceID::GenerateSource
XFlash_SPI_DeviceId::IssueCompileCommand : xcc -Xmapper --dontenablesodlinks -Xmapper --wnoXN -x xc "sqi-ad4453d6" -x xn "/media/denis/SSD_256GB/BACKUP/EEZ/XMOS/Community_14.3.2/targets/EEZ-XE216-512-EVAL/EEZ-XE216-512-EVAL.xn" -o "sqi-2245beff" -lquadflash -D xnPORT_SQI_CS0=PORT_SQI_CS -D xnPORT_SQI_SCLK0=PORT_SQI_SCLK -D xnPORT_SQI_SIO0=PORT_SQI_SIO
XFlash_Utils::BuildRunCommand : xrun --io sqi-2245beff
Response to SPI ID command on tile[0]: 0x1f, 0x85, 0x1.
Attachments
Adesto.txt
(873 Bytes) Downloaded 206 times
Adesto.txt
(873 Bytes) Downloaded 206 times
Last edited by eez-open on Wed Mar 14, 2018 10:55 am, edited 1 time in total.


View Solution
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Hi. Thanks for the closure. Is it possible that you actually soldered into your PCB the AT25SF081 device?

From the AT25SF081 datasheet:

https://www.adestotech.com/wp-content/u ... 81_045.pdf


Image

From the AT25SF041 datasheet:

https://www.adestotech.com/wp-content/u ... 41_044.pdf


Image
User avatar
eez-open
Active Member
Posts: 60
Joined: Mon Oct 23, 2017 1:49 pm
Location: Croatia
Contact:

Post by eez-open »

Argh, that's crazy! Yes, you are right, for some reason a wrong flash is ordered and soldered on two boards :(. Updated header and config files are attached for further reference.
Attachments
QuadSpecEnum.h
(283 Bytes) Downloaded 219 times
QuadSpecEnum.h
(283 Bytes) Downloaded 219 times
QuadSpecMacros.h
(10.4 KiB) Downloaded 209 times
QuadSpecMacros.h
(10.4 KiB) Downloaded 209 times
Adesto_AT25SF081.txt
(873 Bytes) Downloaded 222 times
Adesto_AT25SF081.txt
(873 Bytes) Downloaded 222 times
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

On a positive note, you have more code space than you originally thought for more complex led blinky projects :) That is what I hear from my staff members all the time :)
Post Reply