Closed xogium closed 10 months ago
Here's a random thought I just had.
The stm32mp135d odyssey board has the usb-c port acting both for power and as OTG. Presumably this is different from the stm32mp135f-dk board, where the OTG port is a separate usb port (if it is similar to the stm32mp157f-dk2).
That might be why my board directly attempts to boot over usb0 and gets different dfu alt info?
Thanks for the report, here's what I think is happening. The default bootcmd for STM32MP U-Boot eventually calls the stm32prog command which expects to find a flash layout somewhere in RAM. When using STM32CubeProgrammer, this flashlayout is usually written by the recovery tool before loading U-Boot.
Since Snagboot's design mandates complete separation between the recovery and flashing stages, we do not write this flashlayout file before loading U-Boot. So it goes like this:
What I would advise you to do is to simply change the U-Boot bootcmd to run dfu 0 and then whatever other boot command you need.
Thank you for explaining this. This sounds like it does make perfect sense. So you had to do this for some of the stm32mp1 you work with too then? Very good knowledge that...
I'm not sure if I'm doing something wrong, or this is to be expected or not.
When I use snagrecover to attempt a recovery of the stm32mp13 board I'm working with, the resulting accessible dfu alt info are different than if I was to interrupt u-boot and use the dfu 0 command myself.
hardware
I work on the stm32mp135d-based board from Seeed Studio, stm32mp135d-odyssey. Schematics are available here in case it is important to this issue (I don't believe it is).
software versions
output of dfu-util -l when boot sequence is not interrupted
output of dfu-util -l when boot sequence is interrupted and dfu 0 is ran
output of u-boot during uninterrupted boot sequence
I suspect this has something to do with the boot over usb0 message, but I am not sure. How do I get access to the devices shown by dfu 0 when using snagrecover? Is this possible, or did I misunderstand the tool?