Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Specific instructions Arduino Nano BLE?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Specific instructions Arduino Nano BLE?

by rando on Mon Nov 04, 2019 12:45 pm

Howdy all!,

I'm wondering if there are specific instructions on how to load the new CP Alpha 5 release onto the Arduino Nano BLE 33?

It's easy to activate the native bootloader with a double tap, but I guess there's some command line magic after that?

Best,

Randy

rando
 
Posts: 60
Joined: Thu Jan 20, 2011 2:03 pm

Re: Specific instructions Arduino Nano BLE?

by danhalbert on Mon Nov 04, 2019 1:06 pm

We haven't yet written a guide about this. The problem is that CPy needs to use the Nordic SoftDevice, which must be loaded in flash at a fixed location: 0x0000 to 0x26000. But the Arduino bootloader is also at 0x0000, and does not include the SoftDevice. It also assumes that programs start at 0x2000, the usual offset. (I think: still studying this.) The Mbed code compiled by the Arduino IDE does not use the SoftDevice for BLE: it uses an Mbed library.

On our own samples of the Arduino Nano 33 BLE, we have replaced the Arduino bootloader with the nRF52 UF2 bootloader, soldering some jumpers on the bottom, and using a J-Link. There are general instructions for that here: https://learn.adafruit.com/circuitpytho ... bootloader. Also, here are jumper soldering instructions: http://djynet.net/?p=969. You actually only need the SWCLK and SWDIO jumpers: the rest are duplicates of regular Nano pins. But once you replace the bootloader, you can no longer use the board with the Arduino IDE.

So are you willing to dedicate your board to CPy, or do you still want to use it with Arduino? That's the dilemma, unfortunately.

danhalbert
 
Posts: 2073
Joined: Tue Aug 08, 2017 12:37 pm

Re: Specific instructions Arduino Nano BLE?

by rando on Mon Nov 04, 2019 1:12 pm

OK, I've done this dance before with some custom Nordic nRF528XX modules that were simple to attach a Jlink-EDU to the clock and data lines.

Pity the signals aren't more easily accessed. :(

rando
 
Posts: 60
Joined: Thu Jan 20, 2011 2:03 pm

Re: Specific instructions Arduino Nano BLE?

by rando on Mon Nov 04, 2019 4:12 pm

Here's the legend for the underside of the board ...
The pins are:

1 – Vref (3.3V in our case)
2 – SWDIO (data)
3 – SWCLK (clock)
4 – Ground
5 – Reset
Attachments
Nano33BlePin-1024x477.jpg
Nano33BlePin-1024x477.jpg (67.27 KiB) Viewed 297 times

rando
 
Posts: 60
Joined: Thu Jan 20, 2011 2:03 pm

Re: Specific instructions Arduino Nano BLE?

by kmevans on Mon Mar 16, 2020 1:02 am

Is this still the current status? If so could someone consider putting a quick note on the page https://circuitpython.org/board/arduino_nano_33_ble/ linking to this page and indicating that the use of a hardware JTAG/SWD debugger is required? Otherwise it's somewhat confusing.

kmevans
 
Posts: 30
Joined: Mon Feb 06, 2017 4:32 pm

Re: Specific instructions Arduino Nano BLE?

by danhalbert on Mon Mar 16, 2020 10:43 am

@kmevans Thanks; we added a note on the page with a pointer to this thread: https://github.com/adafruit/circuitpython-org/pull/423

danhalbert
 
Posts: 2073
Joined: Tue Aug 08, 2017 12:37 pm

Please be positive and constructive with your questions and comments.