cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB BLE and EEPROM casuing HardFault

SikandarLF
Associate III

Hi Community

Hope you guys are well. I am trying to implement Bluetooth and emulated eeprom working. i have followed the ble_heartrate_eeprom_emul example and i got blue tooth and eeprom emulation working, the problem i am having is when the EEPROM emulation is implement   my function in custom_stm.c does not work properly, for example when i used any of the GPIO, the controller goes into hard fault, and current went from 0.013A to 0.150A , but as soon as i remove the eeprom emulation code , everything works perfectly. so basically i cant get my things working when there is eeprom emulation , i have tried to release the semaphore 7 in my function but still the same. 

 

there is one more thing, in app_entry.c we have default code , check file attached, 

but the ble heart rate eeprom emulation tell us to put this code, check file attached,

and if i put that code and generate the code again from cubemx it is removed.

Assistance is appreciated!

1 ACCEPTED SOLUTION

Accepted Solutions

i created a support ticket for it. and they coudnt fix it either. so now i am using external eeprom to store data. but thanks for help

 

View solution in original post

3 REPLIES 3
STTwo-32
ST Employee

Hello @SikandarLF 

I've personally tested on the P-Nucleo-WB55 and everything works fine. I suggest you test it using the last Version of the X-Cube and the STM32CubeIDE. If you still have any issue, Please add more details (screenshots, detailed description,...).

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

i have been using the latest version but when the emulated eeprom is implemented, if i try to use any gpio mcu goes into hardfault. but emulated eeprom and ble works fine

i created a support ticket for it. and they coudnt fix it either. so now i am using external eeprom to store data. but thanks for help