Skip to main content
Associate II
May 13, 2025 7:44 AM UTC
Solved

NUCLEO-WBA65RI BLE examples not working

I tried to run two examples on my new NUCLEO-WBA65RI. Specifically the 'BLE_p2pServer' and the 'BLE_HeartRate'. I followed this guide for the p2pServer:

https://wiki.st.com/stm32mcu/wiki/Connectivity:STM32WBA_Build_BLE_Project

Building works but when I try to execute it, the program seems to get stuck using the non volatile memory. With debugging I found out that it might be related to the SNVMA_Init() function. Inside this loop:

/* Erase the bank */
while (EraseSector (((nvmOffset + addressOffset) / FLASH_PAGE_SIZE),
 SNVMA_NvmConfiguration[nvmIdx].BankSize) == FALSE);

following the stack trace, I get at some point a write protected error. Is there an easy fix for that?

Thanks!

This topic has been closed for replies.
strg-vBest answer
Associate II
May 13, 2025 2:47 PM UTC

Hi,

The CubeProgrammer showed that no write protection is active anywhere. 

strgv_1-1747147620490.png

After I returned from lunch it suddenly worked. I can't say what is different now. I repeated the same steps I did the last days to run into this error. But I can't replicate it. Even attached another Nucleo board which also showed that error -> also works.

1. One thing I did is to simply set the "enable" checkbox in the FLASH section (in CubeMX). But I am unsure if that was the issue, since deactivating it still works.

2. Could you confirm that this is the correct configuration for the FLASH memory?

strgv_0-1747147423840.png

 

Thanks,

Vincent

 

7 replies

FilipKremen
ST Employee
May 13, 2025 9:20 AM UTC

Hello,

which IDE do you use? Can you please share also which WBA package do you use?

Thank you.

 

Best regards,

ST support

strg-vAuthor
Associate II
May 13, 2025 10:40 AM UTC

Hi, I use the STM32CubeIDE and have the NUCLEO-WBA65RI board. I think it is the STM32WBA65RIV7TR.

FilipKremen
ST Employee
May 13, 2025 11:09 AM UTC

Hello,

I'm sorry, I meant what firmware WBA package version do you use?

 

Best regards,

ST support

strg-vAuthor
Associate II
May 13, 2025 11:36 AM UTC

Ah I see :)

It's the STM32Cube_FW_WBA_V1.6.1

FilipKremen
ST Employee
May 13, 2025 11:54 AM UTC

Thank you, could you please also send your option bytes? Do you use any memory protection?

 

Best regards,

ST support

strg-vAuthorBest answer
Associate II
May 13, 2025 2:47 PM UTC

Hi,

The CubeProgrammer showed that no write protection is active anywhere. 

strgv_1-1747147620490.png

After I returned from lunch it suddenly worked. I can't say what is different now. I repeated the same steps I did the last days to run into this error. But I can't replicate it. Even attached another Nucleo board which also showed that error -> also works.

1. One thing I did is to simply set the "enable" checkbox in the FLASH section (in CubeMX). But I am unsure if that was the issue, since deactivating it still works.

2. Could you confirm that this is the correct configuration for the FLASH memory?

strgv_0-1747147423840.png

 

Thanks,

Vincent

 

FilipKremen
ST Employee
May 14, 2025 9:41 AM UTC

Hello,

yes, the settings should be fine. Please let me know if the issue occurs again.

 

Best regards,

ST support