Skip to content
Xila

Nordic

How Nordic drivers connect the Nano 33 BLE hardware to Xila.

Last updatedEdit page

The Platforms drivers_nordic crate supplies drivers for the nRF52840 used by the Arduino Nano 33 BLE. The board example assembles these drivers into a Xila runtime.

The board runs without a host operating system. Its example combines the Nordic executor, memory, and time implementations with internal flash, random number generation, GPIO, and a USB console.

The following diagram shows how the example connects drivers to its virtual file system (VFS).

Nordic drivers and their mount points in the virtual file systemInternal flashUSB consoleGPIORandomTimeLittleFS rootDevice nodes/devices/standard_io/devices/gpio/devices/random/source/devices/time/clock backs

The flash block device backs LittleFS at the root. USB standard input passes through the shared terminal input device. Output and error use USB output. GPIO, random, and time devices are mounted separately.

The example mounts GPIO character devices /devices/gpio/d0 through /devices/gpio/d13, /devices/gpio/a0 through /devices/gpio/a7, and led_red, led_green, and led_blue under /devices/gpio/. D13 starts low, so its LED is off. The RGB LEDs are active low and start high, so they are also off.

The USB CDC serial console receives bytes and sends output. Input goes through the shared terminal line editor, which echoes characters, handles line editing and control keys, and commits a line on CR or LF. For its exact behavior, see Shared.

The example formats the flash file system when mounting it fails.