Skip to content

FYSETC S3 H7 Firmware Guide

undoz edited this page Jan 24, 2025 · 11 revisions

Contents

Prerequisites

This installation process is based on the KIAUH installation scripts.


Hardware Setup

Warning

Never change jumpers or hot plug things while the board is powered on.

The easiest way to flash the board is before installing it into the Ebox and connecting anything else to it. If it is already mounted then proceed with no. 1. below.

  1. If you are using the Serial UART connector to the PI GPIO pins, please disconnect that first.

  2. If your board already receives 24V power then set the blue jumper in position A

    • If you board is powered by USB then set it to position B
    • Make sure to switch it to back to position A when finishing installing the board and connecting it to the PSU

    -

  3. Connect the board to the PI (USB C cable on the board side, USB A on the PI side)


Software

DFU Mode

To flash the firmware the board has to be booted into USB DFU mode.

  1. Power the board and make sure the 5V and 3.3V leds are active

  2. Hold the Boot (1) momentary switch and then press the RST (2) one. Release both buttons.

    -

  3. Open a SSH connection to the PI and run: lsusb

    -

    • The board should show up as DFU Mode. If it doesn't, repeat the procedure at step no. 2.

Firmware Flashing

  1. Start KIAUH
~/kiauh/kiauh.sh
  • Select [Advanced] (4) from the menu

And then [Build + FLash] (4)


  1. Set the firmware to the following settings, then press Q to finish and save the settings with Y when prompted.
    • If you connect the board to the PI though the Serial UART interface then switch the communication to: Serial Communication interface (USART1 PA10/PA9)
[*] Enable extra low-level configuration options
   Micro-controller Architecture (STMicroelectronics STM32)
   Processor model (STM32H723)
   Bootloader offset (No bootloader)
   Clock Reference (25 Mhz crystal)
   Communication interface (USB (on PA11/PA12))
   USB ids (leave default)
() GPIO pins to set at micro-controller startup


  1. Proceed with the flashing process and select the options highlighted below:

Note: your MCU #1 ID might differ than the one above which has been previously flashed


  1. Proceed with the flashing procedure.
    • Ignore the other error messages and check to see if the file download process was successful.


  1. Quit KIAUH and reset the board. If you flashed for a serial UART connection, please remove the USB and reconnect the UART cable.

  1. Run: ls /dev/serial/by-id/* and lsusb (for USB connection)
  • If the firmware flashing process was successful then you should see the following device listed:


P.S. Remember to switch the 5V power jumper back if needed

Troubleshooting

UART Connection Not Established on Raspberry Pi

  • Run sudo apt-get remove brtty to remove a possible brtty serial conflict
  • Launch the raspi configuration sudo raspi-config
    • Select “Interface Options” > “Serial Port” to enable UART, then answer Yes to Serial HW and No to Serial Console if asked
  • Enter sudo nano /boot/cmdline.txt
  • Delete "console=serial10,115200" if present
  • Reboot sudo reboot now