Skip to content

nRF52 test #1

Closed
Closed
@JAndrassy

Description

@JAndrassy

nRF52 was not tested yet. it compiles.

Activity

sigalabs

sigalabs commented on Jan 23, 2021

@sigalabs

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

JAndrassy commented on Jan 24, 2021

@JAndrassy
OwnerAuthor

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

sigalabs commented on Jan 24, 2021

@sigalabs

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

sigalabs commented on Jan 24, 2021

@sigalabs

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

JAndrassy commented on Jan 24, 2021

@JAndrassy
OwnerAuthor

thank you. partially good news.

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

sigalabs

sigalabs commented on Jan 24, 2021

@sigalabs

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

JAndrassy commented on Jan 24, 2021

@JAndrassy
OwnerAuthor

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

sigalabs

sigalabs commented on Jan 26, 2021

@sigalabs

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

JAndrassy commented on Jan 26, 2021

@JAndrassy
OwnerAuthor

try to ask Sandeep in the library repository

sigalabs

sigalabs commented on Jan 27, 2021

@sigalabs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sigalabs@JAndrassy

        Issue actions

          nRF52 test · Issue #1 · JAndrassy/ArduinoOTA