Having trouble with Bluetooth STM32WB55RG
Hey everyone, I am using STM32WB55RGV7 processor. At the beginning of my bootloader program
if (((*(__IO uint32_t*)address) & 0x2FFE0000 ) == 0x20000000) // if there is an application at the APP_START_ADDRESS { typedef void(*pFunction)(void);
pFunction Jump_To_Application;
uint32_t jump_address = *(__IO uint32_t*)(address + 4);
Jump_To_Application=(pFunction)jump_address;
__set_PRIMASK(1);
SysTick->CTRL = 0;
__set_MSP(*(__IO uint32_t*) address);
Jump_To_Application();
}
I use the function and so my program jumps to address 0x8050000. When I jump to this program, I start with the commands
__set_PRIMASK(0);
SCB->VTOR = 0x8050000;
and I do not have access to my M0 core after this point. Before using the Bluetooth feature, I was starting the program from address 0x8050000 as I wanted and after that I had no problems. But after jumping, I can't access the shci functions at all and the program crashes. My problem is
https://community.st.com/t5/stm32-mcus-wireless/having-trouble-with-bluetooth/m-p/204476/highlight/true#M8330
matches this topic. I am having the exact same problems.
