Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

These are commands that are not (yet) explicitly exposed in the C# and C++ library (they are constants define / enum: SPI_Command in https://github.com/Trenz-Electronic/TE-USB-Suite/blob/master/TE_USB_FX2.firmware/te_usb_api.ver.3.2/te_api.h).

SPI Flash command

Description
#define SPI_WREN 0x06Set Write Enable Latch
#define SPI_WRDI 0x04Reset Write Enable Latch
#define SPI_RDSR1 0x05Read Status Register 1
#define SPI_RDSR2 0x35Read Status Register 2
#define SPI_WRSR 0x01Write Status Register
#define SPI_READ 0x03Read data from memory
#define SPI_FAST_READ 0x0bSimilar to the READ command, but possibly uses a faster clock
#define SPI_WRITE 0x02Write data to memory array
#define SPI_SE 0xD8Erase one sector in memory
#define SPI_BE 0xC7Erase all memory
#define SPI_DP 0xb9Write Enable Command

#define SPI_RES 0xab

Read Electonic Signature
#define SPI_RDID 0x9Freads the ID of the SPI Flash

...