Closed pstyczynski closed 6 years ago
what board are you using? most softdevices on mbed boards are expecting 32khz external crystal for LFOSC. Some generic modules may or may not have the extra LFOSC crystal, and need to be configured to use internal RC for LFOSC.
Also, I have had some issues, where the board I chose had mismatch with the board I was actually using in terms of ram. If this is wrong, I think the stack pointers will be initialized wrong, and wont work. (But I dont htink this is your problem, as led blink would work without initializing the ble class - so probably the previous issue I mentioned.)
Can you share your platformio.ini and info about the actual board you are using?
Could tou reproduce this issue with the latest dev/platform version?
Please reopen if you still need help
Hello, I'm developing code for board with nRF51822 chip. First I was writing it in mbed editor and everything was working fine. Now I want to try PlatformIO integrated with VS Code. After installing everything, I created new project, added mbed and nrf51822 libs to it. Everything was fine, because simple blink code compile without error and after upload to board it works.
Then I wanted to test BLE and then I found problem. My code below:
Code compile without error, but after upload to device nothing happen. When I comment line:
BLEDevice ble;
led blink, but bleInitComplete don't run and I don't see my device on phone. There is any way to debug step by step through constructor of BLEDevice to check what could happen?