Skip to main content
Bk..1
Associate
Jan 21, 2020 8:05 AM UTC
Solved

Can STM32WB wireless stack can be programmed using jtag(ST-link) ?

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

This topic has been closed for replies.
Stecklo
SteckloBest answer
Senior
Jan 23, 2020 8:10 AM UTC

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

3 replies

Stecklo
SteckloBest answer
Senior
Jan 23, 2020 8:10 AM UTC

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

Bk..1
Bk..1Author
Associate
Jan 24, 2020 2:03 PM UTC

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.

Feb 1, 2020 8:21 AM UTC

@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