Adsense HTML/JavaScript

Tuesday, March 15, 2022

Remark on "Arduino Nano RP2040 Connect" of "Arduino Mbed OS Boards" vs "Arduino Mbed OS Nano Boards"

It's my case of selecting "Arduino Nano RP2040 Connect" of "Arduino Mbed OS Boards" vs "Arduino Mbed OS Nano Boards".

The case is:
I have both Arduino Nano RP2040 Connect and Seeed XIAO BLE (Sense).

To program in Arduino IDE (1.8.15), follow this post (in my another blogspot) to install Arduino Mbed OS Nano Boards for Arduino Nano RP2040 Connect, and follow former post to install Seeed nRF52 Boards for Seeed XIAO nRF52840 Sense.

After then, there are two selection of "Arduino Nano RP2040 Connect" from "Arduino Mbed OS Boards" and "Arduino Mbed OS Nano Boards".

Case I - "Arduino Nano RP2040 Connect" from "Arduino Mbed OS Boards", actually it come from Seeed nRF52 Boards 2.6.1:


Select board "Arduino Nano RP2040 Connect" from "Arduino Mbed OS Boards"


If you have ArduinoBLE library installed, its examples is located within INCOMPATIBLE.


If you compile any example, even Blink, error will be reported!


Arduino: 1.8.15 (Linux), Board: "Arduino Nano RP2040 Connect"

WARNING: library ArduinoBLE claims to run on samd, megaavr, mbed, apollo3, mbed_nano, mbed_portenta architecture(s) and may be incompatible with your current board which runs on nrf52 architecture(s).
Traceback (most recent call last):
  File "/home/pi/.local/bin/adafruit-nrfutil", line 10, in <module>
    sys.exit(cli())
  File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/pi/.local/lib/python3.7/site-packages/nordicsemi/__main__.py", line 239, in genpkg
    package.generate_package(zipfile_path)
  File "/home/pi/.local/lib/python3.7/site-packages/nordicsemi/dfu/package.py", line 189, in generate_package
    Package.normalize_firmware_to_bin(work_directory, firmware[FirmwareKeys.FIRMWARE_FILENAME])
  File "/home/pi/.local/lib/python3.7/site-packages/nordicsemi/dfu/package.py", line 329, in normalize_firmware_to_bin
    temp.tobinfile(new_filepath)
  File "/home/pi/.local/lib/python3.7/site-packages/nordicsemi/dfu/nrfhex.py", line 160, in tobinfile
    start_address = self.minaddr()
  File "/home/pi/.local/lib/python3.7/site-packages/nordicsemi/dfu/nrfhex.py", line 114, in minaddr
    min_address = max(self.get_mbr_end_address(), min_address)
TypeError: '>' not supported between instances of 'NoneType' and 'int'
exit status 1
Error compiling for board Arduino Nano RP2040 Connect.


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Case II - "Arduino Nano RP2040 Connect" from"Arduino Mbed OS Nano Boards" 2.8.0:


Select board "Arduino Nano RP2040 Connect" from "Arduino Mbed OS Nano Boards"


Now ArduinoBLE example is located under Custom Libraries.


Compile and Upload without error.


No comments:

Post a Comment