This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF8001 w/o UART connected: How?

I have a custom board designed which implements a Arduino Micro (ATmega32U4) and an nRF8001 chip based upon Richard Clarks' nRF8001 breakout. The Arduino FW uses a slightly enhanced version of RedBear's nRF8001 library which in turn calls lib_aci() Nordic function. Both were pulled from GIT last week.

I've gotten the code written to a point were I can send/recv data either via USB or via BLE using the nRF8001. The problem is that I can't seem to make the nRF8001 libraries continue to function if the USB UART (Serial) connected.

What's the trick? AFAIK; debug messages are disabled in the routines as I'm initing the nRF libs with: lib_aci_init(&aci_state, false);

I can use USB to initiate a connection over BLE; but as soon as I disconnect the usb serial monitor (teraterm); the BLE device disappears.

...now as I formulated this question; It occurs to me that perhaps the disconnection of the serial port is causing a glitch of power since I have no external DC power supply. Going to wire one up now to see if it's that.

  • Turns out I was right on the money. When I "disconnect" the usb port via software; there must be a glitch on my powersupply which results in unexpected issues. I didn't put a scope on it; but powering this with an external supply resolved my issue. It goes right into BLE mode as I expect.

    Closing as not-a-bug / issue.

Related