cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

rossihwang
New Contributor II

Env: Ubuntu 20.04, SDK1.3.4_linux

The thing is no matter use cyusb_linux or download_fx3, flash programmer can be loaded to RAM successfully, but the SPI part failed. the terminal log is as below

```

➜ cyusb_linux_1.0.5 ./bin/cyusb_linux
Found FX3 flash programmer
SPI sector erase failed
Failed to erase SPI flash

Thanks in advance!

 

0 Likes
1 Solution
rossihwang
New Contributor II

hi, 

After replacing the cyfxflashprog.img, cyusb_linux works properly

View solution in original post

0 Likes
4 Replies
rossihwang
New Contributor II

the control center(windows) seems work for me

0 Likes
rossihwang
New Contributor II

Finally, I found download_fx3 works for me, please close this thread.

the solution is  building the cyfxflashprog in cyfx3sdk/firmware/basic_examples/cyfxflashprog yourself instead using the prebuilt  cyusb_linux_1.0.5/fx3_images/cyfxflashprog.img. I guess the cyusb_linux directly uses the prebuild flashprog

```

download_fx3 -t RAM -i ./cyfxflashprog.img

download_fx3 -t SPI -i ./test.img

```

 

0 Likes
Rashi_Vatsa
Moderator
Moderator

Hello,

Thank you for the update. Glad to here the the problem is resolved

Please let me if replacing the newly build cyfxflashprog.img with prebuild cyfxflashprog.img helps to program SPI flash with cyusb_linux

Please take a backup of prebuild cyfxflashprog.img before replacing with newly build image.

Regards,
Rashi
0 Likes
rossihwang
New Contributor II

hi, 

After replacing the cyfxflashprog.img, cyusb_linux works properly

View solution in original post

0 Likes