Skip to main content
MSong.4
Associate
Jan 10, 2023 3:47 PM UTC
Solved

BLE server without LSE crystal as clock error. Working on WB55 board but not a custom board

I am trying to setup a ble server on a stm32 board that does not have a lse crystal. I have followed the normal steps and the steps that use the hse crystal instead (https://community.st.com/s/article/configuring-stm32wb-for-bluetooth-le-without-an-lse-crystal). I managed to get this setup to work on a WB55RG board but I am unable to get it to work on the custom board. The generated code gets to initializing the time server inside the generated HW_TS_Init function in the hy_timeserver.c file but it then errors saying “No source available for "<signal handler called>() at 0xfffffff9�?�?.

0693W00000Y7sQSQAZ.png 

The error occurs in this part of the function.

/**

* Initialize the timer server

*/

for(loop = 0; loop < CFG_HW_TS_MAX_NBR_CONCURRENT_TIMER; loop++)

{

aTimerContext[loop].TimerIDStatus = TimerID_Free;

}

0693W00000Y7sQIQAZ.pngIf I stop pause it before the loop I can step through the loop and make it a few lines down before the error happens.

When paused I am unable to step any further into the code because the debugger comes up with the error saying cannot find bonus of current function.

0693W00000Y7sPZQAZ.png 

I am not sure how to go about debugging this because I am not fully sure what is really causing the error and googling is not helping much.

Any ideas as what I should be looking for or potential fixes would be greatly accepted.

This topic has been closed for replies.
MSong.4
MSong.4Best answer
Associate
Jan 20, 2023 8:54 AM UTC

Thank you for the response, the fix was to uncomment the line #define USER_VECT_TAB_ADDRESS in the system_stm32wbxx.c file.

2 replies

Remy ISSALYS
ST Technical Moderator
Jan 19, 2023 5:11 PM UTC

Hello,

Can you share your configuration for SystemClock_Config and HAL_RTC_MspInit function?

Best Regards

MSong.4
MSong.4AuthorBest answer
Associate
Jan 20, 2023 8:54 AM UTC

Thank you for the response, the fix was to uncomment the line #define USER_VECT_TAB_ADDRESS in the system_stm32wbxx.c file.