mbed-ce / mbed-os

Arm Mbed OS is a platform operating system designed for the internet of things
https://mbed.com
Other
79 stars 15 forks source link

Add Arduino Nicla Sense ME support #271

Closed multiplemonomials closed 4 months ago

multiplemonomials commented 5 months ago

Summary of changes

This PR adds support for Arduino Nicla Sense ME. Arduino sent me a free test unit a while back so figured I may as well give it a shot. This one ended up actually being pretty easy to work with because, unlike most Arduinos, it has a standard Mbed CMSIS-DAP interface chip on it, no weird bootloader hijinks needed. Basically just had to add the PinNames.h, the CMake file, and the targets.json definition.

Impact of changes

Migration actions required

Documentation

https://github.com/mbed-ce/mbed-os/wiki/MCU-Info-Page:-Arduino-Nicla-Sense-ME


Pull request type

[] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[X] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[] Covered by existing mbed-os tests (Greentea or Unittest)
[X] Tests / results supplied as part of this PR

I ran the full set of Greentea tests on the nicla and they all passed except for test-mbed-hal-trng. This one is failing because they didn't connect the MCU reset line to the CMSIS DAP interface, so it can't reset the CPU when it tries to. Not sure what the best way to fix this is at this point...


Reviewers


multiplemonomials commented 4 months ago

Alright I finally found the time to write up a doc page for this board: https://github.com/mbed-ce/mbed-os/wiki/MCU-Info-Page:-Arduino-Nicla-Sense-ME