Arduino IDE with STM32 WB55 (STM32WB55RGV6)

Hello I'm trying to use my Nucleo board with arduino IDE.

I've installed STM32 board library (https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json)

I've selected Generic STM32WB as board and Generic WB55RGVx as board part number.
Upload method: SWD

Is there any additional settings I need to do? I even went into CubeIDE and updated the firmware. Do I need to flash it with a specific .bin? I first looked at this github project but that's jsut for bluetooth functionality if I understand correctly.

In the arduino log I used the basic Blink example sketch and it seem like it flashes correctly but the led do not start to blink:

      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.16.0                  
      -------------------------------------------------------------------

ST-LINK SN  : 0670FF515551678367073554
ST-LINK FW  : V2J42M27
Board       : P-NUCLEO-WB55
Voltage     : 3.24V
SWD freq    : 4000 KHz
Connect mode: Under Reset
Reset mode  : Hardware reset
Device ID   : 0x495
Revision ID : Rev Y
Device name : STM32WB5x/35xx
Flash size  : 1 MBytes
Start Address : 8000000
Device type : MCU
Device CPU  : Cortex-M4
BL Version  : 0xD5
Debug in Low Power mode enabled



Memory Programming ...
Opening and parsing file: IR_transmitterReceiver.ino.bin
  File          : IR_transmitterReceiver.ino.bin
  Size          : 18.68 KB 
  Address       : 0x08000000 


Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 4]
Download in Progress:


File download complete
Time elapsed during download operation: 00:00:00.564

RUNNING Program ... 
  Address:      : 0x8000000
Application is running, Please Hold on...
Start operation achieved successfully

Any ideas? Thanks!

I don't have a Nucleo board so can't help with any specifics, but one thing I would suggest is to check which pin the blink sketch is toggling (LED_BUILTIN) as it may not be the pin with the LED connected to it - especially if you have selected a generic board.

You would need to consult the schematic for your Nucleo board to determine the actual pin used.

I also tried with an external led and used the A0 pin, did not work either.

Sorry I can't help. Hopefully someone with STM32 knowledge will be able to help you further.

Alright thank you

Just a thought - does the generic board you have selected understand actual port pin names?

Have you tried using port pin names like PA0, PA1 etc.

If you use names like A0 or LED_BUILTIN, then you need to dig into the board support files to see which actual pin on the chip the originator of the support files has mapped to these names.

If I want to use pin 28 I've tested 28, D28 and A0 (which is labeled on the board). Nothing seems to work unfortunatly.

Ill look around if I can find some documentation.

I had a quick prod about the various files available on the ST website and found a web page for a P-NUCLEO-WB55 board.

I don't know if it's your board or if you've see or had access to any of this so apologies if it's a repeat of what you already know:

This schematic shows the various headers on the board:

This schematic shows (I think) the processor:

I downloaded the STM32duino files from github and had a poke about. If I go with "Generic STM32WB series" and then go with a board part number of "Generic WB55RGVx", then I think the useful information is in files in the path:

\portable\packages\STMicroelectronics\hardware\stm32\2.7.1\variants\STM32WBxx\WB55R(C-E-G)V

The variant_P_NUCLEO_WB55RG.h file appears to show that LED_BUILTIN is defined and it's assigned to LED1 which the file suggests is the blue LED. There are also definitions for LED2 (green) and LED3 (red).

You might want to poke around in some of the other files in that folder as they should hopefully give you a clue as to how to correctly refer to the pin you want.

Of course, if i've got the wrong board, then this is not going to be much use to you - but it may point you in the right direction.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.