Forums › Devices › OSD32MP15x › Flashing with STM32CubeProgrammer fails
When flashing the microSD card on a custom OSD32MP1 board with STM32CubeProgrammer (using USB DFU), I get the following failure:
“Error: an error occurred while setting virtual partition 0xF1 alternate setting”.
Why do I get this and how can I make it work?
Verseau,
A couple of things to check:
1. Size and type of SD card: I am not sure what size the SD card you are trying to flash is. If you have a 16GB card, please try using that. Also, please try a couple of different cards to see if there is an issue with the SD card itself.
2. Which MMC interface is the SD card connected to and does your board make use of the same pins as the DK-2 board? Note that there are several (.tsv) files for several types of storage devices such as eMMC, NOR, NAND etc.
Please let us know whether you are able to resolve this issue.
Best,
Neeraj
Hi Neeraj,
1. Size and type of SD card
I tried a few other microSD cards from 2GB to 16GB, but this didn’t solve the problem.
2. Which MMC interface is the SD card connected to
I followed the DK2 schematics:
SDMMC1_D0 -> PC8
SDMMC1_D1 -> PC9
SDMMC1_D2 -> PC10
SDMMC1_D3 -> PC11
SDMMC1_CK -> PC12
SDMMC1_CMD -> PD2
uSD_DETECT -> PB7
I used both FlashLayout_sdcard_stm32mp157c-dk2-basic.tsv and FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv, with the same results.
Just out of curiosity, if you use a DK2 and remove the SD card before flashing the board with STM32CubeProgrammer, are you able to replicate the issue?
Thanks,
Verseau
Hey Verseau,
I was able to verify the Cube Programmer 2.2 (screenshotted) works for OSD32MP1 with no issues. Your hardware configuration seems to be correct. ST team suggests that you “sanity check” the setup with a STM32MP1-DK2 board.
There could be other hardware differences between the DK-2 and your custom board that could be causing the failure to flash like the HSE frequency. If you are still unable to resolve the issue, please contact our sales as we would have to take a closer look at your schematics. You can contact our Sales Manager Martin Burgos at martin.burgos(at)octavosystems.com
Thanks,
Neeraj
I am currently getting this issue on a RED board when programming the eMMC with an image build from the latest meta-octavo.
Seems to go away if I use the STM32CubeProgrammer on Linux (Ubuntu).
mlarkin,
As discussed above, it is unclear what the cause of this error might be. As it looks like it is working correctly on Ubuntu, it could be a bug in the Windows specific version of the Cube Programmer. We suggest you report this to ST.
Best,
Neeraj
Octavo Systems LLC all rights reserved
OCTAVO is registered in the U.S. Patent and Trademark Office. OSD, C-SiP, and the Octavo Logo are trademarks of Octavo Systems LLC.
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields