So, after using my Devkit and everything working OK as far as I can tell, I decided to order up a bare BT832XE module and place it on my PCB.
Flashed it with the same firmware inside SEGGER using the Nordic PCA10040 devkit.
Seems to connect, everything works fine. for a little bit. Then I will get a random disconnect. It does not show up at all in the debug terminal. as far as it knows, it still thinks its connected.
When I hit pause, it stops at DEADBEEF. With no rhyme or reason as to why.
I tried recompiling as debug, and then tried again. Same thing. the disconnects are random. it can happen 30 seconds in, and it can happen as late as 4 to 8 minutes. But it ALWAYS happens.
I tried adjusting the Clock to 500 with its internal oscillator (not using a crystal externally). No difference. I even tried adding extra bypass capacitance near the module on my PCB, the voltage going in appears to be stable so thats not it.
Any thoughts?