cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

New Contributor

Hello all,

I have a custom FX3 board with S25FS064S. I programmed the spi flash via control center. I changed the PMODE[0:2] 11F to 1F0 to enable boot from spi flash. When i program a new flash, FX3 can boot from the flash. But when i want to change the img file in the flash, FX3 can't be programmed anymore. I tested the img files with a evaluation board and it worked well with both of the img files. What could be the problem?

Best Regards 

0 Likes
Reply
4 Replies
Moderator
Moderator
0 Likes
Reply
New Contributor

Thank you for your reply.

I am aware of that article. But the flash in my design is S25FS064S, not S25FS128S. In AN76405 EZ-USB® FX3™/FX3S™ Boot Options, the "selecting SPI flash" subsection says that S25FS064S is suitable for FX3. What should i modify in CyBootProgrammer.img ? 

0 Likes
Reply
Moderator
Moderator

Hi,

S25FS064S also has hybrid sectors and hence needs Flash register (CR3NV) write to disable 4KB Erase. The changes mentioned in above KBA is only for  S25FS128S and we need to check if it can be applied to S25FS064S as well (Small changes might be required with respect to address length)

Regards,

Hemanth
0 Likes
Reply
New Contributor

I modified the cyfxflashprog according to the article. Then i programmed the SPI flash with two different image to see whether i can change the program in the flash. I used Control Center to read SPI flash data. I read first 4096 bytes and detect some differences between reads. So it seems i can change program in the flash. Yet, when i set booting from SPI flash, FX3 still can't boot from  SPI  flash. 

In Control Center, FX3 USB Bootloader device seems to be connected. When i attemp to read SPI flash again, i got the following error. 

CONTROL IN transfer
CONTROL IN transfer failed with Error Code:997

Best Regards

0 Likes
Reply