variants: import Nano 33 BLE Sense updates from 0.55.0#201
Draft
soburi wants to merge 3 commits into
Draft
Conversation
There was a problem hiding this comment.
Pull request overview
This PR imports Arduino Nano 33 BLE Sense (nRF52840) variant updates, expanding the variant’s devicetree configuration and adding variant initialization logic to support board-specific peripherals and sensor power behavior.
Changes:
- Added
initVariant()logic to enable sensor power on startup and a 1200-bps reset hook. - Expanded the variant devicetree overlay with additional digital pins, dual I2C exposure, updated ADC resolution, flash partitions, and peripheral nodes.
- Added per-variant example skip/known-issue metadata files and a variant-specific Kconfig fragment.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| variants/arduino_nano_33_ble_nrf52840_sense/variant.cpp | Adds variant init code for sensor power enable and reset behavior. |
| variants/arduino_nano_33_ble_nrf52840_sense/arduino_nano_33_ble_nrf52840_sense.overlay | Updates devicetree mappings (pins/PWM/ADC/I2C/flash layout) for the Sense variant. |
| variants/arduino_nano_33_ble_nrf52840_sense/arduino_nano_33_ble_nrf52840_sense.conf | Adds variant Kconfig defaults (notably USB/BT/peripheral enables). |
| variants/arduino_nano_33_ble_nrf52840_sense/skip_these_examples.txt | Adds a variant-specific list of examples/libraries to exclude. |
| variants/arduino_nano_33_ble_nrf52840_sense/known_example_issues.txt | Adds a placeholder list for known failing examples for this variant. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+121
to
+127
| pwms = <&pwm1 1 PWM_HZ(500) PWM_POLARITY_NORMAL>, | ||
| <&pwm1 2 PWM_HZ(500) PWM_POLARITY_NORMAL>, | ||
| <&pwm1 3 PWM_HZ(500) PWM_POLARITY_NORMAL>, | ||
| <&pwm2 0 PWM_HZ(500) PWM_POLARITY_NORMAL>, | ||
| <&pwm2 1 PWM_HZ(500) PWM_POLARITY_NORMAL>, | ||
| <&pwm2 2 PWM_HZ(500) PWM_POLARITY_NORMAL>, | ||
| <&pwm2 3 PWM_HZ(500) PWM_POLARITY_NORMAL>; |
Comment on lines
+18
to
+28
| CONFIG_USB_DEVICE_STACK=y | ||
| CONFIG_USB_DEVICE_PRODUCT="Arduino Nano 33 BLE" | ||
| CONFIG_USB_DEVICE_MANUFACTURER="Arduino" | ||
| CONFIG_USB_DEVICE_VID=0x2341 | ||
| CONFIG_USB_DEVICE_PID=0x035A | ||
|
|
||
| CONFIG_USB_CDC_ACM=y | ||
| CONFIG_USB_CDC_ACM_RINGBUF_SIZE=1024 | ||
| CONFIG_UART_LINE_CTRL=y | ||
| CONFIG_CDC_ACM_DTE_RATE_CALLBACK_SUPPORT=y | ||
|
|
Comment on lines
+17
to
+24
| static const struct gpio_dt_spec enable_sensors = | ||
| GPIO_DT_SPEC_GET(DT_PATH(zephyr_user), pin_enable_gpios); | ||
| if (gpio_is_ready_dt(&enable_sensors)) { | ||
| gpio_flags_t flags = enable_sensors.dt_flags | GPIO_OUTPUT_HIGH | GPIO_ACTIVE_HIGH | NRF_GPIO_DRIVE_H0H1; | ||
| gpio_pin_configure(enable_sensors.port, enable_sensors.pin, flags); | ||
| gpio_pin_set(enable_sensors.port, enable_sensors.pin, HIGH); | ||
| delay(500); | ||
| } |
soburi
force-pushed
the
nano33_ble_sense_update
branch
from
July 5, 2026 14:35
d546a3b to
bdd2943
Compare
DhruvaG2000
requested changes
Jul 24, 2026
DhruvaG2000
left a comment
Member
There was a problem hiding this comment.
I see some open comments from copilot as well, please take a look and resolve
Comment on lines
+52
to
+59
| // chosen { | ||
| // zephyr,log-uart = &log_uarts; | ||
| // }; | ||
| // | ||
| // log_uarts: log_uarts { | ||
| // compatible = "zephyr,log-uart"; | ||
| // uarts = <&uart0 &board_cdc_acm_uart>; | ||
| // }; |
Member
Author
There was a problem hiding this comment.
Since USB enablement is also part of the series of PRs, I will handle this after completing those. That would come expected results.
soburi
marked this pull request as draft
July 24, 2026 13:58
- Refactored ZephyrSerial's send/receive logic and protected the RX/TX ring buffers with semaphores. - Modified `write()` to write the entire payload by calling `yield()` if the data exceeds buffer capacity. - Added support for `availableForWrite()`, `flush()`, and the `Print::write` overload to align with the Arduino Core implementation. - UART re-initialization logic move to `_reinit_if_needed()`. - Added a mechanism to shift the standard UART to `Serial1` (or higher) if `Serial` is occupied by `cdc_acm_serial` or `arduino_router_serial`. - Added macros (such as `ARDUINO_CONSOLE_SERIAL` and `ARDUINO_HARDWARE_SERIAL`) to reference `Serial` objects based on their specific use cases. Co-authored-by: Kurt Eckhardt <kurte@rockisland.com> Co-authored-by: Luca Burelli <l.burelli@arduino.cc> Co-authored-by: Martino Facchin <m.facchin@arduino.cc> Co-authored-by: Mattia Pennasilico <m.pennasilico@arduino.cc> Co-authored-by: Tamas Jozsi <tamas.jozsi@silabs.com> Co-authored-by: iabdalkader <i.abdalkader@gmail.com> Co-authored-by: kurte <kurte@rockisland.com> Co-authored-by: pennam <m.pennasilico@arduino.cc> Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Import codes to support SerialUSB function. Co-authored-by: Daniele Cloralio <d.cloralio@arduino.cc> Co-authored-by: Luca Burelli <l.burelli@arduino.cc> Co-authored-by: Martino Facchin <m.facchin@arduino.cc> Co-authored-by: iabdalkader <i.abdalkader@gmail.com> Co-authored-by: kurte <kurte@rockisland.com> Co-authored-by: pennam <m.pennasilico@arduino.cc> Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Bring in the Nano 33 BLE Sense variant changes from the 0.55.0 delta, including board configuration, extended pin mappings, peripheral setup, sensor power initialization, and example skip metadata. USB has not yet been implemented in this repository, cdc_acm_uart is disabled. Co-authored-by: Daniele Cloralio <d.cloralio@arduino.cc> Co-authored-by: Luca Burelli <l.burelli@arduino.cc> Co-authored-by: Martino Facchin <m.facchin@arduino.cc> Co-authored-by: Mike S <CyberMerln@gmail.com> Co-authored-by: bogdanf132 <bogdan_ivanus@yahoo.com> Co-authored-by: pennam <m.pennasilico@arduino.cc> Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
soburi
force-pushed
the
nano33_ble_sense_update
branch
from
July 24, 2026 21:39
bdd2943 to
15554a0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bring in the Nano 33 BLE Sense variant changes from the 0.55.0 delta, including board configuration, extended pin mappings, peripheral setup, sensor power initialization, and example skip metadata.
USB has not yet been implemented in this repository, cdc_acm_uart is disabled.
This is a temporary measure; additional modifications are required to allow the Nano 33 BLE and Nano 33 BLE Sense to coexist.