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!

1 ACCEPTED SOLUTION

Accepted Solutions

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

 

View solution in original post

7 REPLIES 7
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

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

Hello,

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

 

Best regards,

ST support