Skip to content

HydraFW binary SDIO mode guide

Baldanos edited this page Mar 10, 2023 · 6 revisions

HydraFW binary SDIO mode guide

This guide is updated towards development firmware

Commands

Once the SDIO mode has been selected, the following commands are available :

  • 0b00000000 Return to main mode. Returns BBIO1
  • 0b00000001 Mode identification. Returns SDI1
  • 0b000001xx Send SDIO command
  • 0b000010xx Send SDIO command and write data block
  • 0b000011xx Send SDIO command and read data block

Command details

Send command (0b000001xx)

This command reads one byte as the command ID, and 4 bytes as the command argument.

Format :

Byte 1           2          3          4          5         6
|----------|----------|----------|----------|----------|----------|
 [command]      [ID]           [         Argument           ]

Depending on the two last bits, the SDIO driver will wait for different response :

  • 0b00 : No response from card
  • 0b01 : Short response
  • 0b10 : Long response

This command returns 0x01 if successful, 0x00 in case of error.

Send command and write data block (0b000010xx)

This command is used to send a SDIO command followed by a data block. The block size is 512 bytes.

This command first reads one byte as the command ID, and 4 bytes as the command argument. 512 data bytes need to be sent afterwards

Format :

Byte 1           2          3          4          5         6        ...
|----------|----------|----------|----------|----------|----------|------...
 [command]      [ID]           [         Argument           ]       [ Data 

Depending on the two last bits, the SDIO driver will wait for a different command response :

  • 0b00 : No response from card
  • 0b01 : Short response
  • 0b10 : Long response

This command returns 0x01 if successful, 0x00 in case of error.

Send command and read data block (0b000011xx)

This command is used to send a SDIO command, then read a data block. The block size is 512 bytes.

This command first reads one byte as the command ID, and 4 bytes as the command argument.

Format :

Byte 1           2          3          4          5         6
|----------|----------|----------|----------|----------|----------|
 [command]      [ID]           [         Argument           ]

Depending on the two last bits, the SDIO driver will wait for a different command response :

  • 0b00 : No response from card
  • 0b01 : Short response
  • 0b10 : Long response

This command returns 0x01 if successful followed by 512 bytes, 0x00 in case of error.

How to Flash/Use HydraFW

How to Build/Flash/Use HydraFW

Developer Getting-Started with HydraBus and STM32CubeIDE

Hardware

Firmware (hydrafw) performances

Firmware (hydrafw) Application guides

Firmware (hydrafw) guides

How to Help

Clone this wiki locally