1 Reply Latest reply on Jun 7, 2018 2:34 AM by srdr

    FX3 SDK 1.3.4 cyfxflashprog.img fails to flash SPI

    M.Walz_2226056

      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