cancel
Showing results for 
Search instead for 
Did you mean: 

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

Bk..1
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
Stecklo
Senior

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

View solution in original post

3 REPLIES 3
Stecklo
Senior

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
Associate

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.

Kolab
Senior

@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