Flash SPI via USB

I am building some hardware and I would like to know if it is possible to flash the SPI via USB with no image currently on the device or microsd.

Allwinner has an FEL tool for this where if a GPIO is pulled up during boot it will go into a mode that allows flashing the SPI flash over USB.

1 Like

Starting to answer my own question

The MILKV-DUO can operate in USB Device mode for firmware burning and downloading when USB_VBUS_DET (PIN45/ADC2) is detected through a resistor-divided
5V_USB_IN and powered high. However, if the USB port is not being used for burning,
USB_VBUS_DET (PIN45/ADC2) can be directly connected to ground, and the MILKV-DUO
will operate in Host mode, enabling it to connect to external USB devices such as USB
HUBs or USB 2.0 devices.

1 Like

I believe my answer is in here → Any Support for booting from Spi Flash?

1 Like