Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Tip
titleRecovery boot: bring back a TE USB FX2 module's USB connection from stall

Writing wrong (or corrupted) firmware to EEPROM will bring the USB FX2 microcontroller to stall. To bring it back out of a stall, the firmware recovery procedure differs upon the host operating system:

Recovery Boot

...

Configurations that put firmware into external memory thus need a second stage loader. For typical "flat" memory architectures, a loader supporting the 0xA3 vendor request is used to write into that memory. Similarly, a second stage loader that supports the 0xA2 or 0xA9 vendor request is needed when writing boot firmware into an I2C EEPROM. These 0xA2, 0xA9 and 0xA3 vendor commands are conventions defined by Cypress.

...

Implicit Two-Step

...

Recovery boot ≈

...

Explicit Two-Step

...

Recovery Boot

It is possible to write in EEPROM only using a 2nd stage loader firmware supporting EEPROM programming (aka intermediate good firmware) running in RAM; normally the bootloader Vend_Ax.hex is used. 
  • In the case of (implicit two-step) recovery boot Implicit Two-Step Recovery Boot (at this time, only Windows) the 2nd stage (boot)loader firmware is loaded without the explicit intervention of the user.
  • In the case of (explicit two-step) recovery boot Explicit Two-Step Recovery Boot (mainly Linux) the 2nd stage (boot)loader firmware is loaded with the explicit intervention of the user.

Both recovery boots use exactly the same procedure (under the hood, they are one and the same), but in Windows OS case the 2nd stage (boot)loader firmware step is hidden/implicit in loadEEPROM() function used by CyConsole, CyControl and OpenFutNet.