Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nRF52 test #1

Closed
JAndrassy opened this issue Jan 1, 2019 · 10 comments
Closed

nRF52 test #1

JAndrassy opened this issue Jan 1, 2019 · 10 comments
Labels
help wanted Extra attention is needed

Comments

@JAndrassy
Copy link
Owner

nRF52 was not tested yet. it compiles.

@JAndrassy JAndrassy added the help wanted Extra attention is needed label Jan 1, 2019
@sigalabs
Copy link

sigalabs commented Jan 23, 2021

i am trying to test it on a nrf52832 board and when it's calling the .open() method the program is crashing and restarting. Tried with Sandeep nrf52 core with and without a SoftDevice.

@JAndrassy
Copy link
Owner Author

thank you. please try without soft device with extras/nRF5/platform.local.txt from GitHub. I just updated it with build extra flags for no-delete-null-pointer-checks

@sigalabs
Copy link

sigalabs commented Jan 24, 2021

Hi @JAndrassy , thanks for your response, i can confirm that its working great on the nrf52832 chip. I am trying now with the softdevice.
Thank you!

@sigalabs
Copy link

With the softdevice i have some issues, i am trying with the BLESerial example ... before trying OTA i am stopping the service using bleSerial.end(); function then trying to do the OTA and the MCU is crashing and restarts.
Any thought on this? thank you very much!

@JAndrassy
Copy link
Owner Author

thank you. partially good news.

did you build and upload the sketch with softdevice selected in Tools menu?

@sigalabs
Copy link

Yes, i am using softdevice 2.0.1 and BLESerial example... i am sure it has to do with SoftDevice usage, if i dont use the bleSerial.start() it's ok... probably i need somehow to disable completely the Softdevice, i hoped that bleSerial.end(); would do the work but its crashing. I ll keep trying and let you know.

@JAndrassy
Copy link
Owner Author

JAndrassy commented Jan 24, 2021

why bleSerial? only peripheral mode of BLEPeripheral library is supported for nRF5. the soft device is on same MCU

@sigalabs
Copy link

I am using this one example
https://github.com/sandeepmistry/arduino-BLEPeripheral/tree/master/examples/serial

to implement a virtual Serial between MCU and mobile app. Its working great till now with the nrf52, only the .end() function is not stopping the BLE service for some reason.

@JAndrassy
Copy link
Owner Author

try to ask Sandeep in the library repository

@sigalabs
Copy link

I have found a solution, i am using the SD function sd_ble_gap_adv_stop(); just before the .end() and it stops advertising now.
When the BLE is stopped that way your library is working great on the nRF52832 chip, thank you very much for your support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants