JAndrassy / ArduinoOTA

Arduino library to upload sketch over network to Arduino board with WiFi or Ethernet libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nRF52 test

JAndrassy opened this issue · comments

nRF52 was not tested yet. it compiles.

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.

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

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!

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!

thank you. partially good news.

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

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.

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

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.

try to ask Sandeep in the library repository

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.