sandeepmistry / arduino-nRF5

Arduino Core for Nordic Semiconductor nRF5 based boards
Other
872 stars 278 forks source link

Missing 'NRF5 Flash Softdevice' entry in tools menu #512

Open Flavelius opened 11 months ago

Flavelius commented 11 months ago

Hi, i have this strange issue where in my arduino ide (2.1.1) there's no 'NRF5 Flash Softdevice' menu entry under the tools menu: grafik

I've followed the readme and downloaded the jar, placed it in the path: ~/Arduino/tools/nRF5FlashSoftDevice/tool/ and installed the board from the boardmanager. It seems i can almost successfully upload sketches (uploading the blink sketch succeeds, even though nothing blinks on my board afterwards, but that's probably just an LED mapping issue). Only the softdevice upload tool menu entry is missing.

Edit: i also downloaded both S110 and S130 manually and placed them in: ~/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/SDK/components/softdevice/s1[1/3]0/hex/ which didn't change anything

What could be the issue?

Mboudali commented 11 months ago

Try IDE 1.8.x

Flavelius commented 11 months ago

Thanks, that does indeed work. The readme should be updated to mention that this requires the legacy arduino IDE.

Mboudali commented 11 months ago

What board/nRF are you using? Did you manage to pair it with android or windows?

Flavelius commented 11 months ago

Generic nrf51822, it's a cheap one (holyiot) from eBay just for experimentation. By default it didn't seem to have Bluetooth enabled firmware, but using the legacy ide I was able to flash the example counter which does indeed work as expected and I can subscribe to its updates via the nrf connect app on android

Mboudali commented 11 months ago

When you pair it with windows, does it say "connected"? Does it create a port? (device manager -> Ports (COM & LPT)) I can't get my nRF52833 to connect. However, I can access it using the nRF connect app.

Flavelius commented 11 months ago

i'm not on windows, but ubuntu. I'm connecting to it via ST-link V2, which doesn't create a serial port, it connects as just a regular USB device.

Mboudali commented 11 months ago

Once you finish programming the module and deploy your code. Can you connect to it using Bluetooth?

Flavelius commented 11 months ago

As i already mentioned, yes, it works.

tomfleet commented 9 months ago

I am not very sure that this is how BLE serial works.

"Serial" as you are thinking is a butchered adaptation of the GATT profiles. With data being exchanged via advertising packets.

This takes some glue on the other end, I've never - to my memory - seen anyone using it to talk to windows like this.

Actuall Bluetooth serial was a thing in older pre-LE profiles. But you'll probably want to look at the various chrome examples from adafruit etc for "Web Bluetooth" if you want an easy path to doing what I think you're trying to do.

You won't get much from the standard windows Bluetooth API here for serial port usage.

It's not an issue with the Nordic side of things. But an issue with the PC OS

On Tue, 1 Aug 2023, 02:55 M.B, @.***> wrote:

When you pair it with windows, does it say "connected"? Does it create a port? (device manager -> Ports (COM & LPT)) I can't get my nRF52833 to connect. However, I can access it using the nRF connect app.

— Reply to this email directly, view it on GitHub https://github.com/sandeepmistry/arduino-nRF5/issues/512#issuecomment-1659445970, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADEBE3CQLGHKJRTDJWFJY3XTBOXPANCNFSM6AAAAAA2ZRZ62E . You are receiving this because you are subscribed to this thread.Message ID: @.***>

rogerclarkmelbourne commented 8 months ago

Did you fix the original problem for this issue.

Did you copy the flashsoftdevice jar into the new folder you need to make according to the instructions in the ReadMe.

Doing this will give you the Flash softdevice menu option, but at the moment it doesn't seem to work, as when it tries to download the softdevice zip file, there is a HTTP error 403

So you have to manually download the S130 or S110 softdevice zip file from Nordic and unzip it and put it onto the appropriate location in the %appdata% local arduino15 core etc etc etc location

Flavelius commented 8 months ago

if i remember correctly then i did follow all of the logical steps, like moving the manually downloaded file to the required and other folders that seemed logical. But only downgrading the ide helped.