cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-WBA65RI BLE examples not working

strg-v
Associate II

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!

5 REPLIES 5
FilipKremen
ST Employee

Hello,

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

Thank you.

 

Best regards,

ST support

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

FilipKremen
ST Employee

Hello,

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

 

Best regards,

ST support

Ah I see :)

It's the STM32Cube_FW_WBA_V1.6.1

FilipKremen
ST Employee

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

 

Best regards,

ST support