Skip to main content
This topic has been closed for replies.

3 replies

Guenael Cadier
ST Employee
March 12, 2020

hello @ashkanr65​ 

I downloaded original https://github.com/STMicroelectronics/STM32CubeWB

It seems projects for P-NUCLEO-WB55.Nucleo are only provided for SW4STM32 IDE. That might be the cause of your problem.

STM32CubeIDE Projects are provided for NUCLEO-WB35CE and P-NUCLEO-WB55.USBDongle targets. Could you try to open one of these to check your STM32CubeIDE setup (it should work) ?

Regarding SW4STM32 projects, I would suggest to try using SW4STM32 instead. Please check at https://www.openstm32.org/System%2BWorkbench%2Bfor%2BSTM32.

Regards

Guenael

ashkanr65
ashkanr65Author
Associate II
March 18, 2020

Hello @Guenael Cadier​ 

Based on your message, I downloaded SW4STM32 and also IAR workbench, but the examples don't allow me to build them in SW4STM32!

And if I press debug or run bottun I get this message:

Unable to launch

The selection cannot be launched, and there are no recent launches.

In IAR I could build and debug my Nucleo board, but it seems that they are not working and I couldn't see the board with both applications ("ST BLE Sensor" and "LightBlue")

I used HRM example.

What should I do? Is there any documentation or workshop?

I tried to learn from these two workshops:

https://www.st.com/content/dam/AME/2019/stm32wb-workshops-2019/STM32WB_Workshop_Presentation.pdf

and

https://www.youtube.com/watch?v=5Lp9cDBzG94&list=PLnMKNibPkDnGRfqUO1Q_-1nW-tOKfDQbc

But non of them are working with the latest version.

Guenael Cadier
ST Employee
March 18, 2020

Hello @ashkanr65​ ,

Could you provide the output log of your compilation issues under IAR (please use the IAR version recommended into release notes of your Firmware package) ?

There should be no issues in compiling delivered examples ...

Debugging is another story, as you need to compile first ...

Regards

Guenael

ashkanr65
ashkanr65Author
Associate II
March 18, 2020

Thank you @Guenael Cadier​ to answer me.

Of course I need to build (compile) and then run or debug. but the point is its button is off (as you can see in my screenshot I provided in last message). BTW, as I said I can compile and debug with IAR but board's BLE is not activated. This is LOG of compilation:

Wed Mar 18, 2020 12:09:35: IAR Embedded Workbench 8.40.1 (C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.3\arm\bin\armproc.dll) 

Wed Mar 18, 2020 12:09:35: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.3\arm\config\debugger\ST\STM32WBxx.dmac 

Wed Mar 18, 2020 12:09:35: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.3\arm\config\flashloader\ST\FlashSTM32WB_M4.mac 

Wed Mar 18, 2020 12:09:35: Connected to ST-Link/V2-1 [SWD mode 1800 kHz] [Access port: 0] Firmware V2.J36.S26 (Probe no: 67060730) 

Wed Mar 18, 2020 12:09:35: Initial reset was performed 

Wed Mar 18, 2020 12:09:35: 736 bytes downloaded and verified (9.21 Kbytes/sec) 

Wed Mar 18, 2020 12:09:35: Loaded debugee: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.3\arm\config\flashloader\ST\FlashSTM32WB_M4.out 

Wed Mar 18, 2020 12:09:35: Target reset 

Wed Mar 18, 2020 12:09:36: Unloaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.3\arm\config\flashloader\ST\FlashSTM32WB_M4.mac 

Wed Mar 18, 2020 12:09:36: Downloaded C:\Users\cephis\Desktop\STM32CubeWB-master\Projects\P-NUCLEO-WB55.Nucleo\Applications\BLE\BLE_HeartRate\EWARM\BLE_HeartRate\Exe\BLE_HeartRate.out to  

flash memory. 

Wed Mar 18, 2020 12:09:36: 17118 bytes downloaded into FLASH (14.35 Kbytes/sec) 

Wed Mar 18, 2020 12:09:36: Hardware reset with strategy 2 was performed 

Wed Mar 18, 2020 12:09:37: 17118 bytes verified (9.55 Kbytes/sec) 

Wed Mar 18, 2020 12:09:37: Loaded debugee: C:\Users\cephis\Desktop\STM32CubeWB-master\Projects\P-NUCLEO-WB55.Nucleo\Applications\BLE\BLE_HeartRate\EWARM\BLE_HeartRate\Exe\BLE_HeartRate.out 

Wed Mar 18, 2020 12:09:37: Hardware reset with strategy 0 was performed 

Wed Mar 18, 2020 12:09:37: Target reset 

Wed Mar 18, 2020 12:09:37: DMAC: DBGMCU_CR was modified. DBG_SLEEP, DBG_STOP and DBG_STANDBY bits are set. 

Wed Mar 18, 2020 12:09:37: DMAC: Debug module will be enabled during SLEEP/STOP/STANDBY modes. 

Guenael Cadier
ST Employee
March 18, 2020

Sorry, I'm a bit lost. I understood you were having compilation issues ("the examples don't allow me to build them in SW4STM32").

My point here was just to confirm if compilation (or build if you prefer) was only related to the IDE (SW4STM32) or to the project files you were compiling.

Using IAR, log you show me is not compilation log. It looks like launching debugger in IAR. So I assume compilation is ok 0 errors, 0 warnings under IAR.

this means that all project files are present, and compilation/build should be ok also on SW4STM32.

So do you have only execution issue ?

If not, please provide compilation log under SW4STM32.

Regarding the snapshot you attached in SW4STM32 tool, button you mention is for building the app. Could you use the "bug" one for download/debug (the red one in attached snapshot) :

I'm not WB expert, if your problems are related to project execution (compilation Ok flah download OK using debugger and debugging execution OK), I will check with WB colleagues for help on your topic.

Regards

Guenael

Cartu38 OpenDev
Graduate II
March 19, 2020

What's a bad advice to rely on SW4STM32 ... such is almost deprecated, not more improved, ... Please rely on STM32CubeIDE which is ST supported, new generation IDE etc. ...

Even if only SW4STM32 examples available for some device(s) STM32CubeIDE is fully supporting SW4STM32 projects.

Please enjoy your WB BLE example ... only requires 3 steps ...

1) File > Import

0693W000000UKcjQAG.png

2) Point to your example path (up to SW4STM32/<project name> segments)

0693W000000UKd8QAG.png

3) Press finish & you're done being able to build the project

0693W000000UKdDQAW.png

ashkanr65
ashkanr65Author
Associate II
March 23, 2020

Hi @Cartu38 OpenDev​ ,

Actually your way is a good way and I use CubeIDE, but currently I need to find the main ways to import and export files and then convert them.

Thank you