Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

Serial Display sample for Arudino Nano 33 BLE powered by nRF52840 chipset

Hi Support team,

    I have downloaded nRF5 SDK and found that there is a sample for serial via UART but however the samples (<SDK Folder>\examples\peripheral\uart) is available only for PCA series of hardware which are directly released by nordic. But i am looking for Arduino nano 33 ble which is powered by nRF 52840 SOC. (i checked <SDK Folder>\components\boards i don't see arduino nano 33 ble listed). Can you help me with that?

Basically i want a baremetal example (not involving either zephyr or mbed ) which i can use for bringing up the Arduino Nano 33 BLE board and print hello world on the COM port. I found one such example for nRF52832 in the link: https://git.threefortiethofonehamster.com/kelvin/spider-bot.

Thanks in advance.

Regards,

Nagesh.

Parents
  • Hi,

    But i am looking for Arduino nano 33 ble which is powered by nRF 52840 SOC. (i checked <SDK Folder>\components\boards i don't see arduino nano 33 ble listed). Can you help me with that?

    This is a third-party board, which means that you should contact the makers of that board. We are limited to what we can support on this platform. 

    Basically i want a baremetal example (not involving either zephyr or mbed ) which i can use for bringing up the Arduino Nano 33 BLE board and print hello world on the COM port.

    This example should be a good start. 

    regards

    Jared

  • Hi Jared,

        When i checked SDK folder under components/boards i see presence of arduino_primo which is now discontinued. Can this folder be updated with currently supported models such as Arduino nano 33 ble ?

  • Hi Jared,

       Tried as suggested by you, but i am kind of stuck trying to get baremetal UART and USB CDC_ACM up and running. Can i get a helping hand here ?

    I am using nRF5 SDK 17.0.2 for Arduino Nano 33 BLE MCU.

    path: github.com/.../arduino_nano_33_ble_baremetal.git

  • Hi,

    What exactly is the issue? I see 2 main.c files in your project, which one are you working with?

    regards

    Jared 

  • Hi Jared,

        I am using the following main.c arduino_nano_33_ble_baremetal/demo_appl/peripheral/uart/main.c

    build files: arduino_nano_33_ble_baremetal/demo_appl/peripheral/uart/arduino_nano_33_ble/armgcc/

    I have added a new pin files (arduino_nano_33_ble_baremetal/components/boards/arduino_nano_33_ble.hand have updated boards.h file with new macro which I have included in my makefile as well. 

     

    I am flasing the board bossac cmd line by connecting USB between Nano33Ble and ubuntu box "bossac -p /dev/ttyACM0 -R -e -w -v -b ./_build/*.bin " and then connect Nano33Ble via USB-TTL cable and expect output via "minicom -D /dev/ttyUSB0" which is not coming through.

    Thanks

  • Hi Jared,

       As soon as the flasing is done, USB is going into infinite disconnect and re-connect, can this be a problem due to which my application is working as expected?

  • With any empty main function as below, once flashed the board is getting into infinite CDC ACM disconnect and reconnect.
    ```
    int main()
    {
    return 0;
    }
    ```
    logs:
    ```
    [24888.377785] usb 1-3: new full-speed USB device number 72 using xhci_hcd
    [24888.528866] usb 1-3: New USB device found, idVendor=2341, idProduct=005a, bcdDevice= 0.11
    [24888.528869] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [24888.528870] usb 1-3: Product: Arduino Nano 33 BLE
    [24888.528871] usb 1-3: Manufacturer: Arduino
    [24888.528872] usb 1-3: SerialNumber: 0000000000000000768275C7726D618B
    [24888.530854] cdc_acm 1-3:1.0: ttyACM1: USB ACM device
    [24888.579867] usb 1-3: USB disconnect, device number 72
    [24888.885787] usb 1-3: new full-speed USB device number 73 using xhci_hcd
    [24889.036889] usb 1-3: New USB device found, idVendor=2341, idProduct=005a, bcdDevice= 0.11
    [24889.036892] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [24889.036894] usb 1-3: Product: Arduino Nano 33 BLE
    [24889.036895] usb 1-3: Manufacturer: Arduino
    [24889.036896] usb 1-3: SerialNumber: 0000000000000000768275C7726D618B
    [24889.038865] cdc_acm 1-3:1.0: ttyACM1: USB ACM device
    [24889.090968] usb 1-3: USB disconnect, device number 73
    [24889.397764] usb 1-3: new full-speed USB device number 74 using xhci_hcd
    [24889.548753] usb 1-3: New USB device found, idVendor=2341, idProduct=005a, bcdDevice= 0.11
    [24889.548756] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [24889.548757] usb 1-3: Product: Arduino Nano 33 BLE
    [24889.548758] usb 1-3: Manufacturer: Arduino
    [24889.548759] usb 1-3: SerialNumber: 0000000000000000768275C7726D618B
    [24889.550686] cdc_acm 1-3:1.0: ttyACM1: USB ACM device
    [24889.602053] usb 1-3: USB disconnect, device number 74
    [24889.909682] usb 1-3: new full-speed USB device number 75 using xhci_hcd
    [24890.064353] usb 1-3: New USB device found, idVendor=2341, idProduct=005a, bcdDevice= 0.11
    [24890.064381] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [24890.064382] usb 1-3: Product: Arduino Nano 33 BLE
    [24890.064383] usb 1-3: Manufacturer: Arduino
    [24890.064384] usb 1-3: SerialNumber: 0000000000000000768275C7726D618B
    [24890.067082] cdc_acm 1-3:1.0: ttyACM0: USB ACM device
    [24890.113231] usb 1-3: USB disconnect, device number 75
    ```

    Checked one discussion on zephyr thread about the [bossac offset](github.com/.../33352), but since i am using command line, even offset parameter is also not provided to bossac command.
    ```~/.arduino15/packages/arduino/tools/bossac/1.9.1-arduino2/bossac -p /dev/ttyACM0 -R -e -w -v -b ./_build/*.bin```

    Unable to figure what might have causing the problem. Kindly suggest on what might be causing the problem.
    attaching the path of my .ld and .S file as below:
    github.com/.../gcc_startup_nrf52840.S
    github.com/.../linker_script.ld

Reply
  • With any empty main function as below, once flashed the board is getting into infinite CDC ACM disconnect and reconnect.
    ```
    int main()
    {
    return 0;
    }
    ```
    logs:
    ```
    [24888.377785] usb 1-3: new full-speed USB device number 72 using xhci_hcd
    [24888.528866] usb 1-3: New USB device found, idVendor=2341, idProduct=005a, bcdDevice= 0.11
    [24888.528869] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [24888.528870] usb 1-3: Product: Arduino Nano 33 BLE
    [24888.528871] usb 1-3: Manufacturer: Arduino
    [24888.528872] usb 1-3: SerialNumber: 0000000000000000768275C7726D618B
    [24888.530854] cdc_acm 1-3:1.0: ttyACM1: USB ACM device
    [24888.579867] usb 1-3: USB disconnect, device number 72
    [24888.885787] usb 1-3: new full-speed USB device number 73 using xhci_hcd
    [24889.036889] usb 1-3: New USB device found, idVendor=2341, idProduct=005a, bcdDevice= 0.11
    [24889.036892] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [24889.036894] usb 1-3: Product: Arduino Nano 33 BLE
    [24889.036895] usb 1-3: Manufacturer: Arduino
    [24889.036896] usb 1-3: SerialNumber: 0000000000000000768275C7726D618B
    [24889.038865] cdc_acm 1-3:1.0: ttyACM1: USB ACM device
    [24889.090968] usb 1-3: USB disconnect, device number 73
    [24889.397764] usb 1-3: new full-speed USB device number 74 using xhci_hcd
    [24889.548753] usb 1-3: New USB device found, idVendor=2341, idProduct=005a, bcdDevice= 0.11
    [24889.548756] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [24889.548757] usb 1-3: Product: Arduino Nano 33 BLE
    [24889.548758] usb 1-3: Manufacturer: Arduino
    [24889.548759] usb 1-3: SerialNumber: 0000000000000000768275C7726D618B
    [24889.550686] cdc_acm 1-3:1.0: ttyACM1: USB ACM device
    [24889.602053] usb 1-3: USB disconnect, device number 74
    [24889.909682] usb 1-3: new full-speed USB device number 75 using xhci_hcd
    [24890.064353] usb 1-3: New USB device found, idVendor=2341, idProduct=005a, bcdDevice= 0.11
    [24890.064381] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [24890.064382] usb 1-3: Product: Arduino Nano 33 BLE
    [24890.064383] usb 1-3: Manufacturer: Arduino
    [24890.064384] usb 1-3: SerialNumber: 0000000000000000768275C7726D618B
    [24890.067082] cdc_acm 1-3:1.0: ttyACM0: USB ACM device
    [24890.113231] usb 1-3: USB disconnect, device number 75
    ```

    Checked one discussion on zephyr thread about the [bossac offset](github.com/.../33352), but since i am using command line, even offset parameter is also not provided to bossac command.
    ```~/.arduino15/packages/arduino/tools/bossac/1.9.1-arduino2/bossac -p /dev/ttyACM0 -R -e -w -v -b ./_build/*.bin```

    Unable to figure what might have causing the problem. Kindly suggest on what might be causing the problem.
    attaching the path of my .ld and .S file as below:
    github.com/.../gcc_startup_nrf52840.S
    github.com/.../linker_script.ld

Children
  • nagesh.shamnur said:
    Checked one discussion on zephyr thread about the [bossac offset](github.com/.../33352), but since i am using command line, even offset parameter is also not provided to bossac command.
    ```~/.arduino15/packages/arduino/tools/bossac/1.9.1-arduino2/bossac -p /dev/ttyACM0 -R -e -w -v -b ./_build/*.bin```

    How is this related to Zephyr? The example that you're using is based on the nRF5 SDK?

    nagesh.shamnur said:
    I am flasing the board bossac cmd line by connecting USB between Nano33Ble and ubuntu box "bossac -p /dev/ttyACM0 -R -e -w -v -b ./_build/*.bin " and then connect Nano33Ble via USB-TTL cable and expect output via "minicom -D /dev/ttyUSB0" which is not coming through.

    Do you have a development kit you could your application on? This board is third party which we don't support.

    regards

    Jared 

Related