2

I am currently trying to use micropython on an arduino Nano 33 BLE using MacOS. Following the instructions from arduino website I was able to complete steps 1-3. At step 4, I can find the bossac file but when I try to run the provided command:

bossac -e -w —offset=0x16000 —port=usbmodem14201 -i -d -U -R file.bin

the terminal says no devicefound on usbmodem14201 which is a port appearing under the nano board in the IDE.

As a sanity check I ran serialportlist in matlab and the same port was returned when the Nano is plugged in.

I even ran ioreg -p IOUSB in terminal and found the nano:‘’’ Arduino Nano 33 BLE@14200000 <class AppleUSBDevice, id 0x100008674, re$ ‘’’

That 142… number didn’t work either.

What am I doing wrong?

Rohit Gupta's user avatar
Rohit Gupta
6342 gold badges6 silver badges21 bronze badges
askedSep 2, 2023 at 7:09
Saif's user avatar

1 Answer1

1

Welcome to Arduino StackExchange:

  1. Firstly your computer translates double dashes into single long dashes. the dashes should be double dashes (--) for options such as--offset,--port, etc. The command should be:
    bossac -e -w --offset=0x16000 --port=usbmodem14201 -i -d -U -R file.bin

but I can see that your computer translated these-- to those ?

  1. Before you try to upload code confirm that the board is recognized by the system using thels command:

    ls /dev/cu.*

    This should list all serial devices and you should see something like/dev/cu.usbmodem14201 in the list if your board is connected.

  2. Ensure that you have the necessary permissions to access the serial port. You can try running thebossac command withsudo to run it as the superuser:

    sudo bossac -e -w --offset=0x16000 --port=usbmodem14201 -i -d -U -R file.bin
  3. Instead of just the port nameusbmodem14201, you might need to use the full path like/dev/cu.usbmodem14201:

    bossac -e -w --offset=0x16000 --port=/dev/cu.usbmodem14201 -i -d -U -R file.bin
  4. Check that the Arduino Nano 33 BLE is in the bootloader mode. Typically, this can be achieved by double pressing the reset button. When it's in bootloader mode, the board might appear on a different port. Check the ports again withls /dev/cu.* after you double press the reset button.

If you try all those and still it doesn't work maybe you should try installing latest drivers or check compatibility. Anyways, good luck.

answeredSep 3, 2023 at 17:23
b1n3t's user avatar

Your Answer

Sign up orlog in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

By clicking “Post Your Answer”, you agree to ourterms of service and acknowledge you have read ourprivacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.