DHSBC STM32MP13 DFU and UMS usage: Difference between revisions
From Wiki-DB
Jump to navigationJump to search
Ageisreiter (talk | contribs) |
Ageisreiter (talk | contribs) |
||
| Line 22: | Line 22: | ||
||SPI Flash ||<tt>001b</tt> | ||SPI Flash ||<tt>001b</tt> | ||
|} | |} | ||
'''NOTE:''' First Board revision 719-100 -> ON means 0 -> SPI Flash boot: bit 1 = OFF, bit 2,3 = ON! | '''NOTE:''' | ||
* First Board revision 719-100 -> ON means 0 -> SPI Flash boot: bit 1 = OFF, bit 2,3 = ON! | |||
* NEW Board revision 719-300 -> ON means 1 -> SPI Flash boot: bit 1 = ON, bit 2,3 = OFF! | |||
=== Install dfu-util (debian) === | === Install dfu-util (debian) === | ||
| Line 40: | Line 42: | ||
:'''>>> Connecting USB Data and FTDI console port. Open a terminal program (PuTTY or TeraTerm) for serial console connection.''' | :'''>>> Connecting USB Data and FTDI console port. Open a terminal program (PuTTY or TeraTerm) for serial console connection.''' | ||
:'''>>> Switch boot mode to 123= | :'''>>> Switch boot mode to 123=OFF-OFF-OFF (USB DFU boot) / Note: Old Hardware 123=ON-ON-ON''' | ||
:'''>>> Power on the board''' | :'''>>> Power on the board''' | ||
| Line 71: | Line 73: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
:'''>>> Power off the board, switch boot mode to 123=OFF- | :'''>>> Power off the board, switch boot mode to 123=ON-OFF-OFF (QSPI NOR boot) / Note: Old Hardware 123=OFF-ON-ON''' | ||
=== Reset Environment to default of new bootloader=== | === Reset Environment to default of new bootloader=== | ||
| Line 97: | Line 99: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
:'''>>> Power off the board, switch boot mode to 123=OFF- | :'''>>> Power off the board, switch boot mode to 123=ON-OFF-OFF (QSPI NOR boot) / Note: Old Hardware 123=OFF-ON-ON''' | ||
:'''>>> Power on and boot''' | :'''>>> Power on and boot''' | ||
Revision as of 17:35, 4 November 2025
Requirements
Software
- Linux host computer (Virtual Machine for Application Development is used in this guide)
- dfu-util (for DFU boot mode)
Hardware
- DHSBC STM32MP13 board
- USB-A to Type-C cable (for DFU and UMS data connection)
- Type-C power supply for DHCBS STM32Mp13 board
- FTDI cable TTL-232R-3V3 for console connection
Preparation
This installation was made on the Virtual Machine for Application Development. All console expressions refer to this Debian system, but any other debian based system should also work.
BOOT MODES
USB (DFU) 000b SPI Flash 001b
NOTE:
- First Board revision 719-100 -> ON means 0 -> SPI Flash boot: bit 1 = OFF, bit 2,3 = ON!
- NEW Board revision 719-300 -> ON means 1 -> SPI Flash boot: bit 1 = ON, bit 2,3 = OFF!
Install dfu-util (debian)
apt-get install dfu-utilCollect artifacts from OE build:
- tf-a-stm32mp135f-dhcor-dhsbc.stm32-stm32mp1
- fip.bin-stm32mp1
- *image*.wic
Start U-Boot via USB DFU upload:
- >>> Connecting USB Data and FTDI console port. Open a terminal program (PuTTY or TeraTerm) for serial console connection.
- >>> Switch boot mode to 123=OFF-OFF-OFF (USB DFU boot) / Note: Old Hardware 123=ON-ON-ON
- >>> Power on the board
- >>> DFU device apears on Linux host computer
$ dfu-util -a 0 -D tf-a-stm32mp135f-dhcor-dhsbc.stm32 -R
$ dfu-util -a 0 -D fip.bin -RInstall bootloader to SPI NOR:
- U-Boot side:
=> sf probe
=> env set dfu_alt_info "mtd nor0=fsbl1 raw 0x0 0x40000;fsbl2 raw 0x40000 0x40000;uboot raw 0x80000 0x160000;env1 raw 0x3e0000 0x10000;env2 raw 0x3f0000 0x10000"
=> dfu 0 mtd- Host PC side
$ dfu-util -a 2 -D fip.bin
$ dfu-util -a 1 -D tf-a-stm32mp135f-dhcor-dhsbc.stm32
$ dfu-util -a 0 -D tf-a-stm32mp135f-dhcor-dhsbc.stm32- >>> Power off the board, switch boot mode to 123=ON-OFF-OFF (QSPI NOR boot) / Note: Old Hardware 123=OFF-ON-ON
Reset Environment to default of new bootloader
=> env default -a
=> saveenv
=> saveenvNote: saveenv is called twice, because it also updates the redundant ENV to the new version.
Install root filesystem to eMMC:
- U-Boot side:
=> ums 0 mmc 0- Host PC side
$ dd if=*image*wic of=/dev/sdX bs=4M- >>> Power off the board, switch boot mode to 123=ON-OFF-OFF (QSPI NOR boot) / Note: Old Hardware 123=OFF-ON-ON
- >>> Power on and boot