bluetooth
bluetooth copied to clipboard
problems with arduino nano 33 ble
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!
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.
@dbarrosop Please see here for instructions https://github.com/tinygo-org/tinygo/pull/2204
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?
tinygo flash
in this case uses nrfjprog
and that in turn requires J-Link probe, so yes.
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.
Hi! Just wondering if this Is this planned at all?
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.