2020-01-21 12:05 AM
Hello,
I am designing a custom board with STM32wb processor. With nucleo board, there is no problem for programming mcu and flash the wireless coprocessor binary. However, in custom board, I don't want to use usb (extra cost and size). Do I have to flash wireless coprocessor Binary with USB ? Are there any way to flash binaries with swd port ?
And also, are there any embedded binary code in chip when we buy them from digikey or anywhere ? If there are, maybe I don't need to flash these binaries.
Thank you for your answer in advance,
Regards,
Burak
Solved! Go to Solution.
2020-01-23 12:10 AM
Yes, coprocessor can be flashed via SWD.
For more information see UM2237, that describes CubeProg_CLI commands.
Generally you just need to change "port=usb1" to "port=swd mode=ur"
You need CubeProgrammer at least v2.2 to use SWD for this purpose
Binaries are only prerogrammed in Nucleo. Single chip has basic FUS only
2020-01-23 12:10 AM
Yes, coprocessor can be flashed via SWD.
For more information see UM2237, that describes CubeProg_CLI commands.
Generally you just need to change "port=usb1" to "port=swd mode=ur"
You need CubeProgrammer at least v2.2 to use SWD for this purpose
Binaries are only prerogrammed in Nucleo. Single chip has basic FUS only
2020-01-24 06:03 AM
Thank you for your answer,
Actually I tried this before. When I try these commands, cubeprogrammer gives error:Could not execute fwupgrade command, Security extension not instantiated.
I connect BOOT0 pin to vdd, nothing changed,
Do I miss something ?
I tried these command .\STM32_Programmer_CLI.exe -c port=swd mode=UR -ob nSWboot0=0 nboot1=1 nboot0=1 -fwupgrade stm32wb5x_BLE_Stack_fw.bin 0x80CB000 as given in example in nucleo board
I also tried -fwdelete commands but same error,
Thank you again for your interest and for your answer,
EDIT: Problem was beacuse of version of programmer as you told to me(I was tought, it is updated) . There is a little problem when I try to upgrade FUS version( cubeprogrammer upgrade it and progress not continue) but when I cancel progress, I see everything is ok.
Thank you again.
Best regards.
2020-02-01 12:21 AM
@Community member Hello!
how can I know which bin is flashed on my coprocessor? I want to change it but I suspect that it is already installed