2022-01-16 01:26 AM
Hello!
I'm developing BlueNRG-1 application, I want to add the OTA functionality to my project. But when I flash default OTA Service Manager to empty device it disconnects from ST-Link Utility and can't connect again. The only way to flash again is to pull BOOT pin high. So, is OTA Service Manager firmware disables SWD port? How I can change that? Thanks.
2022-01-16 11:49 PM
Hi @Andrew B ,
I can confirm OTA service manager is not affecting SWD interface (ST-Link) behavior. SWD is functional after flashing OTA service manager.
What I suspect here is normal behavior because of sleep mode. Indeed OTA service manager integrates sleep mode manager - Cortex-M0 core is switch off between 2 RF events (sleep).
If BlueNRG-1 in sleep mode, you can not attached ST-link to it as core and peripherals are off.
To confirm this hypothesis, you can comment sleep mode request in OTA service manager projects.
==> /* BlueNRG_Sleep(SLEEPMODE_NOTIMER, 0, 0); */
Regards,
Sebastien.