I have looked for any other forum post with this problem but I could not find anything. Maybe someone has seen a similar issue.
Currently in my application, which is a modification of the KeyFobDemo, I set initial_advertising_enable = TRUE and I can see the device in BTool. I have the button toggle advertising on/off so when I press the button the advertising turns off.
However upon another button press the gapProfileState will be set to GAPROLE_ADVERTISING and it does go through the code that should set up advertising. But I can not see the device in BTool or other on other Bluetooth devices.
After some testing it also seems that if I do not start advertising on initialization I can not start advertising at all.
Any help or insight would be appreciated. I can post code snippets if needed, I did not change much from the basic KeyFobDemo code though.