cyusb_linux failed to program the spi flash

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

cross mob
rossihwang
Level 3
Level 3
5 questions asked 50 sign-ins 25 replies posted

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

hi, 

After replacing the cyfxflashprog.img, cyusb_linux works properly

View solution in original post

0 Likes
4 Replies
rossihwang
Level 3
Level 3
5 questions asked 50 sign-ins 25 replies posted

the control center(windows) seems work for me

0 Likes
rossihwang
Level 3
Level 3
5 questions asked 50 sign-ins 25 replies posted

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

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

hi, 

After replacing the cyfxflashprog.img, cyusb_linux works properly

0 Likes