FX3: USB Boot Mode Software

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

cross mob
Anonymous
Not applicable

Hi all,

Relating to this thread: Firmware update (change to USB Boot Mode by software?)

I need some example code which will allow me to invalidate the image stored on the EEPROM SPI Flash.

I have been following the example firmware in cyfxusbspigpiomode, but it doesn't seem to work for me, and is too complex for what I need.

Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\cyfxusbspigpiomode\

What is the minimal example code required to write a byte/s to the SPI flash to invalidate it. For example just an erase command or simple write command.

I need the FX3 to go into USB boot mode after this. I can't have any hardware solutions - must be done in software.

Thanks for your time!

James

0 Likes
7 Replies
VlKh_2251656
Level 5
Level 5
10 likes given 5 likes given First like received

Hello.

I think that it FX3 should preload in the desired mode.

Moreover, the program download from external memory.

That is, you need to reprogram this memory.

0 Likes

Hello Vladimir,

Please let know what is the boot mode (PMODE line settings) that you are using currently.

Best regards,

Srinath S

0 Likes

Many thanks, SRNT.

I am fine.

I just wanted to help a jameswagner, answer his question.

I think, boot is not difficult.

0 Likes
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello James,

Please let know what is the boot mode (PMODE line settings) that you are using currently.

Best regards,

Srinath S

0 Likes
VlKh_2251656
Level 5
Level 5
10 likes given 5 likes given First like received

In addition i2c, spi, usb, cx3 board has "boot sd3" mode -boot mode.jpg

It's very cool!

0 Likes
VlKh_2251656
Level 5
Level 5
10 likes given 5 likes given First like received

Jampers - on, on, off.

0 Likes

Hello,

PMODE[2:0] = 110 is not a valid boot option. The device supports eMMC boot option but the PMODE settings for that is PMODE[2:0] = 100 (Without USB fallback) or 000 (With USB fallback).

Best regards,

Srinath S

0 Likes