bluetooth icon indicating copy to clipboard operation
bluetooth copied to clipboard

problems with arduino nano 33 ble

Open dbarrosop opened this issue 2 years ago • 5 comments

Hello, I am trying to use this package with an arduino nano 33 ble, which is based on the nrf52840, but I get the following error:

$ tinygo flash -target=nano-33-ble ./examples/heartrate/
# tinygo.org/x/bluetooth
adapter.go:9:10: undeclared name: Adapter
gatts.go:16:10: undeclared name: Characteristic

Is this board supported?

Thanks!

dbarrosop avatar Oct 08 '21 11:10 dbarrosop

Hi, @dbarrosop

Arduino Nano 33 BLE [Sense] boards are not directly supported right now.

I have couple of such boards and plan to use them with TinyGo. I've just successfully flashed one board via debug interface with help of J-Link. Would be nice to use regular USB, of course, to skip soldering and requirement of having a debug probe.

I've tried SoftDevice s140v7 and advertisement example, and it works! So high hopes here, I gonna work on support now.

Target most probably be nano-33-ble-s140v7 or something like it.

ysoldak avatar Oct 24 '21 20:10 ysoldak

@dbarrosop Please see here for instructions https://github.com/tinygo-org/tinygo/pull/2204

ysoldak avatar Oct 25 '21 19:10 ysoldak

Awesome, I will try to find some time to test it. If I understood you correctly, in order to flash the board with tinygo flash... the J-Link probe is needed, right?

dbarrosop avatar Oct 26 '21 11:10 dbarrosop

tinygo flash in this case uses nrfjprogand that in turn requires J-Link probe, so yes.

ysoldak avatar Oct 26 '21 12:10 ysoldak

You can probably also use other programmers (for example, one that's based on DAPLink) but then you have to specify it using the -programmer flag.

aykevl avatar Oct 27 '21 13:10 aykevl

Hi! Just wondering if this Is this planned at all?

andrewrynhard avatar Jan 16 '24 06:01 andrewrynhard

Hello @andrewrynhard this was resolved about 2 years ago.

Note that you do need to use a JLink board or other external programmer with this particular board. Hope that helps!

Now closing.

deadprogram avatar Jan 16 '24 11:01 deadprogram