I am using the BGM113 and BGLIB.
I have noticed while trying to control PB12 (just as a GPIO), that after calling:
/* Initialize stack */
I can no longer control the output.
GPIO control works as expected before the call. And after the call all the clocks are set correctly and i can see the DOUT reg change - but not the actual output.
Is the BLE stack using PB12 for something (some functionilty routed to it)? so i cannot us it externally?
Thanks in advance,
Our SDK examples initialize Packet Trace Interface (PTI) by default. PTI uses pins PB11-13.
Check if you can find following define in the main.c code: FEATURE_PTI_SUPPORT
This is defined by default. You can override it by writing following in the beginning of your main.c:
Thank you, that was the cause.