2021-03-29 05:46 AM
I enter STM32_Programmer_CLI -c port=/dev/bus/usb/010/003 (lsusb reports this is correct) -w flashlayout_st-image-weston/trusted/Flashlayout_sdcard_stm32mp157c-dk2-trusted.tsv
udev drivers installed, Ubuntu 20.04
Warning: Wrong connect parameter:
Solved! Go to Solution.
2021-03-29 08:58 AM
Hi, just see that you mistyped the command, you miss the '-w'
should be : STM32_Programmer_CLI -c port=USB1 -w flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv
I agree that the error message is not helping.
Regards.
2021-03-29 06:32 AM
Besides of documentation on the ST website ...
Did you try runtime help ?
I wouldn't expect a proper manpage from Windows-centered ST, but you can try with DOS/Windows standard "/?" as parameter.
2021-03-29 07:33 AM
im On Ubuntu 20.4 command line, as far as I know there is no help?
2021-03-29 07:47 AM
Hi,
your 'port=' value is wrong, you should use first:
STM32_Programmer_CLI -l
to list available DFU interfaces.
Then use the 'Device Index' value in the command line, for instance:
STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/trusted/Flashlayout_sdcard_stm32mp157c-dk2-trusted.tsv
You could also use the CobeProgrammer GUI.
Regards.
2021-03-29 07:53 AM
I tried that first like the instructions said. I got the very same error.
Warning: Wrong connect parameter: “flashlayout_st-image-weston/trusted/Flashlayout_sdcard_stm32mp157c-dk2-trusted.tsv�?
2021-03-29 07:57 AM
letter@steve-T7500:~/work/Starter-Package/stm32mp1-openstlinux-5-4-dunfell-mp1-20-11-12/images/stm32mp1$ !1955
STM32_Programmer_CLI -l usb
-------------------------------------------------------------------
STM32CubeProgrammer v2.7.0
-------------------------------------------------------------------
===== DFU Interface =====
Total number of available STM32 device in DFU mode: 1
Device Index : USB1
USB Bus Number : 009
USB Address Number : 004
Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
Serial number : 0045002A3338510B39303435
Firmware version : 0x0110
Device ID : 0x0500
letter@steve-T7500:~/work/Starter-Package/stm32mp1-openstlinux-5-4-dunfell-mp1-20-11-12/images/stm32mp1$ STM32_Programmer_CLI -c port=USB1 flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv
-------------------------------------------------------------------
STM32CubeProgrammer v2.7.0
-------------------------------------------------------------------
Warning: Wrong connect parameter: "flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv"
USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
SN : 0045002A3338510B39303435
FW version : 0x0110
Device ID : 0x0500
Device name : STM32MP1
Device type : MPU
Device CPU : Cortex-A7
2021-03-29 08:15 AM
Hi, if "STM32_Programmer_CLI -l" :
Regards.
2021-03-29 08:29 AM
Native Ubuntu 20.04. All prerequisites met, I can build the images, install them using the sdcard install script and have a working discovery board. I showed my results, I have a dfu mode device
2021-03-29 08:58 AM
Hi, just see that you mistyped the command, you miss the '-w'
should be : STM32_Programmer_CLI -c port=USB1 -w flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv
I agree that the error message is not helping.
Regards.
2021-03-29 09:18 AM
Thanks, yes, that is the issue.