Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MiWa_2226056
Level 1
Level 1
First like given

Hey guys,

I have a problem regarding SPI flash programming with the new SDK 1.3.4 on Linux:

With SDK 1.3.3 and cyusb_linux 1.0.4 I used to program cyusb_linux_1.0.4/fx3_images/cyfxflashprog.img into RAM. Afterwards I used the download_fx3 example to program my image to SPI flash. This worked pretty well for SDK 1.3.3.

But as soon as I use the cyfxflashprog.img from SDK 1.3.4 and cyusb_linux 1.0.5, it will not erase the SPI flash anymore (I2C still works). I get this output from download_fx3:

Working with old image

./download_fx3 -i /opt/cypress_1.3.3/cyusb_linux_1.0.4/fx3_images/cyfxflashprog.img -t ram

FX3 firmware programming to ram completed

./download_fx3 -i ./myimage.img -t spi

Info: Found FX3 flash programmer

Info: Erased sector 0 of SPI flash

Info: Erased sector 1 of SPI flash

Info: Erased sector 2 of SPI flash

Failing with new image:

./download_fx3 -i /opt/cypress/cyusb_linux_1.0.5/fx3_images/cyfxflashprog.img -t ram

FX3 firmware programming to ram completed

./download_fx3 -i ./myimage.img -t spi

Info: Found FX3 flash programmer

Error: SPI sector erase failed

Error: Failed to erase SPI flash

Error: FX3 firmware programming failed

I am using a Cypress S25FL128,, which should be compatible...

The FX3 does not print anything regarding SPI on its UART, just 

Device initialized. Firmware ID: 50 33 58 46 0 47 4F 52

Just as if it never received the USB vendor requests regarding SPI. When I compile the cyfxflashprog.c source code example from SDK 1.3.4 myself it works perfectly. Can anybody confirm this issue or is it a layer 8 problem? J

Best regards,
Michael

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.

Hi,

Yes, there is some issue with CyU3PSpiTransmitWords, which is the reason for flashing to SPI failure.

This has been fixed in the attached modified library.

Replace the existing libcyu3lpp.a in the default library (FX3 SDK Windows - C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\fw_lib\1_3_4\fx3_debug) with that of the attached one and build the cyfxflashprog project.

A similar issue is reported in CyU3PSpiTransmitWords bug (SDK library 1.34)

View solution in original post

0 Likes
6 Replies