2021-10-14 12:19 PM
Hello guys,
I've implemented SBSFU along side with an USB standalone loader for my project using a STM32WB. My question is, should i implement hardware semaphores and shci_notification for CPU2 during flash erasing and writing operations on my USB external loader? I don't use BLE in this loader, but the user app will and the microcontroller CPU2 will have a running ble stack.
I'm not sure how the "reset" of CPU2 works, if my userapp call for "NVIC_SYSTEM_RESET()", will CPU2 reset aswell? After reset, will CPU2 only start when my application call appe_init() or will it start automatically? I'm considering that because if CPU2 reset when microcontroller get a software reset and only runs after the call of appe_init(), i wouldn't need any hardware semaphores in my external loader, since CPU2 would be halted, right?
So, should or shouldn't implement hardware semaphores and shci_notification in my USB loader?
Solved! Go to Solution.
2021-10-25 02:14 AM
Hello @MBuen.1
I'm sorry for late answer. As I'm not WB specialist, I had to check with my colleague.
NVIC_SYSTEM_RESET() resets both cores but after reset only CM4 boots.
So, to update firmware or stack you should go through a reset first.
This is actually managed in the version 2.5.0 of the SBSFU together with the standalone loader.
The project located in STM32CubeExpansion_SBSFU_V2.5.0\Projects\P-NUCLEO-WB55.Nucleo\Applications\2_Images\ is behaving as following:
Best regards
Jocelyn
2021-10-25 02:14 AM
Hello @MBuen.1
I'm sorry for late answer. As I'm not WB specialist, I had to check with my colleague.
NVIC_SYSTEM_RESET() resets both cores but after reset only CM4 boots.
So, to update firmware or stack you should go through a reset first.
This is actually managed in the version 2.5.0 of the SBSFU together with the standalone loader.
The project located in STM32CubeExpansion_SBSFU_V2.5.0\Projects\P-NUCLEO-WB55.Nucleo\Applications\2_Images\ is behaving as following:
Best regards
Jocelyn
2021-10-25 01:01 PM
It's all good mate!
I really appreaciate your effort for answering my question. It was of a huge help. Thank you!