text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```yaml description: Space Cubics HRMEM (High-reliability Memory) compatible: "sc,hrmem" include: base.yaml properties: reg: required: true ```
/content/code_sandbox/boards/sc/scobc_module1/dts/bindings/sc,hrmem.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
39
```ini source [find interface/cmsis-dap.cfg] transport select swd source [find target/swj-dp.tcl] adapter speed 5000 set _CHIPNAME cortex_m3 set _ENDIAN little set _WORKAREASIZE 0x4000 set _CPUTAPID 0x412FC231 swj_newdap $_CHIPNAME cpu -expected-id $_CPUTAPID dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0 if {![using_hla]} { cortex_m reset_config sysresetreq } ```
/content/code_sandbox/boards/sc/scobc_module1/support/openocd.cfg
ini
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
178
```ini # # Akizuki Denshi FT2232D Module (M-02990) # # path_to_url # adapter driver ftdi ftdi device_desc "Dual RS232" ftdi vid_pid 0x0403 0x6010 # Every pin set as high impedance except TCK, TDI, TDO and TMS ftdi layout_init 0x0008 0x000b ```
/content/code_sandbox/boards/sc/scobc_module1/support/akizuki-m-02990.cfg
ini
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
92
```ini source [find interface/ft232r.cfg] source [find scobc-module1.cfg] ```
/content/code_sandbox/boards/sc/scobc_module1/support/openocd-ft232r.cfg
ini
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
21
```ini # Yasushi SHOJI <yashi@spacecubics.com> if { [info exists CHIPNAME] } { set _CHIPNAME $CHIPNAME } else { set _CHIPNAME cortex_m3 } if { [info exists CPUTAPID ] } { set _CPUTAPID $CPUTAPID } else { set _CPUTAPID 0x4ba00477 } if { [info exists WORKAREASIZE] } { set _WORKAREASIZE $WORKAREASIZE } else { set _WORKAREASIZE 0x4000 } jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0 if {![using_hla]} { cortex_m reset_config sysresetreq } ```
/content/code_sandbox/boards/sc/scobc_module1/support/scobc-module1.cfg
ini
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
259
```ini source [find akizuki-m-02990.cfg] adapter speed 2000 source [find scobc-module1.cfg] ```
/content/code_sandbox/boards/sc/scobc_module1/support/openocd-ftdi.cfg
ini
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
29
```restructuredtext .. _w5500_evb_pico: Wiznet W5500 Evaluation Pico ############################ Overview ******** W5500-EVB-Pico is a microcontroller evaluation board based on the Raspberry Pi RP2040 and fully hardwired TCP/IP controller W5500 - and basically works the same as Raspberry Pi Pico board but with additional Ethernet via W5500. The USB bootloader allows the ability to flash without any adapter, in a drag-and-drop manner. It is also possible to flash and debug the boards with their SWD interface, using an external adapter. Hardware ******** - Dual core Arm Cortex-M0+ processor running up to 133MHz - 264KB on-chip SRAM - 16MB on-board QSPI flash with XIP capabilities - 26 GPIO pins - 3 Analog inputs - 2 UART peripherals - 2 SPI controllers - 2 I2C controllers - 16 PWM channels - USB 1.1 controller (host/device) - 8 Programmable I/O (PIO) for custom peripherals - On-board LED - 1 Watchdog timer peripheral - Wiznet W5500 Ethernet MAC/PHY .. figure:: img/w5500_evb_pico_side.png :align: center :alt: W5500 Evaluation Board Wiznet W5500_EVB_PICO evaluation board (Image courtesy of Wiznet) Supported Features ================== The w5500_evb_pico board configuration supports the following hardware features: .. list-table:: :header-rows: 1 * - Peripheral - Kconfig option - Devicetree compatible * - NVIC - N/A - :dtcompatible:`arm,v6m-nvic` * - UART - :kconfig:option:`CONFIG_SERIAL` - :dtcompatible:`raspberrypi,pico-uart` * - GPIO - :kconfig:option:`CONFIG_GPIO` - :dtcompatible:`raspberrypi,pico-gpio` * - ADC - :kconfig:option:`CONFIG_ADC` - :dtcompatible:`raspberrypi,pico-adc` * - I2C - :kconfig:option:`CONFIG_I2C` - :dtcompatible:`snps,designware-i2c` * - SPI - :kconfig:option:`CONFIG_SPI` - :dtcompatible:`raspberrypi,pico-spi` * - USB Device - :kconfig:option:`CONFIG_USB_DEVICE_STACK` - :dtcompatible:`raspberrypi,pico-usbd` * - HWINFO - :kconfig:option:`CONFIG_HWINFO` - N/A * - Watchdog Timer (WDT) - :kconfig:option:`CONFIG_WATCHDOG` - :dtcompatible:`raspberrypi,pico-watchdog` * - PWM - :kconfig:option:`CONFIG_PWM` - :dtcompatible:`raspberrypi,pico-pwm` * - Flash - :kconfig:option:`CONFIG_FLASH` - :dtcompatible:`raspberrypi,pico-flash` * - UART (PIO) - :kconfig:option:`CONFIG_SERIAL` - :dtcompatible:`raspberrypi,pico-uart-pio` * - SPI (PIO) - :kconfig:option:`CONFIG_SPI` - :dtcompatible:`raspberrypi,pico-spi-pio` * - W5500 Ethernet - :kconfig:option:`CONFIG_NETWORKING` - :dtcompatible:`wiznet,w5500` Pin Mapping =========== The peripherals of the RP2040 SoC can be routed to various pins on the board. The configuration of these routes can be modified through DTS. Please refer to the datasheet to see the possible routings for each peripheral. External pin mapping on the W5500_EVB_PICO is identical to the Raspberry Pi Pico. Since GPIO 25 is routed to the on-board LED on, similar to the Raspberry Pi Pico, the blinky example works as intended. The W5500 is routed to the SPI0 (P16-P19), with the reset and interrupt signal for the W5500 routed to P20 and P21, respectively. All of these are shared with the edge connector on the board. Refer to `W55500 Evaluation Board Documentation`_ for a board schematic and other certifications. Default Zephyr Peripheral Mapping: ---------------------------------- .. rst-class:: rst-columns - UART0_TX : P0 - UART0_RX : P1 - I2C0_SDA : P4 - I2C0_SCL : P5 - I2C1_SDA : P14 - I2C1_SCL : P15 - SPI0_RX : P16 - SPI0_CSN : P17 - SPI0_SCK : P18 - SPI0_TX : P19 - W5500 Reset : P20 - W5500 Interrupt : P21 - ADC_CH0 : P26 - ADC_CH1 : P27 - ADC_CH2 : P28 - ADC_CH3 : P29 Programming and Debugging ************************* Flashing ======== Using SEGGER JLink ------------------ You can Flash the w5500_evb_pico with a SEGGER JLink debug probe as described in :ref:`Building, Flashing and Debugging <west-flashing>`. Here is an example of building and flashing the :zephyr:code-sample:`blinky` application. .. zephyr-app-commands:: :zephyr-app: samples/basic/blinky :board: w5500_evb_pico :goals: build .. code-block:: bash west flash --runner jlink Using OpenOCD ------------- To use PicoProbe, You must configure **udev**. Create a file in /etc/udev.rules.d with any name, and write the line below. .. code-block:: bash ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="000c", MODE="660", GROUP="plugdev", TAG+="uaccess" This example is valid for the case that the user joins to `plugdev` groups. The Raspberry Pi Pico, and thus the W55500 Evaluation Board, has an SWD interface that can be used to program and debug the on board RP2040. This interface can be utilized by OpenOCD. To use it with the RP2040, OpenOCD version 0.12.0 or later is needed. If you are using a Debian based system (including RaspberryPi OS, Ubuntu. and more), using the `pico_setup.sh`_ script is a convenient way to set up the forked version of OpenOCD. Depending on the interface used (such as JLink), you might need to checkout to a branch that supports this interface, before proceeding. Build and install OpenOCD as described in the README. Here is an example of building and flashing the :zephyr:code-sample:`blinky` application. .. zephyr-app-commands:: :zephyr-app: samples/basic/blinky :board: w5500_evb_pico :goals: build flash :gen-args: -DOPENOCD=/usr/local/bin/openocd -DOPENOCD_DEFAULT_PATH=/usr/local/share/openocd/scripts -DRPI_PICO_DEBUG_ADAPTER=picoprobe Set the environment variables **OPENOCD** to `/usr/local/bin/openocd` and **OPENOCD_DEFAULT_PATH** to `/usr/local/share/openocd/scripts`. This should work with the OpenOCD that was installed with the default configuration. This configuration also works with an environment that is set up by the `pico_setup.sh`_ script. **RPI_PICO_DEBUG_ADAPTER** specifies what debug adapter is used for debugging. If **RPI_PICO_DEBUG_ADAPTER** was not assigned, `picoprobe` is used by default. The other supported adapters are `raspberrypi-swd`, `jlink` and `blackmagicprobe`. How to connect `picoprobe` and `raspberrypi-swd` is described in `Getting Started with Raspberry Pi Pico`_. Any other SWD debug adapter maybe also work with this configuration. The value of **RPI_PICO_DEBUG_ADAPTER** is cached, so it can be omitted from `west flash` and `west debug` if it was previously set while running `west build`. **RPI_PICO_DEBUG_ADAPTER** is used in an argument to OpenOCD as `"source [find interface/${RPI_PICO_DEBUG_ADAPTER}.cfg]"`. Thus, **RPI_PICO_DEBUG_ADAPTER** needs to be assigned the file name of the debug adapter. You can also flash the board with the following command that directly calls OpenOCD (assuming a SEGGER JLink adapter is used): .. code-block:: console $ openocd -f interface/jlink.cfg -c 'transport select swd' -f target/rp2040.cfg -c "adapter speed 2000" -c 'targets rp2040.core0' -c 'program path/to/zephyr.elf verify reset exit' Using UF2 --------- If you don't have an SWD adapter, you can flash the Raspberry Pi Pico with a UF2 file. By default, building an app for this board will generate a `build/zephyr/zephyr.uf2` file. If the Pico is powered on with the `BOOTSEL` button pressed, it will appear on the host as a mass storage device. The UF2 file should be drag-and-dropped to the device, which will flash the Pico. Debugging ========= The SWD interface can also be used to debug the board. To achieve this, you can either use SEGGER JLink or OpenOCD. Using SEGGER JLink ------------------ Use a SEGGER JLink debug probe and follow the instruction in :ref:`Building, Flashing and Debugging<west-debugging>`. Using OpenOCD ------------- Install OpenOCD as described for flashing the board. Here is an example for debugging the :zephyr:code-sample:`blinky` application. .. zephyr-app-commands:: :zephyr-app: samples/basic/blinky :board: w5500_evb_pico :maybe-skip-config: :goals: debug :gen-args: -DOPENOCD=/usr/local/bin/openocd -DOPENOCD_DEFAULT_PATH=/usr/local/share/openocd/scripts -DRPI_PICO_DEBUG_ADAPTER=raspberrypi-swd As with flashing, you can specify the debug adapter by specifying **RPI_PICO_DEBUG_ADAPTER** at `west build` time. No needs to specify it at `west debug` time. You can also debug with OpenOCD and gdb launching from command-line. Run the following command: .. code-block:: console $ openocd -f interface/jlink.cfg -c 'transport select swd' -f target/rp2040.cfg -c "adapter speed 2000" -c 'targets rp2040.core0' On another terminal, run: .. code-block:: console $ gdb-multiarch Inside gdb, run: .. code-block:: console (gdb) tar ext :3333 (gdb) file path/to/zephyr.elf You can then start debugging the board. .. target-notes:: .. _pico_setup.sh: path_to_url .. _Getting Started with Raspberry Pi Pico: path_to_url .. _W55500 Evaluation Board Documentation: path_to_url ```
/content/code_sandbox/boards/wiznet/w5500_evb_pico/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,549
```restructuredtext .. _boards-u-blox: u-blox ###### .. toctree:: :maxdepth: 1 :glob: **/* ```
/content/code_sandbox/boards/u-blox/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
34
```unknown # NINA-B4 EVK board configuration # # Enable MPU CONFIG_ARM_MPU=y # Enable hardware stack protection CONFIG_HW_STACK_PROTECTION=y # Enable RTT CONFIG_USE_SEGGER_RTT=y # enable GPIO CONFIG_GPIO=y # enable uart driver CONFIG_SERIAL=y # enable console CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y ```
/content/code_sandbox/boards/u-blox/ubx_evkninab4/ubx_evkninab4_nrf52833_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
78
```cmake # NINA-B4 EVK board configuration # board_runner_args(nrfjprog "--nrf-family=NRF52") board_runner_args(jlink "--device=nRF52833_xxAA" "--speed=4000") board_runner_args(pyocd "--target=nrf52833" "--frequency=4000000") include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake) include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake) include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake) ```
/content/code_sandbox/boards/u-blox/ubx_evkninab4/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
138
```restructuredtext .. _scobc_module1: Space Cubics OBC module 1 ######################### Overview ******** `Space Cubics`_ OBC module 1 is a single board computer for spacecraft, especially for 3U CubeSats. The board is based on Xilinx Artix-7 FPGA and implements ARM Cortex M3 as the main CPU. .. figure:: scobc.jpg :align: center :alt: Space Cubics OBC module 1 Space Cubics OBC module 1 It is designed to survive in the severe space environment, extreme temperature, vacuum, and space radiation. As the name suggests, the board form factor is a module and requires a base I/O board connected at CON1, a board-to-board connector. This modularity allows CubeSat designers the freedom to connect and expand the capability required for their mission. Hardware ******** Supported Features ================== The Space Cubics OBC module 1 provides the following hardware features: +-----------+------------+------------------------------------+ | Interface | Controller | Driver/Component | +===========+============+====================================+ | NVIC | on-chip | nested vector interrupt controller | +-----------+------------+------------------------------------+ | SYSTICK | on-chip | systick | +-----------+------------+------------------------------------+ | UART | on-chip | serial port-polling; | | | | serial port-interrupt | +-----------+------------+------------------------------------+ The default configuration for the board can be found in the defconfig file: :file:`boards/arm/scobc_module1/scobc_module1_defconfig`. Other hardware features are not currently supported by the port. System Clock ============ The board has two 24 MHz external oscillators connected to the FPGA for redundancy. The FPGA will select an active oscillator as CPU system clock. The selected clock signal is then used by the CMT in the FPGA, and drives the CPU at 48 MHz by default. Serial Port =========== The default configuration contains one SC UART IP, which is register compatible with Xilinx UART Lite for basic TX and RX. This UART is configured as the default console and is accessible through the CON1 pin 43 and 45 for Rx and Tx, respectively. Programming and Debugging ************************* Flashing ======== Here is an example for building and flashing the \`hello\_world\` application for the board: Here is an example for building and flashing the :ref:`hello_world` application for the default design: .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: scobc_module1 :goals: flash After flashing, you should see message similar to the following in the terminal: .. code-block:: console *** Booting Zephyr OS build zephyr-v2.7.99 *** Hello World! scobc_module1 Note, however, that the application was not persisted in flash memory by the above steps. It was merely written to internal RAM in the FPGA. Debugging ========= Here is an example for the :ref:`hello_world` application. .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: scobc_module1 :goals: debug Step through the application in your debugger, and you should see a message similar to the following in the terminal: .. code-block:: console *** Booting Zephyr OS build zephyr-v2.7.99 *** Hello World! scobc_module1 References ********** .. target-notes:: .. _Space Cubics: path_to_url ```
/content/code_sandbox/boards/sc/scobc_module1/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
795
```unknown # NINA-B4 EVK board configuration # config BOARD_UBX_EVKNINAB4 select SOC_NRF52833_QIAA ```
/content/code_sandbox/boards/u-blox/ubx_evkninab4/Kconfig.ubx_evkninab4
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
33
```cmake # Suppress "unique_unit_address_if_enabled" to handle the following overlaps: # - power@40000000 & clock@40000000 & bprot@40000000 # - acl@4001e000 & flash-controller@4001e000 list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled") ```
/content/code_sandbox/boards/u-blox/ubx_evkninab4/pre_dt_board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
72
```unknown /* */ &pinctrl { uart0_default: uart0_default { group1 { psels = <NRF_PSEL(UART_TX, 1, 5)>, <NRF_PSEL(UART_RX, 0, 29)>, <NRF_PSEL(UART_RTS, 0, 31)>, <NRF_PSEL(UART_CTS, 0, 23)>; }; }; uart0_sleep: uart0_sleep { group1 { psels = <NRF_PSEL(UART_TX, 1, 5)>, <NRF_PSEL(UART_RX, 0, 29)>, <NRF_PSEL(UART_RTS, 0, 31)>, <NRF_PSEL(UART_CTS, 0, 23)>; low-power-enable; }; }; i2c0_default: i2c0_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 16)>, <NRF_PSEL(TWIM_SCL, 0, 17)>; }; }; i2c0_sleep: i2c0_sleep { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 16)>, <NRF_PSEL(TWIM_SCL, 0, 17)>; low-power-enable; }; }; spi0_default: spi0_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 7)>, <NRF_PSEL(SPIM_MOSI, 1, 0)>, <NRF_PSEL(SPIM_MISO, 0, 15)>; }; }; spi0_sleep: spi0_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 7)>, <NRF_PSEL(SPIM_MOSI, 1, 0)>, <NRF_PSEL(SPIM_MISO, 0, 15)>; low-power-enable; }; }; spi1_default: spi1_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 3)>, <NRF_PSEL(SPIM_MOSI, 0, 28)>, <NRF_PSEL(SPIM_MISO, 0, 9)>; }; }; spi1_sleep: spi1_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 3)>, <NRF_PSEL(SPIM_MOSI, 0, 28)>, <NRF_PSEL(SPIM_MISO, 0, 9)>; low-power-enable; }; }; spi2_default: spi2_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 7)>, <NRF_PSEL(SPIM_MOSI, 0, 1)>, <NRF_PSEL(SPIM_MISO, 1, 0)>; }; }; spi2_sleep: spi2_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 7)>, <NRF_PSEL(SPIM_MOSI, 0, 1)>, <NRF_PSEL(SPIM_MISO, 1, 0)>; low-power-enable; }; }; pwm0_default: pwm0_default { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 13)>, <NRF_PSEL(PWM_OUT1, 1, 1)>, <NRF_PSEL(PWM_OUT2, 1, 0)>; nordic,invert; }; }; pwm0_sleep: pwm0_sleep { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 13)>, <NRF_PSEL(PWM_OUT1, 1, 1)>, <NRF_PSEL(PWM_OUT2, 1, 0)>; low-power-enable; }; }; }; ```
/content/code_sandbox/boards/u-blox/ubx_evkninab4/ubx_evkninab4_nrf52833-pinctrl.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
961
```yaml board: name: ubx_evkninab4 vendor: u-blox socs: - name: nrf52833 ```
/content/code_sandbox/boards/u-blox/ubx_evkninab4/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
34
```unknown # EVK-NINA-B4 board configuration # if BOARD_UBX_EVKNINAB4 config BT_CTLR default BT endif # BOARD_UBX_EVKNINAB4 ```
/content/code_sandbox/boards/u-blox/ubx_evkninab4/Kconfig.defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
43
```yaml identifier: ubx_evkninab4/nrf52833 name: EVK-NINA-B4-NRF52833 type: mcu arch: arm toolchain: - zephyr - gnuarmemb - xtools supported: - adc - arduino_gpio - arduino_i2c - arduino_spi - usb_device - ble - gpio - pwm - watchdog - counter vendor: u-blox ```
/content/code_sandbox/boards/u-blox/ubx_evkninab4/ubx_evkninab4_nrf52833.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
115
```unknown /* * */ /dts-v1/; #include <nordic/nrf52833_qiaa.dtsi> #include "ubx_evkninab4_nrf52833-pinctrl.dtsi" #include <zephyr/dt-bindings/input/input-event-codes.h> / { model = "u-blox EVK-NINA-B4 NRF52833"; compatible = "u-blox,ubx_evkninab4_nrf52833"; chosen { zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,uart-mcumgr = &uart0; zephyr,bt-mon-uart = &uart0; zephyr,bt-c2h-uart = &uart0; zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; zephyr,ieee802154 = &ieee802154; }; leds { compatible = "gpio-leds"; led0: led_0 { /* NINA-B1 GPIO_1 */ gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; label = "Red LED"; }; led1: led_1 { /* NINA-B4 GPIO_7 */ gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; label = "Green LED"; }; led2: led_2 { /*NINA-B1 GPIO_8 */ gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; label = "Blue LED"; }; }; pwmleds { compatible = "pwm-leds"; red_pwm_led: red_pwm_led { pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; }; green_pwm_led: green_pwm_led { pwms = <&pwm0 1 PWM_MSEC(20) PWM_POLARITY_INVERTED>; }; blue_pwm_led: blue_pwm_led { pwms = <&pwm0 2 PWM_MSEC(20) PWM_POLARITY_INVERTED>; }; }; buttons { compatible = "gpio-keys"; button0: button_0 { /* EVK-NINA-B4 SW1 button */ gpios = <&gpio1 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; zephyr,code = <INPUT_KEY_0>; }; button1: button_1 { /* EVK-NINA-B4 SW2 button */ gpios = <&gpio0 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; zephyr,code = <INPUT_KEY_1>; }; }; arduino_header: connector { compatible = "arduino-header-r3"; #gpio-cells = <2>; gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; gpio-map = <0 0 &gpio0 4 0>, /* A0 */ <1 0 &gpio0 30 0>, /* A1 */ <2 0 &gpio0 5 0>, /* A2 */ <3 0 &gpio0 2 0>, /* A3 */ <4 0 &gpio0 28 0>, /* A4 */ <5 0 &gpio0 3 0>, /* A5 */ <6 0 &gpio0 29 0>, /* D0 */ <7 0 &gpio1 5 0>, /* D1 */ <8 0 &gpio0 23 0>, /* D2 */ <9 0 &gpio0 31 0>, /* D3 */ <10 0 &gpio0 13 0>, /* D4 */ <11 0 &gpio0 11 0>, /* D5 */ <12 0 &gpio0 9 0>, /* D6 */ /* NFC use by default */ <13 0 &gpio0 10 0>, /* D7 */ /* NFC use by default */ <14 0 &gpio1 9 0>, /* D8 */ <15 0 &gpio0 12 0>, /* D9 */ <16 0 &gpio0 0 0>, /* D10 */ /* Disconnected, see EVK User Guide */ <17 0 &gpio0 1 0>, /* D11 */ /* Disconnected, see EVK User Guide */ <18 0 &gpio1 0 0>, /* D12 */ <19 0 &gpio0 7 0>, /* D13 */ <20 0 &gpio0 16 0>, /* D14 */ /* SDA */ <21 0 &gpio0 17 0>; /* D15 */ /* SCL */ }; arduino_adc: analog-connector { compatible = "arduino,uno-adc"; #io-channel-cells = <1>; io-channel-map = <0 &adc 2>, /* A0 = P0.04 = AIN2 */ <1 &adc 6>, /* A1 = P0.30 = AIN6 */ <2 &adc 3>, /* A2 = P0.5 = AIN3 */ <3 &adc 0>, /* A3 = P0.2 = AIN0 */ <4 &adc 4>, /* A4 = P0.28 = AIN4 */ <5 &adc 1>; /* A5 = P0.3 = AIN1 */ }; /* These aliases are provided for compatibility with samples */ aliases { led0 = &led0; led1 = &led1; led2 = &led2; pwm-led0 = &red_pwm_led; pwm-led1 = &green_pwm_led; pwm-led2 = &blue_pwm_led; red-pwm-led = &red_pwm_led; green-pwm-led = &green_pwm_led; blue-pwm-led = &blue_pwm_led; sw0 = &button0; sw1 = &button1; watchdog0 = &wdt0; }; }; &reg1 { regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; }; &adc { status = "okay"; }; &uicr { gpio-as-nreset; }; &gpiote { status = "okay"; }; &gpio0 { status = "okay"; }; &gpio1 { status = "okay"; }; &uart0 { compatible = "nordic,nrf-uart"; status = "okay"; current-speed = <115200>; pinctrl-0 = <&uart0_default>; pinctrl-1 = <&uart0_sleep>; pinctrl-names = "default", "sleep"; }; arduino_i2c: &i2c0 { compatible = "nordic,nrf-twi"; status = "okay"; pinctrl-0 = <&i2c0_default>; pinctrl-1 = <&i2c0_sleep>; pinctrl-names = "default", "sleep"; }; &spi0 { compatible = "nordic,nrf-spi"; /* Cannot be used together with i2c0. */ /* status = "okay"; */ pinctrl-0 = <&spi0_default>; pinctrl-1 = <&spi0_sleep>; pinctrl-names = "default", "sleep"; }; &spi1 { compatible = "nordic,nrf-spi"; status = "okay"; pinctrl-0 = <&spi1_default>; pinctrl-1 = <&spi1_sleep>; pinctrl-names = "default", "sleep"; }; arduino_spi: &spi2 { compatible = "nordic,nrf-spim"; status = "okay"; cs-gpios = <&arduino_header 0 GPIO_ACTIVE_LOW>; /* D10 */ pinctrl-0 = <&spi2_default>; pinctrl-1 = <&spi2_sleep>; pinctrl-names = "default", "sleep"; }; &pwm0 { status = "okay"; pinctrl-0 = <&pwm0_default>; pinctrl-1 = <&pwm0_sleep>; pinctrl-names = "default", "sleep"; }; &ieee802154 { status = "okay"; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x00000000 0xC000>; }; slot0_partition: partition@c000 { label = "image-0"; reg = <0x0000C000 0x32000>; }; slot1_partition: partition@3e000 { label = "image-1"; reg = <0x0003E000 0x32000>; }; scratch_partition: partition@70000 { label = "image-scratch"; reg = <0x00070000 0xA000>; }; storage_partition: partition@7a000 { label = "storage"; reg = <0x0007A000 0x00006000>; }; }; }; zephyr_udc0: &usbd { compatible = "nordic,nrf-usbd"; status = "okay"; }; ```
/content/code_sandbox/boards/u-blox/ubx_evkninab4/ubx_evkninab4_nrf52833.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,170
```restructuredtext .. _ubx_ninab4_nrf52833: u-blox EVK NINA-B40x #################### Overview ******** The u-blox NINA-B4 Evaluation Kit hardware is a Bluetooth low energy module based on the Nordic Semiconductor nRF52833 ARM Cortex-M4F CPU and has support for the following features: * :abbr:`ADC (Analog to Digital Converter)` * CLOCK * FLASH * :abbr:`GPIO (General Purpose Input Output)` * :abbr:`I2C (Inter-Integrated Circuit)` * :abbr:`MPU (Memory Protection Unit)` * :abbr:`NVIC (Nested Vectored Interrupt Controller)` * :abbr:`PWM (Pulse Width Modulation)` * RADIO (Bluetooth Low Energy) * :abbr:`RTC (nRF RTC System Clock)` * Segger RTT (RTT Console) * :abbr:`SPI (Serial Peripheral Interface)` * :abbr:`UART (Universal asynchronous receiver-transmitter)` * :abbr:`USB (Universal Serial Bus)` * :abbr:`WDT (Watchdog Timer)` .. figure:: img/EVK-NINA-B406_Top_web.jpg EVK NINA-B4 More information about the NINA-B4 module and the EVK-NINA-B4 can be found at `NINA-B40 product page`_ and `EVK-NINA-B4 product page`_. Supported Features ================== The ubx_evkninab4/nrf52833 board configuration supports the following hardware features: +-----------+------------+----------------------+ | Interface | Controller | Driver/Component | +===========+============+======================+ | ADC | on-chip | adc | +-----------+------------+----------------------+ | CLOCK | on-chip | clock_control | +-----------+------------+----------------------+ | FLASH | on-chip | flash | +-----------+------------+----------------------+ | GPIO | on-chip | gpio | +-----------+------------+----------------------+ | I2C(M) | on-chip | i2c | +-----------+------------+----------------------+ | MPU | on-chip | arch/arm | +-----------+------------+----------------------+ | NVIC | on-chip | arch/arm | +-----------+------------+----------------------+ | PWM | on-chip | pwm | +-----------+------------+----------------------+ | RADIO | on-chip | Bluetooth low energy | +-----------+------------+----------------------+ | RTC | on-chip | system clock | +-----------+------------+----------------------+ | RTT | Segger | console | +-----------+------------+----------------------+ | SPI(M/S) | on-chip | spi | +-----------+------------+----------------------+ | UART | on-chip | serial | +-----------+------------+----------------------+ | USB | on-chip | usb | +-----------+------------+----------------------+ | WDT | on-chip | watchdog | +-----------+------------+----------------------+ Other hardware features have not been enabled yet for this board. See `EVK-NINA-B4 product page`_ and `NINA-B40 Data Sheet`_ for a complete list of EVK NINA-B4 hardware features. Connections and IOs =================== LED --- * LED0 (red) = P0.13 * LED1 (green) = P1.01 * LED2 (blue) = P1.00 Push buttons ------------ * BUTTON1 = SW1 = P1.01 (Shared with green LED) * BUTTON2 = SW2 = P0.02 General information on module pin numbering ------------------------------------------- The numbering of the pins on the module and EVK do not follow the GPIO numbering on the nRF52833 SoC. Please see the `NINA-B40 Data Sheet`_ for information on how to map NINA-B40 pins to the pin numbering on the nRF52833 SoC. The reason for this is the u-blox module family concept where different modules share the same pinout and can be interchanged, see `NINA module family Nested design`_. Programming and Debugging ************************* Applications for the ``ubx_evkninab4/nrf52833`` board configuration can be built and flashed in the usual way (see :ref:`build_an_application` and :ref:`application_run` for more details); however, the standard debugging targets are not currently available. Flashing ======== Build and flash applications as usual (see :ref:`build_an_application` and :ref:`application_run` for more details) Here is an example for the :ref:`hello_world` application. Open a terminal program to the USB Serial Port installed when connecting the board and listen for output. Settings: 115200, 8N1, no flow control. Then build and flash the application in the usual way. .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: ubx_evkninab4/nrf52833 :goals: build flash Debugging ========= Refer to the :ref:`nordic_segger` page to learn about debugging boards containing a Nordic Semiconductor chip with a Segger IC. Testing the LEDs and buttons in the EVK NINA-B40x ************************************************* There are 2 samples that allow you to test that the buttons (switches) and LEDs on the board are working properly with Zephyr: .. code-block:: console samples/basic/blinky samples/basic/button You can build and flash the examples to make sure Zephyr is running correctly on your board. The button and LED definitions can be found in :zephyr_file:`boards/u-blox/ubx_evkninab4/ubx_evkninab4_nrf52833.dts`. Note that the buttons on the EVK-NINA-B4 are marked SW1 and SW2, which are named sw0 and sw1 in the dts file. Also note that the SW1 button and the green LED are connected on HW level. Using UART1 *********** The following approach can be used when an application needs to use more than one UART for connecting peripheral devices: 1. Add device tree overlay file to the main directory of your application: .. code-block:: devicetree &pinctrl { uart1_default: uart1_default { group1 { psels = <NRF_PSEL(UART_TX, 0, 14)>, <NRF_PSEL(UART_RX, 0, 16)>; }; }; /* required if CONFIG_PM_DEVICE=y */ uart1_sleep: uart1_sleep { group1 { psels = <NRF_PSEL(UART_TX, 0, 14)>, <NRF_PSEL(UART_RX, 0, 16)>; low-power-enable; }; }; }; &uart1 { compatible = "nordic,nrf-uarte"; current-speed = <115200>; status = "okay"; pinctrl-0 = <&uart1_default>; pinctrl-1 = <&uart1_sleep>; pinctrl-names = "default", "sleep"; }; In the overlay file above, pin P0.16 is used for RX and P0.14 is used for TX 2. Use the UART1 as ``DEVICE_DT_GET(DT_NODELABEL(uart1))`` Overlay file naming =================== The file has to be named ``<board>.overlay`` and placed in the app main directory to be picked up automatically by the device tree compiler. Selecting the pins ================== Pins can be configured in the board pinctrl file. To see the available mappings, open the data sheet for the NINA-B4 at `NINA-B40 Data Sheet`_, Section 3 'Pin definition'. In the table 7 select the pins marked 'GPIO_xx'. Note that pins marked as 'Radio sensitive pin' can only be used in under-10KHz applications. They are not suitable for 115200 speed of UART. .. note: Pins are defined according to the "nRF52" pin number, not the module pad number. References ********** .. target-notes:: .. _NINA-B40 product page: path_to_url .. _EVK-NINA-B4 product page: path_to_url .. _Nordic Semiconductor Infocenter: path_to_url .. _J-Link Software and documentation pack: path_to_url .. _NINA-B40 Data Sheet: path_to_url .. _NINA module family Nested design: path_to_url ```
/content/code_sandbox/boards/u-blox/ubx_evkninab4/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,878
```cmake # u-blox EVK-ANNA-B1 board configuration board_runner_args(nrfjprog "--nrf-family=NRF52") board_runner_args(jlink "--device=nRF52832_xxAA" "--speed=4000") board_runner_args(pyocd "--target=nrf52832" "--frequency=4000000") include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake) include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake) include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake) ```
/content/code_sandbox/boards/u-blox/ubx_evkannab1/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
141
```unknown # u-blox EVK-ANNA-B1 board configuration # config BOARD_UBX_EVKANNAB1 select SOC_NRF52832_QFAA ```
/content/code_sandbox/boards/u-blox/ubx_evkannab1/Kconfig.ubx_evkannab1
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
37
```unknown /* * */ /dts-v1/; #include <nordic/nrf52832_qfaa.dtsi> #include "ubx_evkannab1_nrf52832-pinctrl.dtsi" #include <zephyr/dt-bindings/input/input-event-codes.h> / { model = "u-blox EVK-ANNA-B1 NRF52832"; compatible = "u-blox,ubx_evkannab1_nrf52832"; chosen { zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,uart-mcumgr = &uart0; zephyr,bt-mon-uart = &uart0; zephyr,bt-c2h-uart = &uart0; zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; }; leds { compatible = "gpio-leds"; led0: led_0 { /* ANNA-B1 GPIO_29 */ gpios = <&gpio0 27 GPIO_ACTIVE_LOW>; label = "Red LED"; }; led1: led_1 { /* ANNA-B1 GPIO_30 */ gpios = <&gpio0 25 GPIO_ACTIVE_LOW>; label = "Green LED"; }; led2: led_2 { /*ANNA-B1 GPIO_31 */ gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; label = "Blue LED"; }; }; pwmleds { compatible = "pwm-leds"; red_pwm_led: red_pwm_led { pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; }; green_pwm_led: green_pwm_led { pwms = <&pwm0 1 PWM_MSEC(20) PWM_POLARITY_INVERTED>; }; blue_pwm_led: blue_pwm_led { pwms = <&pwm0 2 PWM_MSEC(20) PWM_POLARITY_INVERTED>; }; }; buttons { compatible = "gpio-keys"; button0: button_0 { /* EVK-ANNA-B1 SW1 button */ gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch SW1"; zephyr,code = <INPUT_KEY_0>; }; button1: button_1 { /* EVK-ANNA-B1 SW2 button */ gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch SW2"; zephyr,code = <INPUT_KEY_1>; }; }; arduino_header: connector { compatible = "arduino-header-r3"; #gpio-cells = <2>; gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; gpio-map = <0 0 &gpio0 4 0>, /* A0 */ <1 0 &gpio0 5 0>, /* A1 */ <2 0 &gpio0 28 0>, /* A2 */ <3 0 &gpio0 29 0>, /* A3 */ <4 0 &gpio0 30 0>, /* A4 */ <5 0 &gpio0 31 0>, /* A5 */ <6 0 &gpio0 2 0>, /* D0 */ <7 0 &gpio0 3 0>, /* D1 */ <8 0 &gpio0 19 0>, /* D2 */ <9 0 &gpio0 11 0>, /* D3 */ <10 0 &gpio0 27 0>, /* D4 */ <11 0 &gpio0 26 0>, /* D5 */ <12 0 &gpio0 10 0>, /* D6 */ <13 0 &gpio0 9 0>, /* D7 */ <14 0 &gpio0 14 0>, /* D8 */ <15 0 &gpio0 24 0>, /* D9 */ <16 0 &gpio0 22 0>, /* D10 */ <17 0 &gpio0 23 0>, /* D11 */ <18 0 &gpio0 18 0>, /* D12 */ <19 0 &gpio0 20 0>, /* D13 */ <20 0 &gpio0 15 0>, /* D14 */ <21 0 &gpio0 16 0>; /* D15 */ }; arduino_adc: analog-connector { compatible = "arduino,uno-adc"; #io-channel-cells = <1>; io-channel-map = <0 &adc 1>, /* A0 = P0.4 = AIN1 */ <1 &adc 2>, /* A1 = P0.5 = AIN2 */ <2 &adc 4>, /* A2 = P0.28 = AIN4 */ <3 &adc 5>, /* A3 = P0.29 = AIN5 */ <4 &adc 6>, /* A4 = P0.30 = AIN6 */ <5 &adc 7>; /* A5 = P0.31 = AIN7 */ }; /* These aliases are provided for compatibility with samples */ aliases { led0 = &led0; led1 = &led1; led2 = &led2; pwm-led0 = &red_pwm_led; pwm-led1 = &green_pwm_led; pwm-led2 = &blue_pwm_led; red-pwm-led = &red_pwm_led; green-pwm-led = &green_pwm_led; blue-pwm-led = &blue_pwm_led; sw0 = &button0; sw1 = &button1; watchdog0 = &wdt0; }; }; &reg { regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; }; &adc { status = "okay"; }; &uicr { gpio-as-nreset; }; &gpiote { status = "okay"; }; &gpio0 { status = "okay"; }; &uart0 { compatible = "nordic,nrf-uarte"; status = "okay"; current-speed = <115200>; pinctrl-0 = <&uart0_default>; pinctrl-1 = <&uart0_sleep>; pinctrl-names = "default", "sleep"; }; arduino_i2c: &i2c0 { compatible = "nordic,nrf-twi"; status = "okay"; pinctrl-0 = <&i2c0_default>; pinctrl-1 = <&i2c0_sleep>; pinctrl-names = "default", "sleep"; }; &i2c1 { compatible = "nordic,nrf-twi"; /* Cannot be used together with spi1. */ /* status = "okay"; */ pinctrl-0 = <&i2c1_default>; pinctrl-1 = <&i2c1_sleep>; pinctrl-names = "default", "sleep"; }; &pwm0 { status = "okay"; pinctrl-0 = <&pwm0_default>; pinctrl-1 = <&pwm0_sleep>; pinctrl-names = "default", "sleep"; }; arduino_spi: &spi0 { compatible = "nordic,nrf-spi"; /* Cannot be use simultaneously with i2c0 */ /* status = "okay"; */ cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ pinctrl-0 = <&spi0_default>; pinctrl-1 = <&spi0_sleep>; pinctrl-names = "default", "sleep"; }; &spi1 { compatible = "nordic,nrf-spi"; status = "okay"; pinctrl-0 = <&spi1_default>; pinctrl-1 = <&spi1_sleep>; pinctrl-names = "default", "sleep"; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x00000000 0xc000>; }; slot0_partition: partition@c000 { label = "image-0"; reg = <0x0000C000 0x32000>; }; slot1_partition: partition@3e000 { label = "image-1"; reg = <0x0003E000 0x32000>; }; scratch_partition: partition@70000 { label = "image-scratch"; reg = <0x00070000 0xa000>; }; storage_partition: partition@7a000 { label = "storage"; reg = <0x0007a000 0x00006000>; }; }; }; ```
/content/code_sandbox/boards/u-blox/ubx_evkannab1/ubx_evkannab1_nrf52832.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,086
```unknown /* */ &pinctrl { uart0_default: uart0_default { group1 { psels = <NRF_PSEL(UART_TX, 0, 3)>, <NRF_PSEL(UART_RX, 0, 2)>, <NRF_PSEL(UART_RTS, 0, 11)>, <NRF_PSEL(UART_CTS, 0, 19)>; }; }; uart0_sleep: uart0_sleep { group1 { psels = <NRF_PSEL(UART_TX, 0, 3)>, <NRF_PSEL(UART_RX, 0, 2)>, <NRF_PSEL(UART_RTS, 0, 11)>, <NRF_PSEL(UART_CTS, 0, 19)>; low-power-enable; }; }; i2c0_default: i2c0_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 15)>, <NRF_PSEL(TWIM_SCL, 0, 16)>; }; }; i2c0_sleep: i2c0_sleep { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 15)>, <NRF_PSEL(TWIM_SCL, 0, 16)>; low-power-enable; }; }; i2c1_default: i2c1_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 31)>, <NRF_PSEL(TWIM_SCL, 0, 30)>; }; }; i2c1_sleep: i2c1_sleep { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 31)>, <NRF_PSEL(TWIM_SCL, 0, 30)>; low-power-enable; }; }; pwm0_default: pwm0_default { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 27)>, <NRF_PSEL(PWM_OUT1, 0, 25)>, <NRF_PSEL(PWM_OUT2, 0, 26)>; nordic,invert; }; }; pwm0_sleep: pwm0_sleep { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 27)>, <NRF_PSEL(PWM_OUT1, 0, 25)>, <NRF_PSEL(PWM_OUT2, 0, 26)>; low-power-enable; }; }; spi0_default: spi0_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 20)>, <NRF_PSEL(SPIM_MOSI, 0, 23)>, <NRF_PSEL(SPIM_MISO, 0, 18)>; }; }; spi0_sleep: spi0_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 20)>, <NRF_PSEL(SPIM_MOSI, 0, 23)>, <NRF_PSEL(SPIM_MISO, 0, 18)>; low-power-enable; }; }; spi1_default: spi1_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 28)>, <NRF_PSEL(SPIM_MOSI, 0, 29)>, <NRF_PSEL(SPIM_MISO, 0, 30)>; }; }; spi1_sleep: spi1_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 28)>, <NRF_PSEL(SPIM_MOSI, 0, 29)>, <NRF_PSEL(SPIM_MISO, 0, 30)>; low-power-enable; }; }; }; ```
/content/code_sandbox/boards/u-blox/ubx_evkannab1/ubx_evkannab1_nrf52832-pinctrl.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
931
```cmake # Suppress "unique_unit_address_if_enabled" to handle the following overlaps: # - power@40000000 & clock@40000000 & bprot@40000000 # - acl@4001e000 & flash-controller@4001e000 list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled") ```
/content/code_sandbox/boards/u-blox/ubx_evkannab1/pre_dt_board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
72
```yaml board: name: ubx_evkannab1 vendor: u-blox socs: - name: nrf52832 ```
/content/code_sandbox/boards/u-blox/ubx_evkannab1/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
34
```unknown # u-blox EVK-ANNA-B1 board configuration # if BOARD_UBX_EVKANNAB1 config BT_CTLR default BT endif # BOARD_UBX_EVKANNAB1 ```
/content/code_sandbox/boards/u-blox/ubx_evkannab1/Kconfig.defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
47
```yaml identifier: ubx_evkannab1/nrf52832 name: UBX-EVKANNAB1-NRF52832 type: mcu arch: arm toolchain: - zephyr - gnuarmemb - xtools ram: 64 flash: 512 supported: - adc - arduino_gpio - arduino_i2c - arduino_spi - gpio - counter - nvs - i2c - pwm - spi - watchdog vendor: u-blox ```
/content/code_sandbox/boards/u-blox/ubx_evkannab1/ubx_evkannab1_nrf52832.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
132
```unknown # u-blox EVK-ANNA-B1 board configuration # Enable MPU CONFIG_ARM_MPU=y # Enable hardware stack protection CONFIG_HW_STACK_PROTECTION=y # Enable RTT CONFIG_USE_SEGGER_RTT=y # enable GPIO CONFIG_GPIO=y # enable uart driver CONFIG_SERIAL=y # enable console CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y ```
/content/code_sandbox/boards/u-blox/ubx_evkannab1/ubx_evkannab1_nrf52832_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
81
```cmake # BMD-330-EVAL board configuration board_runner_args(jlink "--device=nRF52810_xxAA" "--speed=4000") include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake) include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake) ```
/content/code_sandbox/boards/u-blox/ubx_bmd330eval/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
85
```restructuredtext .. _ubx_evkannab1_nrf52832: u-blox EVK-ANNA-B11x #################### Overview ******** The u-blox ANNA-B1 Evaluation Kit hardware is a Bluetooth low energy module based on the Nordic Semiconductor nRF52832 ARM Cortex-M4F CPU and has support for the following features: * :abbr:`ADC (Analog to Digital Converter)` * CLOCK * FLASH * :abbr:`GPIO (General Purpose Input Output)` * :abbr:`I2C (Inter-Integrated Circuit)` * :abbr:`MPU (Memory Protection Unit)` * :abbr:`NVIC (Nested Vectored Interrupt Controller)` * :abbr:`PWM (Pulse Width Modulation)` * RADIO (Bluetooth Low Energy) * :abbr:`RTC (nRF RTC System Clock)` * Segger RTT (RTT Console) * :abbr:`SPI (Serial Peripheral Interface)` * :abbr:`UART (Universal asynchronous receiver-transmitter)` * :abbr:`WDT (Watchdog Timer)` .. figure:: img/EVK-ANNA-B112.jpg EVK ANNA-B1 More information about the ANNA-B1 module and the EVK-ANNA-B1 can be found at `ANNA-B1 product page`_ and `EVK-ANNA-B1 product page`_. Supported Features ================== The ubx_evkannab1_nrf52832 board configuration supports the following hardware features: +-----------+------------+----------------------+ | Interface | Controller | Driver/Component | +===========+============+======================+ | ADC | on-chip | adc | +-----------+------------+----------------------+ | CLOCK | on-chip | clock_control | +-----------+------------+----------------------+ | FLASH | on-chip | flash | +-----------+------------+----------------------+ | GPIO | on-chip | gpio | +-----------+------------+----------------------+ | I2C(M) | on-chip | i2c | +-----------+------------+----------------------+ | MPU | on-chip | arch/arm | +-----------+------------+----------------------+ | NVIC | on-chip | arch/arm | +-----------+------------+----------------------+ | PWM | on-chip | pwm | +-----------+------------+----------------------+ | RADIO | on-chip | Bluetooth Low Energy | +-----------+------------+----------------------+ | RTC | on-chip | system clock | +-----------+------------+----------------------+ | RTT | Segger | console | +-----------+------------+----------------------+ | SPI(M/S) | on-chip | spi | +-----------+------------+----------------------+ | UART | on-chip | serial | +-----------+------------+----------------------+ | WDT | on-chip | watchdog | +-----------+------------+----------------------+ Other hardware features have not been enabled yet for this board. See `EVK-ANNA-B1 product page`_ and `ANNA-B1 Data Sheet`_ for a complete list of EVK ANNA-B1 hardware features. Connections and IOs =================== LED --- * LED0 (red) = P0.27 * LED1 (green) = P0.25 * LED2 (blue) = P0.26 Push buttons ------------ * BUTTON1 = SW1 = P0.25 * BUTTON2 = SW2 = P0.24 General information on module pin numbering ------------------------------------------- The numbering of the pins on the module and EVK do not follow the GPIO numbering on the nRF52832 SoC. Please see the `ANNA-B1 Data Sheet`_ for information on how to map ANNA-B1 pins to the pin numbering on the nRF52832 SoC. The reason for this is the u-blox module family concept where different modules share the same pinout and can be interchanged. Programming and Debugging ************************* Applications for the ``ubx_evkannab1/nrf52832`` board configuration can be built and flashed in the usual way (see :ref:`build_an_application` and :ref:`application_run` for more details); however, the standard debugging targets are not currently available. Flashing ======== Build and flash applications as usual (see :ref:`build_an_application` and :ref:`application_run` for more details). Here is an example for the :ref:`hello_world` application. Open a terminal program to the USB Serial Port installed when connecting the board and listen for output. Settings: 115200, 8N1, no flow control. Then build and flash the application in the usual way. .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: ubx_evkannab1/nrf52832 :goals: build flash Debugging ========= Refer to the :ref:`nordic_segger` page to learn about debugging boards containing a Nordic Semiconductor chip with a Segger IC. Testing the LEDs and buttons in the EVK NINA-B11x ************************************************* There are 2 samples that allow you to test that the buttons (switches) and LEDs on the board are working properly with Zephyr: .. code-block:: console samples/basic/blinky samples/basic/button You can build and flash the examples to make sure Zephyr is running correctly on your board. The button and LED definitions can be found in :zephyr_file:`boards/u-blox/ubx_evkannab1/ubx_evkannab1_nrf52832.dts`. Note that the buttons on the EVK-ANNA-B1 are marked SW1 and SW2, which are named sw0 and sw1 in the dts file. Also note that the SW1 button and the green LED are connected on HW level. References ********** .. target-notes:: .. _ANNA-B1 product page: path_to_url .. _EVK-ANNA-B1 product page: path_to_url .. _Nordic Semiconductor Infocenter: path_to_url .. _J-Link Software and documentation pack: path_to_url .. _ANNA-B1 Data Sheet: path_to_url ```
/content/code_sandbox/boards/u-blox/ubx_evkannab1/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,358
```cmake # Suppress "unique_unit_address_if_enabled" to handle the following overlaps: # - power@40000000 & clock@40000000 & bprot@40000000 # - acl@4001e000 & flash-controller@4001e000 list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled") ```
/content/code_sandbox/boards/u-blox/ubx_bmd330eval/pre_dt_board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
72
```unknown /* * */ /dts-v1/; #include <nordic/nrf52810_qfaa.dtsi> #include "ubx_bmd330eval_nrf52810-pinctrl.dtsi" #include <zephyr/dt-bindings/input/input-event-codes.h> / { model = "u-blox BMD-330-EVAL EVK nRF52810"; compatible = "u-blox,ubx-bmd330eval-nrf52810"; chosen { zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,uart-mcumgr = &uart0; zephyr,bt-mon-uart = &uart0; zephyr,bt-c2h-uart = &uart0; zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; }; leds { compatible = "gpio-leds"; led0: led_0 { gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; label = "Red LED 0"; }; led1: led_1 { gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; label = "Red LED 1"; }; led2: led_2 { gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; label = "Green LED 2"; }; led3: led_3 { gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; label = "Green LED 3"; }; }; pwmleds { compatible = "pwm-leds"; pwm_led0: pwm_led_0 { pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; }; }; buttons { compatible = "gpio-keys"; button0: button_0 { gpios = <&gpio0 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; zephyr,code = <INPUT_KEY_0>; }; button1: button_1 { gpios = <&gpio0 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; zephyr,code = <INPUT_KEY_1>; }; button2: button_2 { gpios = <&gpio0 15 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; zephyr,code = <INPUT_KEY_2>; }; button3: button_3 { gpios = <&gpio0 16 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; zephyr,code = <INPUT_KEY_3>; }; }; arduino_header: connector { compatible = "arduino-header-r3"; #gpio-cells = <2>; gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; gpio-map = <0 0 &gpio0 3 0>, /* A0 */ <1 0 &gpio0 4 0>, /* A1 */ <2 0 &gpio0 28 0>, /* A2 */ <3 0 &gpio0 29 0>, /* A3 */ <4 0 &gpio0 30 0>, /* A4 */ <5 0 &gpio0 31 0>, /* A5 */ <6 0 &gpio0 11 0>, /* D0 */ <7 0 &gpio0 12 0>, /* D1 */ <8 0 &gpio0 13 0>, /* D2 */ <9 0 &gpio0 14 0>, /* D3 */ <10 0 &gpio0 15 0>, /* D4 */ <11 0 &gpio0 16 0>, /* D5 */ <12 0 &gpio0 17 0>, /* D6 */ <13 0 &gpio0 18 0>, /* D7 */ <14 0 &gpio0 19 0>, /* D8 */ <15 0 &gpio0 20 0>, /* D9 */ <16 0 &gpio0 22 0>, /* D10 */ <17 0 &gpio0 23 0>, /* D11 */ <18 0 &gpio0 24 0>, /* D12 */ <19 0 &gpio0 25 0>, /* D13 */ <20 0 &gpio0 26 0>, /* D14 */ <21 0 &gpio0 27 0>; /* D15 */ }; arduino_adc: analog-connector { compatible = "arduino,uno-adc"; #io-channel-cells = <1>; io-channel-map = <0 &adc 1>, /* A0 = P0.3 = AIN1 */ <1 &adc 2>, /* A1 = P0.4 = AIN2 */ <2 &adc 4>, /* A2 = P0.28 = AIN4 */ <3 &adc 5>, /* A3 = P0.29 = AIN5 */ <4 &adc 6>, /* A4 = P0.30 = AIN6 */ <5 &adc 7>; /* A5 = P0.31 = AIN7 */ }; /* These aliases are provided for compatibility with samples */ aliases { led0 = &led0; led1 = &led1; led2 = &led2; led3 = &led3; pwm-led0 = &pwm_led0; sw0 = &button0; sw1 = &button1; sw2 = &button2; sw3 = &button3; bootloader-led0 = &led0; mcuboot-button0 = &button0; mcuboot-led0 = &led0; watchdog0 = &wdt0; }; }; &reg { regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; }; &adc { status = "okay"; }; &uicr { gpio-as-nreset; }; &gpiote { status = "okay"; }; &gpio0 { status = "okay"; }; arduino_serial: &uart0 { compatible = "nordic,nrf-uarte"; status = "okay"; current-speed = <115200>; pinctrl-0 = <&uart0_default>; pinctrl-1 = <&uart0_sleep>; pinctrl-names = "default", "sleep"; }; arduino_i2c: &i2c0 { compatible = "nordic,nrf-twi"; status = "okay"; pinctrl-0 = <&i2c0_default>; pinctrl-1 = <&i2c0_sleep>; pinctrl-names = "default", "sleep"; }; &pwm0 { status = "okay"; pinctrl-0 = <&pwm0_default>; pinctrl-1 = <&pwm0_sleep>; pinctrl-names = "default", "sleep"; }; arduino_spi: &spi0 { compatible = "nordic,nrf-spi"; status = "okay"; cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ pinctrl-0 = <&spi0_default>; pinctrl-1 = <&spi0_sleep>; pinctrl-names = "default", "sleep"; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x00000000 0xc000>; }; slot0_partition: partition@c000 { label = "image-0"; reg = <0x0000C000 0xd000>; }; slot1_partition: partition@19000 { label = "image-1"; reg = <0x00019000 0xd000>; }; scratch_partition: partition@26000 { label = "image-scratch"; reg = <0x00026000 0x3000>; }; storage_partition: partition@29000 { label = "storage"; reg = <0x00029000 0x00007000>; }; }; }; ```
/content/code_sandbox/boards/u-blox/ubx_bmd330eval/ubx_bmd330eval_nrf52810.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,948
```unknown /* */ &pinctrl { uart0_default: uart0_default { group1 { psels = <NRF_PSEL(UART_TX, 0, 6)>, <NRF_PSEL(UART_RX, 0, 8)>, <NRF_PSEL(UART_RTS, 0, 5)>, <NRF_PSEL(UART_CTS, 0, 7)>; }; }; uart0_sleep: uart0_sleep { group1 { psels = <NRF_PSEL(UART_TX, 0, 6)>, <NRF_PSEL(UART_RX, 0, 8)>, <NRF_PSEL(UART_RTS, 0, 5)>, <NRF_PSEL(UART_CTS, 0, 7)>; low-power-enable; }; }; i2c0_default: i2c0_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 26)>, <NRF_PSEL(TWIM_SCL, 0, 27)>; }; }; i2c0_sleep: i2c0_sleep { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 26)>, <NRF_PSEL(TWIM_SCL, 0, 27)>; low-power-enable; }; }; pwm0_default: pwm0_default { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 17)>; nordic,invert; }; }; pwm0_sleep: pwm0_sleep { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 17)>; low-power-enable; }; }; spi0_default: spi0_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 25)>, <NRF_PSEL(SPIM_MOSI, 0, 23)>, <NRF_PSEL(SPIM_MISO, 0, 24)>; }; }; spi0_sleep: spi0_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 25)>, <NRF_PSEL(SPIM_MOSI, 0, 23)>, <NRF_PSEL(SPIM_MISO, 0, 24)>; low-power-enable; }; }; }; ```
/content/code_sandbox/boards/u-blox/ubx_bmd330eval/ubx_bmd330eval_nrf52810-pinctrl.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
573
```unknown # BMD-330-EVAL board configuration # Enable MPU CONFIG_ARM_MPU=y # Enable hardware stack protection CONFIG_HW_STACK_PROTECTION=y # Enable RTT CONFIG_USE_SEGGER_RTT=y # enable GPIO CONFIG_GPIO=y # enable uart driver CONFIG_SERIAL=y # enable console CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y ```
/content/code_sandbox/boards/u-blox/ubx_bmd330eval/ubx_bmd330eval_nrf52810_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
77
```unknown # BMD-330-EVAL board configuration config BOARD_UBX_BMD330EVAL select SOC_NRF52810_QFAA ```
/content/code_sandbox/boards/u-blox/ubx_bmd330eval/Kconfig.ubx_bmd330eval
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
32
```yaml board: name: ubx_bmd330eval vendor: u-blox socs: - name: nrf52810 ```
/content/code_sandbox/boards/u-blox/ubx_bmd330eval/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
33
```unknown # BMD-330-EVAL board configuration if BOARD_UBX_BMD330EVAL endif # BOARD_UBX_BMD330EVAL ```
/content/code_sandbox/boards/u-blox/ubx_bmd330eval/Kconfig.defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
34
```unknown # BMD-330-EVAL board configuration # BT_CTLR depends on BT. When BT is enabled we should default to also # enabling the controller. config BT_CTLR default y if BT ```
/content/code_sandbox/boards/u-blox/ubx_bmd330eval/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
44
```yaml identifier: ubx_bmd330eval/nrf52810 name: UBX_BMD330EVAL_NRF52810 type: mcu arch: arm toolchain: - zephyr - gnuarmemb - xtools ram: 24 flash: 192 supported: - adc - arduino_gpio - arduino_i2c - arduino_spi - gpio - counter - nvs - i2c - pwm - spi - watchdog vendor: u-blox ```
/content/code_sandbox/boards/u-blox/ubx_bmd330eval/ubx_bmd330eval.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
131
```unknown /* */ &pinctrl { uart0_default: uart0_default { group1 { psels = <NRF_PSEL(UART_TX, 0, 6)>, <NRF_PSEL(UART_RX, 0, 8)>, <NRF_PSEL(UART_RTS, 0, 5)>, <NRF_PSEL(UART_CTS, 0, 7)>; }; }; uart0_sleep: uart0_sleep { group1 { psels = <NRF_PSEL(UART_TX, 0, 6)>, <NRF_PSEL(UART_RX, 0, 8)>, <NRF_PSEL(UART_RTS, 0, 5)>, <NRF_PSEL(UART_CTS, 0, 7)>; low-power-enable; }; }; i2c1_default: i2c1_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 30)>, <NRF_PSEL(TWIM_SCL, 0, 31)>; }; }; i2c1_sleep: i2c1_sleep { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 30)>, <NRF_PSEL(TWIM_SCL, 0, 31)>; low-power-enable; }; }; pwm0_default: pwm0_default { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 13)>; nordic,invert; }; }; pwm0_sleep: pwm0_sleep { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 13)>; low-power-enable; }; }; spi0_default: spi0_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 27)>, <NRF_PSEL(SPIM_MOSI, 0, 26)>, <NRF_PSEL(SPIM_MISO, 0, 29)>; }; }; spi0_sleep: spi0_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 27)>, <NRF_PSEL(SPIM_MOSI, 0, 26)>, <NRF_PSEL(SPIM_MISO, 0, 29)>; low-power-enable; }; }; spi1_default: spi1_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 31)>, <NRF_PSEL(SPIM_MOSI, 0, 30)>, <NRF_PSEL(SPIM_MISO, 1, 8)>; }; }; spi1_sleep: spi1_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 31)>, <NRF_PSEL(SPIM_MOSI, 0, 30)>, <NRF_PSEL(SPIM_MISO, 1, 8)>; low-power-enable; }; }; spi2_default: spi2_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 19)>, <NRF_PSEL(SPIM_MOSI, 0, 20)>, <NRF_PSEL(SPIM_MISO, 0, 21)>; }; }; spi2_sleep: spi2_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 19)>, <NRF_PSEL(SPIM_MOSI, 0, 20)>, <NRF_PSEL(SPIM_MISO, 0, 21)>; low-power-enable; }; }; qspi_default: qspi_default { group1 { psels = <NRF_PSEL(QSPI_SCK, 0, 19)>, <NRF_PSEL(QSPI_IO0, 0, 20)>, <NRF_PSEL(QSPI_IO1, 0, 21)>, <NRF_PSEL(QSPI_IO2, 0, 22)>, <NRF_PSEL(QSPI_IO3, 0, 23)>, <NRF_PSEL(QSPI_CSN, 0, 17)>; }; }; qspi_sleep: qspi_sleep { group1 { psels = <NRF_PSEL(QSPI_SCK, 0, 19)>, <NRF_PSEL(QSPI_IO0, 0, 20)>, <NRF_PSEL(QSPI_IO1, 0, 21)>, <NRF_PSEL(QSPI_IO2, 0, 22)>, <NRF_PSEL(QSPI_IO3, 0, 23)>, <NRF_PSEL(QSPI_CSN, 0, 17)>; low-power-enable; }; }; }; ```
/content/code_sandbox/boards/u-blox/ubx_bmd380eval/ubx_bmd380eval_nrf52840-pinctrl.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,151
```cmake # BMD-380-EVAL board configuration board_runner_args(nrfjprog "--nrf-family=NRF52") board_runner_args(jlink "--device=nRF52840_xxAA" "--speed=4000") board_runner_args(pyocd "--target=nrf52840" "--frequency=4000000") include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake) include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake) include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake) ```
/content/code_sandbox/boards/u-blox/ubx_bmd380eval/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
137
```restructuredtext .. _ubx_bmd330eval_nrf52810: u-blox EVK-BMD-330: BMD-330-EVAL ################################ Overview ******** The BMD-330-EVAL hardware provides support for the u-blox BMD-330 Bluetooth 5 module, based on The Nordic Semiconductor nRF52810 ARM Cortex-M4 CPU and the following devices: * :abbr:`ADC (Analog to Digital Converter)` * CLOCK * FLASH * :abbr:`GPIO (General Purpose Input Output)` * :abbr:`I2C (Inter-Integrated Circuit)` * :abbr:`MPU (Memory Protection Unit)` * :abbr:`NVIC (Nested Vectored Interrupt Controller)` * :abbr:`PWM (Pulse Width Modulation)` * RADIO (Bluetooth Low Energy) * :abbr:`RTC (nRF RTC System Clock)` * Segger RTT (RTT Console) * :abbr:`SPI (Serial Peripheral Interface)` * :abbr:`UART (Universal asynchronous receiver-transmitter)` * :abbr:`WDT (Watchdog Timer)` .. figure:: img/BMD-30-33-35-36-EVAL.jpg :align: center :alt: BMD-300-EVAL BMD-300-EVAL (Credit: u-blox AG) .. note:: The BMD-330-EVAL shares the same pin headers and assignments as the BMD-300-EVAL. The BMD-300-EVAL is shown here. More information about the BMD-330-EVAL and the BMD-330 module can be found at the `u-blox website`_. All of the Nordic Semiconductor examples for the nRF52 DK (nrf52dk_nrf52810) may be used without modification. Hardware ******** The BMD-330 on the BMD-330-EVAL contains an internal high-frequency oscillator at 32MHz. There is also a low frequency (slow) oscillator of 32.768kHz. The BMD-330 itself does not include the slow crystal; however, the BMD-330-EVAL does. .. note:: When targeting a custom design without a slow crystal, be sure to modify code to utilize the internal RC oscillator for the slow clock. Supported Features ================== The BMD-330-EVAL configuration supports the following hardware features: +-----------+------------+----------------------+ | Interface | Controller | Driver/Component | +===========+============+======================+ | ADC | on-chip | adc | +-----------+------------+----------------------+ | CLOCK | on-chip | clock_control | +-----------+------------+----------------------+ | FLASH | on-chip | flash | +-----------+------------+----------------------+ | GPIO | on-chip | gpio | +-----------+------------+----------------------+ | I2C(M) | on-chip | i2c | +-----------+------------+----------------------+ | MPU | on-chip | arch/arm | +-----------+------------+----------------------+ | NVIC | on-chip | arch/arm | +-----------+------------+----------------------+ | PWM | on-chip | pwm | +-----------+------------+----------------------+ | RADIO | on-chip | Bluetooth | +-----------+------------+----------------------+ | RTC | on-chip | system clock | +-----------+------------+----------------------+ | RTT | Segger | console | +-----------+------------+----------------------+ | SPI(M/S) | on-chip | spi | +-----------+------------+----------------------+ | UART | on-chip | serial | +-----------+------------+----------------------+ | WDT | on-chip | watchdog | +-----------+------------+----------------------+ Other hardware features have not been enabled yet for this board. See the `u-blox website`_ for a complete list of BMD-330-EVAL hardware features. Connections and IOs =================== LED --- * LED1 (red) = P0.17 * LED2 (red) = P0.18 * LED3 (green) = P0.19 * LED4 (green) = P0.20 * D5 (red) = OB LED 1 * D6 (green) = OB LED 2 Push buttons ------------ * BUTTON1 = SW1 = P0.13 * BUTTON2 = SW2 = P0.14 * BUTTON3 = SW3 = P0.15 * BUTTON4 = SW4 = P0.16 * BOOT = SW5 = boot/reset External Connectors ------------------- .. figure:: img/bmd-300-eval_pin_out.jpg :align: center :alt: BMD-300-EVAL pin-out BMD-300-EVAL pin-out (Credit: u-blox AG) .. note:: The BMD-330-EVAL shares the same pin headers and assignments as the BMD-300-EVAL. The BMD-300-EVAL is shown here. .. note:: The pin numbers noted below are referenced to the pin 1 markings on the BMD-330-EVAL for each header J-Link Prog Connector (J2) +-------+--------------+ | PIN # | Signal Name | +=======+==============+ | 1 | VDD | +-------+--------------+ | 2 | IMCU_TMSS | +-------+--------------+ | 3 | GND | +-------+--------------+ | 4 | IMCU_TCKS | +-------+--------------+ | 5 | V5V | +-------+--------------+ | 6 | IMCU_TDOS | +-------+--------------+ | 7 | Cut off | +-------+--------------+ | 8 | IMCU_TDIS | +-------+--------------+ | 9 | Cut off | +-------+--------------+ | 10 | IMCU_RESET | +-------+--------------+ Debug OUT (J3) +-------+----------------+ | PIN # | Signal Name | +=======+================+ | 1 | EXT_VTG | +-------+----------------+ | 2 | EXT_SWDIO | +-------+----------------+ | 3 | GND | +-------+----------------+ | 4 | EXT_SWDCLK | +-------+----------------+ | 5 | GND | +-------+----------------+ | 6 | EXT_SWO | +-------+----------------+ | 7 | N/C | +-------+----------------+ | 8 | N/C | +-------+----------------+ | 9 | EXT_GND_DETECT | +-------+----------------+ | 10 | EXT_RESET | +-------+----------------+ Auxiliary (J9) +-------+----------------+ | PIN # | Signal Name | +=======+================+ | 1 | P0.10 | +-------+----------------+ | 2 | P0.09 | +-------+----------------+ | 3 | P0.08 | +-------+----------------+ | 4 | P0.07 | +-------+----------------+ | 5 | P0.06 | +-------+----------------+ | 6 | P0.05 / AIN3 | +-------+----------------+ | 7 | P0.21 / RESET | +-------+----------------+ | 8 | P0.01 / XL2 | +-------+----------------+ | 9 | P0.00 / XL1 | +-------+----------------+ | 10 | GND | +-------+----------------+ Arduino Headers --------------- Power (J5) +-------+--------------+-------------------------+ | PIN # | Signal Name | BMD-330 Functions | +=======+==============+=========================+ | 1 | VSHLD | N/A | +-------+--------------+-------------------------+ | 2 | VSHLD | N/A | +-------+--------------+-------------------------+ | 3 | RESET | P0.21 / RESET | +-------+--------------+-------------------------+ | 4 | VSHLD | N/A | +-------+--------------+-------------------------+ | 5 | V5V | N/A | +-------+--------------+-------------------------+ | 6 | GND | N/A | +-------+--------------+-------------------------+ | 7 | GND | N/A | +-------+--------------+-------------------------+ | 8 | N/C | N/A | +-------+--------------+-------------------------+ Analog in (J8) +-------+--------------+-------------------------+ | PIN # | Signal Name | BMD-330 Functions | +=======+==============+=========================+ | 1 | A0 | P0.03 / AIN1 | +-------+--------------+-------------------------+ | 2 | A1 | P0.04 / AIN2 | +-------+--------------+-------------------------+ | 3 | A2 | P0.28 / AIN4 | +-------+--------------+-------------------------+ | 4 | A3 | P0.29 / AIN5 | +-------+--------------+-------------------------+ | 5 | A4 | P0.30 / AIN6 | +-------+--------------+-------------------------+ | 6 | A5 | P0.31 / AIN7 | +-------+--------------+-------------------------+ Digital I/O (J7) +-------+--------------+----------------------------+ | PIN # | Signal Name | BMD-330 Functions | +=======+==============+============================+ | 1 | D7 | P0.18 | +-------+--------------+----------------------------+ | 2 | D6 | P0.17 | +-------+--------------+----------------------------+ | 3 | D5 | P0.16 | +-------+--------------+----------------------------+ | 4 | D4 | P0.15 | +-------+--------------+----------------------------+ | 5 | D3 | P0.14 | +-------+--------------+----------------------------+ | 6 | D2 | P0.13 | +-------+--------------+----------------------------+ | 7 | D1 (TX) | P0.12 | +-------+--------------+----------------------------+ | 8 | D0 (RX) | P0.11 | +-------+--------------+----------------------------+ Digital I/O (J6) +-------+--------------+-------------------------+ | PIN # | Signal Name | BMD-330 Functions | +=======+==============+=========================+ | 1 | SCL | P0.27 | +-------+--------------+-------------------------+ | 2 | SDA | P0.26 | +-------+--------------+-------------------------+ | 3 | AREF | P0.02 / AIN0 | +-------+--------------+-------------------------+ | 4 | GND | N/A | +-------+--------------+-------------------------+ | 5 | D13 (SCK) | P0.25 | +-------+--------------+-------------------------+ | 6 | D12 (MISO) | P0.24 | +-------+--------------+-------------------------+ | 7 | D11 (MOSI) | P0.23 | +-------+--------------+-------------------------+ | 8 | D10 (SS) | P0.22 | +-------+--------------+-------------------------+ | 9 | D9 | P0.20 | +-------+--------------+-------------------------+ | 10 | D8 | P0.19 | +-------+--------------+-------------------------+ J11 +-------+--------------+-------------------------+ | PIN # | Signal Name | BMD-330 Functions | +=======+==============+=========================+ | 1 | D12 (MISO) | P0.24 | +-------+--------------+-------------------------+ | 2 | V5V | N/A | +-------+--------------+-------------------------+ | 3 | D13 (SCK) | P0.25 | +-------+--------------+-------------------------+ | 4 | D11 (MOSI) | P0.23 | +-------+--------------+-------------------------+ | 5 | RESET | N/A | +-------+--------------+-------------------------+ | 6 | N/A | N/A | +-------+--------------+-------------------------+ Programming and Debugging ************************* Flashing ======== Follow the instructions in the :ref:`nordic_segger` page to install and configure all the necessary software. Further information can be found in :ref:`nordic_segger_flashing`. Then build and flash applications as usual (see :ref:`build_an_application` and :ref:`application_run` for more details). Here is an example for the :ref:`hello_world` application. First, run your favorite terminal program to listen for output. .. code-block:: console $ minicom -D <tty_device> -b 115200 Replace :code:`<tty_device>` with the port where the BMD-330-EVAL can be found. For example, under Linux, :code:`/dev/ttyACM0`. Then build and flash the application in the usual way. .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: ubx_bmd330eval/nrf52810 :goals: build flash Debugging ========= Refer to the :ref:`nordic_segger` page to learn about debugging u-blox boards with a Segger J-LINK-OB IC. Testing the LEDs and buttons in the BMD-330-EVAL ************************************************ There are 2 samples that allow you to test that the buttons (switches) and LEDs on the board are working properly with Zephyr: .. code-block:: console samples/basic/blinky samples/basic/button You can build and flash the examples to make sure Zephyr is running correctly on your board. The button and LED definitions can be found in :zephyr_file:`boards/u-blox/ubx_bmd330eval/ubx_bmd330eval_nrf52810.dts`. References ********** .. target-notes:: .. _u-blox website: path_to_url ```
/content/code_sandbox/boards/u-blox/ubx_bmd330eval/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,178
```unknown /* * BMD-380-EVAL board configuration * */ /dts-v1/; #include <nordic/nrf52840_qiaa.dtsi> #include "ubx_bmd380eval_nrf52840-pinctrl.dtsi" /* should be ckaa, but not available yet */ #include <zephyr/dt-bindings/input/input-event-codes.h> / { model = "u-blox BMD-380-EVAL EVK nRF52840"; compatible = "u-blox,ubx-bmd380eval-nrf52840"; chosen { zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,uart-mcumgr = &uart0; zephyr,bt-mon-uart = &uart0; zephyr,bt-c2h-uart = &uart0; zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; zephyr,ieee802154 = &ieee802154; }; leds { compatible = "gpio-leds"; led0: led_0 { gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; label = "Red LED 0"; }; led1: led_1 { gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; label = "Red LED 1"; }; led2: led_2 { gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; label = "Green LED 2"; }; led3: led_3 { gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; label = "Green LED 3"; }; }; pwmleds { compatible = "pwm-leds"; pwm_led0: pwm_led_0 { pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; }; }; buttons { compatible = "gpio-keys"; button0: button_0 { gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; zephyr,code = <INPUT_KEY_0>; }; button1: button_1 { gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; zephyr,code = <INPUT_KEY_1>; }; button2: button_2 { gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; zephyr,code = <INPUT_KEY_2>; }; button3: button_3 { gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; zephyr,code = <INPUT_KEY_3>; }; }; /* These aliases are provided for compatibility with samples */ aliases { led0 = &led0; led1 = &led1; led2 = &led2; led3 = &led3; pwm-led0 = &pwm_led0; sw0 = &button0; sw1 = &button1; sw2 = &button2; sw3 = &button3; watchdog0 = &wdt0; }; }; &reg1 { regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; }; &adc { status = "okay"; }; &uicr { gpio-as-nreset; }; &gpiote { status = "okay"; }; &gpio0 { status = "okay"; }; &gpio1 { status = "okay"; }; &uart0 { compatible = "nordic,nrf-uart"; status = "okay"; current-speed = <115200>; pinctrl-0 = <&uart0_default>; pinctrl-1 = <&uart0_sleep>; pinctrl-names = "default", "sleep"; }; &i2c1 { compatible = "nordic,nrf-twi"; /* Cannot be used together with spi1. */ /* status = "okay"; */ pinctrl-0 = <&i2c1_default>; pinctrl-1 = <&i2c1_sleep>; pinctrl-names = "default", "sleep"; }; &pwm0 { status = "okay"; pinctrl-0 = <&pwm0_default>; pinctrl-1 = <&pwm0_sleep>; pinctrl-names = "default", "sleep"; }; &spi0 { compatible = "nordic,nrf-spi"; /* Cannot be used together with i2c0. */ /* status = "okay"; */ pinctrl-0 = <&spi0_default>; pinctrl-1 = <&spi0_sleep>; pinctrl-names = "default", "sleep"; }; &spi1 { compatible = "nordic,nrf-spi"; status = "okay"; pinctrl-0 = <&spi1_default>; pinctrl-1 = <&spi1_sleep>; pinctrl-names = "default", "sleep"; }; &spi2 { compatible = "nordic,nrf-spi"; status = "disabled"; pinctrl-0 = <&spi2_default>; pinctrl-1 = <&spi2_sleep>; pinctrl-names = "default", "sleep"; }; &qspi { status = "okay"; pinctrl-0 = <&qspi_default>; pinctrl-1 = <&qspi_sleep>; pinctrl-names = "default", "sleep"; mx25r64: mx25r6435f@0 { compatible = "nordic,qspi-nor"; reg = <0>; writeoc = "pp4io"; readoc = "read4io"; sck-frequency = <8000000>; jedec-id = [c2 28 17]; sfdp-bfp = [ e5 20 f1 ff ff ff ff 03 44 eb 08 6b 08 3b 04 bb ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 0f 52 10 d8 00 ff 23 72 f5 00 82 ed 04 cc 44 83 68 44 30 b0 30 b0 f7 c4 d5 5c 00 be 29 ff f0 d0 ff ff ]; size = <67108864>; has-dpd; t-enter-dpd = <10000>; t-exit-dpd = <35000>; }; }; &ieee802154 { status = "okay"; }; &flash0 { /* * For more information, see: * path_to_url legacy-macros.html#legacy-flash-partitions */ partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x00000000 0x0000C000>; }; slot0_partition: partition@c000 { label = "image-0"; reg = <0x0000C000 0x00067000>; }; slot1_partition: partition@73000 { label = "image-1"; reg = <0x00073000 0x00067000>; }; scratch_partition: partition@da000 { label = "image-scratch"; reg = <0x000da000 0x0001e000>; }; /* * The flash starting at 0x000f8000 and ending at * 0x000fffff is reserved for use by the application. */ /* * Storage partition will be used by FCB/LittleFS/NVS * if enabled. */ storage_partition: partition@f8000 { label = "storage"; reg = <0x000f8000 0x00008000>; }; }; }; zephyr_udc0: &usbd { compatible = "nordic,nrf-usbd"; status = "okay"; }; ```
/content/code_sandbox/boards/u-blox/ubx_bmd380eval/ubx_bmd380eval_nrf52840.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,900
```cmake # Suppress "unique_unit_address_if_enabled" to handle the following overlaps: # - power@40000000 & clock@40000000 & bprot@40000000 # - acl@4001e000 & flash-controller@4001e000 list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled") ```
/content/code_sandbox/boards/u-blox/ubx_bmd380eval/pre_dt_board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
72
```yaml board: name: ubx_bmd380eval vendor: u-blox socs: - name: nrf52840 ```
/content/code_sandbox/boards/u-blox/ubx_bmd380eval/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
33
```unknown # BMD-380-EVAL board configuration if BOARD_UBX_BMD380EVAL config BT_CTLR default BT endif # BOARD_UBX_BMD380EVAL ```
/content/code_sandbox/boards/u-blox/ubx_bmd380eval/Kconfig.defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
42
```yaml identifier: ubx_bmd380eval/nrf52840 name: UBX_BMD380EVAL_NRF52840 type: mcu arch: arm ram: 256 flash: 1024 toolchain: - zephyr - gnuarmemb - xtools supported: - adc - ble - counter - gpio - i2c - pwm - spi - qspi - usb_device - watchdog - netif:openthread vendor: u-blox ```
/content/code_sandbox/boards/u-blox/ubx_bmd380eval/ubx_bmd380eval_nrf52840.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
130
```unknown # BMD-380-EVAL board configuration config BOARD_UBX_BMD380EVAL select SOC_NRF52840_QIAA # should be CKAA, # but SOC file not yet available from Nordic Semiconductor ```
/content/code_sandbox/boards/u-blox/ubx_bmd380eval/Kconfig.ubx_bmd380eval
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
49
```unknown # BMD-380-EVAL board configuration # should be CKAA, but not available yet from Nordic Semiconductor # Enable hardware stack protection CONFIG_HW_STACK_PROTECTION=y # Enable MPU CONFIG_ARM_MPU=y # Enable RTT CONFIG_USE_SEGGER_RTT=y # enable GPIO CONFIG_GPIO=y # enable uart driver CONFIG_SERIAL=y # enable console CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y ```
/content/code_sandbox/boards/u-blox/ubx_bmd380eval/ubx_bmd380eval_nrf52840_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
91
```cmake # BMD-300-EVAL, BMD-301-EVAL, and BMD-350-EVAL board configuration board_runner_args(jlink "--device=nRF52832_xxAA" "--speed=4000") board_runner_args(pyocd "--target=nrf52832" "--frequency=4000000") include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake) include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake) include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake) ```
/content/code_sandbox/boards/u-blox/ubx_bmd300eval/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
137
```unknown /* */ &pinctrl { uart0_default: uart0_default { group1 { psels = <NRF_PSEL(UART_TX, 0, 6)>, <NRF_PSEL(UART_RX, 0, 8)>, <NRF_PSEL(UART_RTS, 0, 5)>, <NRF_PSEL(UART_CTS, 0, 7)>; }; }; uart0_sleep: uart0_sleep { group1 { psels = <NRF_PSEL(UART_TX, 0, 6)>, <NRF_PSEL(UART_RX, 0, 8)>, <NRF_PSEL(UART_RTS, 0, 5)>, <NRF_PSEL(UART_CTS, 0, 7)>; low-power-enable; }; }; i2c0_default: i2c0_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 26)>, <NRF_PSEL(TWIM_SCL, 0, 27)>; }; }; i2c0_sleep: i2c0_sleep { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 26)>, <NRF_PSEL(TWIM_SCL, 0, 27)>; low-power-enable; }; }; i2c1_default: i2c1_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 30)>, <NRF_PSEL(TWIM_SCL, 0, 31)>; }; }; i2c1_sleep: i2c1_sleep { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 30)>, <NRF_PSEL(TWIM_SCL, 0, 31)>; low-power-enable; }; }; pwm0_default: pwm0_default { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 17)>; nordic,invert; }; }; pwm0_sleep: pwm0_sleep { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 17)>; low-power-enable; }; }; spi0_default: spi0_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 27)>, <NRF_PSEL(SPIM_MOSI, 0, 26)>, <NRF_PSEL(SPIM_MISO, 0, 28)>; }; }; spi0_sleep: spi0_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 27)>, <NRF_PSEL(SPIM_MOSI, 0, 26)>, <NRF_PSEL(SPIM_MISO, 0, 28)>; low-power-enable; }; }; spi1_default: spi1_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 31)>, <NRF_PSEL(SPIM_MOSI, 0, 30)>, <NRF_PSEL(SPIM_MISO, 0, 29)>; }; }; spi1_sleep: spi1_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 31)>, <NRF_PSEL(SPIM_MOSI, 0, 30)>, <NRF_PSEL(SPIM_MISO, 0, 29)>; low-power-enable; }; }; spi2_default: spi2_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 25)>, <NRF_PSEL(SPIM_MOSI, 0, 23)>, <NRF_PSEL(SPIM_MISO, 0, 24)>; }; }; spi2_sleep: spi2_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 25)>, <NRF_PSEL(SPIM_MOSI, 0, 23)>, <NRF_PSEL(SPIM_MISO, 0, 24)>; low-power-enable; }; }; }; ```
/content/code_sandbox/boards/u-blox/ubx_bmd300eval/ubx_bmd300eval_nrf52832-pinctrl.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,017
```unknown # BMD-300-EVAL, BMD-301-EVAL, and BMD-350-EVAL board configuration config BOARD_UBX_BMD300EVAL select SOC_NRF52832_QFAA ```
/content/code_sandbox/boards/u-blox/ubx_bmd300eval/Kconfig.ubx_bmd300eval
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
47
```cmake # Suppress "unique_unit_address_if_enabled" to handle the following overlaps: # - power@40000000 & clock@40000000 & bprot@40000000 # - acl@4001e000 & flash-controller@4001e000 list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled") ```
/content/code_sandbox/boards/u-blox/ubx_bmd300eval/pre_dt_board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
72
```unknown # Enable MPU CONFIG_ARM_MPU=y # Enable hardware stack protection CONFIG_HW_STACK_PROTECTION=y # Enable RTT CONFIG_USE_SEGGER_RTT=y # enable GPIO CONFIG_GPIO=y # enable uart driver CONFIG_SERIAL=y # enable console CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y ```
/content/code_sandbox/boards/u-blox/ubx_bmd300eval/ubx_bmd300eval_nrf52832_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
68
```yaml board: name: ubx_bmd300eval vendor: u-blox socs: - name: nrf52832 ```
/content/code_sandbox/boards/u-blox/ubx_bmd300eval/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
33
```unknown /* * */ /dts-v1/; #include <nordic/nrf52832_qfaa.dtsi> #include "ubx_bmd300eval_nrf52832-pinctrl.dtsi" #include <zephyr/dt-bindings/input/input-event-codes.h> / { model = "u-blox BMD-300-EVAL EVK nRF52832"; compatible = "u-blox,ubx-bmd300eval-nrf52832"; chosen { zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,uart-mcumgr = &uart0; zephyr,bt-mon-uart = &uart0; zephyr,bt-c2h-uart = &uart0; zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; }; leds { compatible = "gpio-leds"; led0: led_0 { gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; label = "Red LED 0"; }; led1: led_1 { gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; label = "Red LED 1"; }; led2: led_2 { gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; label = "Green LED 2"; }; led3: led_3 { gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; label = "Green LED 3"; }; }; pwmleds { compatible = "pwm-leds"; pwm_led0: pwm_led_0 { pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; }; }; buttons { compatible = "gpio-keys"; button0: button_0 { gpios = <&gpio0 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; zephyr,code = <INPUT_KEY_0>; }; button1: button_1 { gpios = <&gpio0 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; zephyr,code = <INPUT_KEY_1>; }; button2: button_2 { gpios = <&gpio0 15 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; zephyr,code = <INPUT_KEY_2>; }; button3: button_3 { gpios = <&gpio0 16 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; zephyr,code = <INPUT_KEY_3>; }; }; arduino_header: connector { compatible = "arduino-header-r3"; #gpio-cells = <2>; gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; gpio-map = <0 0 &gpio0 3 0>, /* A0 */ <1 0 &gpio0 4 0>, /* A1 */ <2 0 &gpio0 28 0>, /* A2 */ <3 0 &gpio0 29 0>, /* A3 */ <4 0 &gpio0 30 0>, /* A4 */ <5 0 &gpio0 31 0>, /* A5 */ <6 0 &gpio0 11 0>, /* D0 */ <7 0 &gpio0 12 0>, /* D1 */ <8 0 &gpio0 13 0>, /* D2 */ <9 0 &gpio0 14 0>, /* D3 */ <10 0 &gpio0 15 0>, /* D4 */ <11 0 &gpio0 16 0>, /* D5 */ <12 0 &gpio0 17 0>, /* D6 */ <13 0 &gpio0 18 0>, /* D7 */ <14 0 &gpio0 19 0>, /* D8 */ <15 0 &gpio0 20 0>, /* D9 */ <16 0 &gpio0 22 0>, /* D10 */ <17 0 &gpio0 23 0>, /* D11 */ <18 0 &gpio0 24 0>, /* D12 */ <19 0 &gpio0 25 0>, /* D13 */ <20 0 &gpio0 26 0>, /* D14 */ <21 0 &gpio0 27 0>; /* D15 */ }; arduino_adc: analog-connector { compatible = "arduino,uno-adc"; #io-channel-cells = <1>; io-channel-map = <0 &adc 1>, /* A0 = P0.3 = AIN1 */ <1 &adc 2>, /* A1 = P0.4 = AIN2 */ <2 &adc 4>, /* A2 = P0.28 = AIN4 */ <3 &adc 5>, /* A3 = P0.29 = AIN5 */ <4 &adc 6>, /* A4 = P0.30 = AIN6 */ <5 &adc 7>; /* A5 = P0.31 = AIN7 */ }; /* These aliases are provided for compatibility with samples */ aliases { led0 = &led0; led1 = &led1; led2 = &led2; led3 = &led3; pwm-led0 = &pwm_led0; sw0 = &button0; sw1 = &button1; sw2 = &button2; sw3 = &button3; bootloader-led0 = &led0; mcuboot-button0 = &button0; mcuboot-led0 = &led0; watchdog0 = &wdt0; }; }; &reg { regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; }; &adc { status = "okay"; }; &uicr { gpio-as-nreset; }; &gpiote { status = "okay"; }; &gpio0 { status = "okay"; }; arduino_serial: &uart0 { status = "okay"; compatible = "nordic,nrf-uarte"; current-speed = <115200>; pinctrl-0 = <&uart0_default>; pinctrl-1 = <&uart0_sleep>; pinctrl-names = "default", "sleep"; }; arduino_i2c: &i2c0 { compatible = "nordic,nrf-twi"; status = "okay"; pinctrl-0 = <&i2c0_default>; pinctrl-1 = <&i2c0_sleep>; pinctrl-names = "default", "sleep"; }; &i2c1 { compatible = "nordic,nrf-twi"; /* Cannot be used together with spi1. */ /* status = "okay"; */ pinctrl-0 = <&i2c1_default>; pinctrl-1 = <&i2c1_sleep>; pinctrl-names = "default", "sleep"; }; &pwm0 { status = "okay"; pinctrl-0 = <&pwm0_default>; pinctrl-1 = <&pwm0_sleep>; pinctrl-names = "default", "sleep"; }; &spi0 { compatible = "nordic,nrf-spi"; /* Cannot be used together with i2c0. */ /* status = "okay"; */ pinctrl-0 = <&spi0_default>; pinctrl-1 = <&spi0_sleep>; pinctrl-names = "default", "sleep"; }; &spi1 { compatible = "nordic,nrf-spi"; status = "okay"; pinctrl-0 = <&spi1_default>; pinctrl-1 = <&spi1_sleep>; pinctrl-names = "default", "sleep"; }; arduino_spi: &spi2 { compatible = "nordic,nrf-spi"; status = "okay"; cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ pinctrl-0 = <&spi2_default>; pinctrl-1 = <&spi2_sleep>; pinctrl-names = "default", "sleep"; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x00000000 0xc000>; }; slot0_partition: partition@c000 { label = "image-0"; reg = <0x0000C000 0x32000>; }; slot1_partition: partition@3e000 { label = "image-1"; reg = <0x0003E000 0x32000>; }; scratch_partition: partition@70000 { label = "image-scratch"; reg = <0x00070000 0xa000>; }; storage_partition: partition@7a000 { label = "storage"; reg = <0x0007a000 0x00006000>; }; }; }; ```
/content/code_sandbox/boards/u-blox/ubx_bmd300eval/ubx_bmd300eval_nrf52832.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,160
```yaml identifier: ubx_bmd300eval/nrf52832 name: UBX_BMD300EVAL_NRF52832 type: mcu arch: arm toolchain: - zephyr - gnuarmemb - xtools ram: 64 flash: 512 supported: - adc - arduino_gpio - arduino_i2c - arduino_spi - gpio - counter - nvs - i2c - pwm - spi - watchdog vendor: u-blox ```
/content/code_sandbox/boards/u-blox/ubx_bmd300eval/ubx_bmd300eval_nrf52832.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
131
```unknown # BMD-300-EVAL, BMD-301-EVAL, and BMD-350-EVAL board configuration if BOARD_UBX_BMD300EVAL config BT_CTLR default BT endif # BOARD_UBX_BMD300EVAL ```
/content/code_sandbox/boards/u-blox/ubx_bmd300eval/Kconfig.defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
57
```restructuredtext .. _ubx_bmd380eval_nrf52840: u-blox EVK-BMD-34/48: BMD-380-EVAL ################################## Overview ******** The BMD-380-EVAL hardware provides support for the u-blox BMD-380 Bluetooth 5.0 module, based on The Nordic Semiconductor nRF52840 ARM Cortex-M4F CPU and the following devices: * :abbr:`ADC (Analog to Digital Converter)` * CLOCK * FLASH * :abbr:`GPIO (General Purpose Input Output)` * :abbr:`I2C (Inter-Integrated Circuit)` * :abbr:`MPU (Memory Protection Unit)` * :abbr:`NVIC (Nested Vectored Interrupt Controller)` * :abbr:`PWM (Pulse Width Modulation)` * RADIO (Bluetooth Low Energy and 802.15.4) * :abbr:`RTC (nRF RTC System Clock)` * Segger RTT (RTT Console) * :abbr:`SPI (Serial Peripheral Interface)` * :abbr:`UART (Universal asynchronous receiver-transmitter)` * :abbr:`USB (Universal Serial Bus)` * :abbr:`WDT (Watchdog Timer)` .. figure:: img/BMD-34-38-EVAL.jpg :align: center :alt: BMD-340-EVAL BMD-340-EVAL (Credit: u-blox AG) .. note:: The BMD-380-EVAL shares the same pin headers and assignments as the BMD-340-EVAL with four exceptions. The BMD-340-EVAL is shown here. See the pin tables below for the exceptions. More information about the BMD-340-EVAL and the BMD-340 module can be found at the `u-blox website`_. All of the Nordic Semiconductor examples for the nRF52840 DK (nrf52840dk_nrf52840) may be used without modification. Hardware ******** The BMD-380 on the BMD-380-EVAL contains an internal high-frequency oscillator at 32MHz. There is also a low frequency (slow) oscillator of 32.768kHz. The BMD-380 itself does not include the slow crystal; however, the BMD-380-eval does. .. note:: When targeting a custom design without a slow crystal, be sure to modify code to utilize the internal RC oscillator for the slow clock. Supported Features ================== The BMD-380-EVAL board configuration supports the following hardware features: +-----------+------------+----------------------+ | Interface | Controller | Driver/Component | +===========+============+======================+ | ADC | on-chip | adc | +-----------+------------+----------------------+ | CLOCK | on-chip | clock_control | +-----------+------------+----------------------+ | FLASH | on-chip | flash | +-----------+------------+----------------------+ | GPIO | on-chip | gpio | +-----------+------------+----------------------+ | I2C(M) | on-chip | i2c | +-----------+------------+----------------------+ | MPU | on-chip | arch/arm | +-----------+------------+----------------------+ | NVIC | on-chip | arch/arm | +-----------+------------+----------------------+ | PWM | on-chip | pwm | +-----------+------------+----------------------+ | RADIO | on-chip | Bluetooth, | | | | IEEE 802.15.4 | +-----------+------------+----------------------+ | RTC | on-chip | system clock | +-----------+------------+----------------------+ | RTT | Segger | console | +-----------+------------+----------------------+ | SPI(M/S) | on-chip | spi | +-----------+------------+----------------------+ | UART | on-chip | serial | +-----------+------------+----------------------+ | USB | on-chip | usb | +-----------+------------+----------------------+ | WDT | on-chip | watchdog | +-----------+------------+----------------------+ Other hardware features have not been enabled yet for this board. See the `u-blox website`_ for a complete list of BMD-380-EVAL hardware features. Connections and IOs =================== LED --- * LED1 (red) = P0.13 * LED2 (red) = P0.14 * LED3 (green) = P0.15 * LED4 (green) = P0.16 * D5 (red) = OB LED 1 * D6 (green) = OB LED 2 Push buttons ------------ * BUTTON1 = SW1 = P0.11 * BUTTON2 = SW2 = P0.12 * BUTTON3 = SW3 = P0.24 * BUTTON4 = SW4 = P0.25 * BOOT = SW5 = boot/reset External Connectors ------------------- .. figure:: img/bmd-340-eval_pin_out.jpg :align: center :alt: BMD-340-EVAL pin-out .. note:: The BMD-380-EVAL shares the same pin headers and assignments as the BMD-340-EVAL with four exceptions. The BMD-340-EVAL is shown here. See the pin tables below for the exceptions. .. note:: The pin numbers noted below are referenced to the pin 1 markings on the BMD-380-EVAL for each header J-Link Prog Connector (J2) +-------+--------------+ | PIN # | Signal Name | +=======+==============+ | 1 | VDD | +-------+--------------+ | 2 | IMCU_TMSS | +-------+--------------+ | 3 | GND | +-------+--------------+ | 4 | IMCU_TCKS | +-------+--------------+ | 5 | V5V | +-------+--------------+ | 6 | IMCU_TDOS | +-------+--------------+ | 7 | Cut off | +-------+--------------+ | 8 | IMCU_TDIS | +-------+--------------+ | 9 | Cut off | +-------+--------------+ | 10 | IMCU_RESET | +-------+--------------+ Debug OUT (J3) +-------+----------------+ | PIN # | Signal Name | +=======+================+ | 1 | EXT_VTG | +-------+----------------+ | 2 | EXT_SWDIO | +-------+----------------+ | 3 | GND | +-------+----------------+ | 4 | EXT_SWDCLK | +-------+----------------+ | 5 | GND | +-------+----------------+ | 6 | EXT_SWO | +-------+----------------+ | 7 | N/C | +-------+----------------+ | 8 | N/C | +-------+----------------+ | 9 | EXT_GND_DETECT | +-------+----------------+ | 10 | EXT_RESET | +-------+----------------+ Debug IN (J26) +-------+----------------+ | PIN # | Signal Name | +=======+================+ | 1 | BMD-340_VCC | +-------+----------------+ | 2 | BMD-340_SWDIO | +-------+----------------+ | 3 | GND | +-------+----------------+ | 4 | BMD-340_SWDCLK | +-------+----------------+ | 5 | GND | +-------+----------------+ | 6 | BMD-340_SWO | +-------+----------------+ | 7 | N/C | +-------+----------------+ | 8 | N/C | +-------+----------------+ | 9 | GND | +-------+----------------+ | 10 | BMD-340_RESET | +-------+----------------+ Auxiliary (J9) +-------+----------------+ | PIN # | Signal Name | +=======+================+ | 1 | P0.10 / NFC2 | +-------+----------------+ | 2 | P0.09 / NFC1 | +-------+----------------+ | 3 | P0.08 | +-------+----------------+ | 4 | P0.07 | +-------+----------------+ | 5 | P0.06 | +-------+----------------+ | 6 | P0.05 / AIN3 | +-------+----------------+ | 7 | P0.01 / XL2 | +-------+----------------+ | 8 | P0.00 / XL1 | +-------+----------------+ Auxiliary (J10) +-------+-------------------+ | PIN # | Signal Name | +=======+===================+ | 1 | P0.11 / TRACED[2] | +-------+-------------------+ | 2 | P0.12 / TRACED[1] | +-------+-------------------+ | 3 | P0.13 | +-------+-------------------+ | 4 | P0.14 | +-------+-------------------+ | 5 | P0.15 | +-------+-------------------+ | 6 | P0.16 | +-------+-------------------+ | 7 | P0.17 / QSPI_CS | +-------+-------------------+ | 8 | P0.18 / RESET | +-------+-------------------+ | 9 | P0.19 / QSPI_CLK | +-------+-------------------+ | 10 | P0.20 / QSPI_D0 | +-------+-------------------+ | 11 | P0.21 / QSPI_D1 | +-------+-------------------+ | 12 | P0.22 / QSPI_D2 | +-------+-------------------+ | 13 | P0.23 / QSPI_D3 | +-------+-------------------+ | 14 | P0.24 | +-------+-------------------+ | 15 | P0.25 | +-------+-------------------+ | 16 | P1.00 / TRACED[0] | +-------+-------------------+ | 17 | P1.09 / TRACED[3] | +-------+-------------------+ | 18 | No connection | +-------+-------------------+ Power (J5) +-------+--------------+-------------------------+ | PIN # | Signal Name | BMD-380 Functions | +=======+==============+=========================+ | 1 | VSHLD | N/A | +-------+--------------+-------------------------+ | 2 | VSHLD | N/A | +-------+--------------+-------------------------+ | 3 | RESET | P0.18 / RESET | +-------+--------------+-------------------------+ | 4 | VSHLD | N/A | +-------+--------------+-------------------------+ | 5 | V5V | N/A | +-------+--------------+-------------------------+ | 6 | GND | N/A | +-------+--------------+-------------------------+ | 7 | GND | N/A | +-------+--------------+-------------------------+ | 8 | N/C | N/A | +-------+--------------+-------------------------+ Analog in (J8) +-------+--------------+-------------------------+ | PIN # | Signal Name | BMD-380 Functions | +=======+==============+=========================+ | 1 | A0 | P0.03 / AIN1 | +-------+--------------+-------------------------+ | 2 | A1 | P0.04 / AIN2 | +-------+--------------+-------------------------+ | 3 | A2 | P0.28 / AIN4 | +-------+--------------+-------------------------+ | 4 | A3 | P0.29 / AIN5 | +-------+--------------+-------------------------+ | 5 | A4 | P0.30 / AIN6 | +-------+--------------+-------------------------+ | 6 | A5 | P0.31 / AIN7 | +-------+--------------+-------------------------+ Digital I/O (J7) +-------+--------------+-------------------------+ | PIN # | Signal Name | BMD-380 Functions | +=======+==============+=========================+ | 1 | D7 | P1.08 | +-------+--------------+-------------------------+ | 2 | - | No connection | +-------+--------------+-------------------------+ | 3 | D5 | P1.06 | +-------+--------------+-------------------------+ | 4 | D4 | No connection | +-------+--------------+-------------------------+ | 5 | - | No connection | +-------+--------------+-------------------------+ | 6 | - | No connection | +-------+--------------+-------------------------+ | 7 | D1 (TX) | P1.02 | +-------+--------------+-------------------------+ | 8 | - | No connection | +-------+--------------+-------------------------+ Digital I/O (J6) +-------+--------------+-------------------------+ | PIN # | Signal Name | BMD-380 Functions | +=======+==============+=========================+ | 1 | SCL | P0.27 | +-------+--------------+-------------------------+ | 2 | SDA | P0.26 | +-------+--------------+-------------------------+ | 3 | AREF | P0.02 / AIN0 | +-------+--------------+-------------------------+ | 4 | GND | N/A | +-------+--------------+-------------------------+ | 5 | D13 (SCK) | P1.15 | +-------+--------------+-------------------------+ | 6 | D12 (MISO) | P1.14 | +-------+--------------+-------------------------+ | 7 | D11 (MOSI) | P1.13 | +-------+--------------+-------------------------+ | 8 | D10 (SS) | P1.12 | +-------+--------------+-------------------------+ | 9 | D9 | P1.11 | +-------+--------------+-------------------------+ | 10 | D8 | P1.10 | +-------+--------------+-------------------------+ J11 +-------+--------------+-------------------------+ | PIN # | Signal Name | BMD-380 Functions | +=======+==============+=========================+ | 1 | D12 (MISO) | P0.14 | +-------+--------------+-------------------------+ | 2 | V5V | N/A | +-------+--------------+-------------------------+ | 3 | D13 (SCK) | P0.15 | +-------+--------------+-------------------------+ | 4 | D11 (MOSI) | P0.13 | +-------+--------------+-------------------------+ | 5 | RESET | N/A | +-------+--------------+-------------------------+ | 6 | N/A | N/A | +-------+--------------+-------------------------+ Programming and Debugging ************************* Applications for the BMD-380-EVAL board configurations can be built and flashed in the usual way (see :ref:`build_an_application` and :ref:`application_run` for more details); however, the standard debugging targets are not currently available. Flashing ======== Follow the instructions in the :ref:`nordic_segger` page to install and configure all the necessary software. Further information can be found in :ref:`nordic_segger_flashing`. Then build and flash applications as usual (see :ref:`build_an_application` and :ref:`application_run` for more details). Here is an example for the :ref:`hello_world` application. First, run your favorite terminal program to listen for output. .. code-block:: console $ minicom -D <tty_device> -b 115200 Replace :code:`<tty_device>` with the port where the BMD-380-EVAL can be found. For example, under Linux, :code:`/dev/ttyACM0`. Then build and flash the application in the usual way. .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: ubx_bmd380eval/nrf52840 :goals: build flash Debugging ========= Refer to the :ref:`nordic_segger` page to learn about debugging u-blox boards with a Segger J-LINK-OB IC. Testing the LEDs and buttons in the BMD-380-EVAL ************************************************ There are 2 samples that allow you to test that the buttons (switches) and LEDs on the board are working properly with Zephyr: .. code-block:: console samples/basic/blinky samples/basic/button You can build and flash the examples to make sure Zephyr is running correctly on your board. The button and LED definitions can be found in :zephyr_file:`boards/u-blox/ubx_bmd340eval/ubx_bmd340eval_nrf52840.dts`. Using UART1 *********** The following approach can be used when an application needs to use more than one UART for connecting peripheral devices: 1. Add device tree overlay file to the main directory of your application: .. code-block:: devicetree &pinctrl { uart1_default: uart1_default { group1 { psels = <NRF_PSEL(UART_TX, 0, 14)>, <NRF_PSEL(UART_RX, 0, 16)>; }; }; /* required if CONFIG_PM_DEVICE=y */ uart1_sleep: uart1_sleep { group1 { psels = <NRF_PSEL(UART_TX, 0, 14)>, <NRF_PSEL(UART_RX, 0, 16)>; low-power-enable; }; }; }; &uart1 { compatible = "nordic,nrf-uarte"; current-speed = <115200>; status = "okay"; pinctrl-0 = <&uart1_default>; pinctrl-1 = <&uart1_sleep>; pinctrl-names = "default", "sleep"; }; In the overlay file above, pin P0.16 is used for RX and P0.14 is used for TX 2. Use the UART1 as ``DEVICE_DT_GET(DT_NODELABEL(uart1))`` Overlay file naming =================== The file has to be named ``<board>.overlay`` and placed in the app main directory to be picked up automatically by the device tree compiler. Selecting the pins ================== Pins can be configured in the board pinctrl file. To see the available mappings, open the data sheet for the BMD-380 at the `u-blox website`_, Section 2 'Pin definition'. In the table 3 select the pins marked 'GPIO'. Note that pins marked as 'Standard drive, low frequency I/O only (<10 kH' can only be used in under-10KHz applications. They are not suitable for 115200 speed of UART. .. note: Pins are defined according to the "nRF52" pin number, not the module pad number. References ********** .. target-notes:: .. _u-blox website: path_to_url ```
/content/code_sandbox/boards/u-blox/ubx_bmd380eval/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,310
```yaml identifier: ubx_evkninab1/nrf52832 name: UBX-EVKNINAB1-NRF52832 type: mcu arch: arm toolchain: - zephyr - gnuarmemb - xtools ram: 64 flash: 512 supported: - adc - arduino_i2c - arduino_spi - gpio - counter - nvs - i2c - pwm - spi - watchdog vendor: u-blox ```
/content/code_sandbox/boards/u-blox/ubx_evkninab1/ubx_evkninab1_nrf52832.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
127
```cmake # u-blox EVK-NINA-B1 board configuration board_runner_args(nrfjprog "--nrf-family=NRF52") board_runner_args(jlink "--device=nRF52832_xxAA" "--speed=4000") board_runner_args(pyocd "--target=nrf52832" "--frequency=4000000") include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake) include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake) include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake) ```
/content/code_sandbox/boards/u-blox/ubx_evkninab1/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
140
```unknown /* * */ /dts-v1/; #include <nordic/nrf52832_qfaa.dtsi> #include "ubx_evkninab1_nrf52832-pinctrl.dtsi" #include <zephyr/dt-bindings/input/input-event-codes.h> / { model = "u-blox EVK-NINA-B1 NRF52832"; compatible = "u-blox,ubx_evkninab1_nrf52832"; chosen { zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,uart-mcumgr = &uart0; zephyr,bt-mon-uart = &uart0; zephyr,bt-c2h-uart = &uart0; zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; }; leds { compatible = "gpio-leds"; led0: led_0 { /* NINA-B1 GPIO_1 */ gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; label = "Red LED"; }; led1: led_1 { /* NINA-B1 GPIO_7 */ gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; label = "Green LED"; }; led2: led_2 { /*NINA-B1 GPIO_8 */ gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; label = "Blue LED"; }; }; pwmleds { compatible = "pwm-leds"; red_pwm_led: red_pwm_led { pwms = <&pwm0 1 PWM_MSEC(20) PWM_POLARITY_INVERTED>; }; green_pwm_led: green_pwm_led { pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; }; blue_pwm_led: blue_pwm_led { pwms = <&pwm0 2 PWM_MSEC(20) PWM_POLARITY_INVERTED>; }; }; buttons { compatible = "gpio-keys"; button0: button_0 { /* EVK-NINA-B1 SW1 button */ gpios = <&gpio0 16 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch SW1"; zephyr,code = <INPUT_KEY_0>; }; button1: button_1 { /* EVK-NINA-B1 SW2 button */ gpios = <&gpio0 30 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch SW2"; zephyr,code = <INPUT_KEY_1>; }; }; arduino_header: connector { compatible = "arduino-header-r3"; #gpio-cells = <2>; gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; gpio-map = <0 0 &gpio0 3 0>, /* A0 */ <1 0 &gpio0 2 0>, /* A1 */ <2 0 &gpio0 4 0>, /* A2 */ <3 0 &gpio0 30 0>, /* A3 */ <4 0 &gpio0 29 0>, /* A4 */ <5 0 &gpio0 28 0>, /* A5 */ <6 0 &gpio0 5 0>, /* D0 */ <7 0 &gpio0 6 0>, /* D1 */ <8 0 &gpio0 7 0>, /* D2 */ <9 0 &gpio0 31 0>, /* D3 */ <10 0 &gpio0 18 0>, /* D4 */ /* 11 SWDIO */ /* D5 */ <12 0 &gpio0 9 0>, /* D6 */ <13 0 &gpio0 10 0>, /* D7 */ /* 14 SWDCLK */ /* D8 */ <15 0 &gpio0 8 0>, /* D9 */ <16 0 &gpio0 11 0>, /* D10 */ <17 0 &gpio0 13 0>, /* D11 */ <18 0 &gpio0 12 0>, /* D12 */ <19 0 &gpio0 14 0>, /* D13 */ <20 0 &gpio0 2 0>, /* D14 */ <21 0 &gpio0 3 0>; /* D15 */ }; arduino_adc: analog-connector { compatible = "arduino,uno-adc"; #io-channel-cells = <1>; io-channel-map = <0 &adc 1>, /* A0 = P0.3 = AIN1 */ <1 &adc 2>, /* A1 = P0.2 = AIN2 */ <2 &adc 4>, /* A2 = P0.4 = AIN4 */ <3 &adc 5>, /* A3 = P0.30 = AIN5 */ <4 &adc 6>, /* A4 = P0.29 = AIN6 */ <5 &adc 7>; /* A5 = P0.28 = AIN7 */ }; /* These aliases are provided for compatibility with samples */ aliases { led0 = &led0; led1 = &led1; led2 = &led2; pwm-led0 = &red_pwm_led; pwm-led1 = &green_pwm_led; pwm-led2 = &blue_pwm_led; red-pwm-led = &red_pwm_led; green-pwm-led = &green_pwm_led; blue-pwm-led = &blue_pwm_led; sw0 = &button0; sw1 = &button1; watchdog0 = &wdt0; }; }; &reg { regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; }; &adc { status = "okay"; }; &uicr { gpio-as-nreset; }; &gpiote { status = "okay"; }; &gpio0 { status = "okay"; }; &uart0 { compatible = "nordic,nrf-uarte"; status = "okay"; current-speed = <115200>; pinctrl-0 = <&uart0_default>; pinctrl-1 = <&uart0_sleep>; pinctrl-names = "default", "sleep"; }; arduino_i2c: &i2c0 { compatible = "nordic,nrf-twi"; status = "okay"; pinctrl-0 = <&i2c0_default>; pinctrl-1 = <&i2c0_sleep>; pinctrl-names = "default", "sleep"; }; &i2c1 { compatible = "nordic,nrf-twi"; /* Cannot be used together with spi1. */ /* status = "okay"; */ pinctrl-0 = <&i2c1_default>; pinctrl-1 = <&i2c1_sleep>; pinctrl-names = "default", "sleep"; }; &pwm0 { status = "okay"; pinctrl-0 = <&pwm0_default>; pinctrl-1 = <&pwm0_sleep>; pinctrl-names = "default", "sleep"; }; arduino_spi: &spi0 { compatible = "nordic,nrf-spi"; /* Cannot be use simultaneously with i2c0 */ /* status = "okay"; */ cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ pinctrl-0 = <&spi0_default>; pinctrl-1 = <&spi0_sleep>; pinctrl-names = "default", "sleep"; }; &spi1 { compatible = "nordic,nrf-spi"; status = "okay"; pinctrl-0 = <&spi1_default>; pinctrl-1 = <&spi1_sleep>; pinctrl-names = "default", "sleep"; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x00000000 0xc000>; }; slot0_partition: partition@c000 { label = "image-0"; reg = <0x0000C000 0x32000>; }; slot1_partition: partition@3e000 { label = "image-1"; reg = <0x0003E000 0x32000>; }; scratch_partition: partition@70000 { label = "image-scratch"; reg = <0x00070000 0xa000>; }; storage_partition: partition@7a000 { label = "storage"; reg = <0x0007a000 0x00006000>; }; }; }; ```
/content/code_sandbox/boards/u-blox/ubx_evkninab1/ubx_evkninab1_nrf52832.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,074
```unknown # u-blox EVK-NINA-B1 board configuration # Enable MPU CONFIG_ARM_MPU=y # Enable hardware stack protection CONFIG_HW_STACK_PROTECTION=y # Enable RTT CONFIG_USE_SEGGER_RTT=y # enable GPIO CONFIG_GPIO=y # enable uart driver CONFIG_SERIAL=y # enable console CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y ```
/content/code_sandbox/boards/u-blox/ubx_evkninab1/ubx_evkninab1_nrf52832_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
80
```cmake # Suppress "unique_unit_address_if_enabled" to handle the following overlaps: # - power@40000000 & clock@40000000 & bprot@40000000 # - acl@4001e000 & flash-controller@4001e000 list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled") ```
/content/code_sandbox/boards/u-blox/ubx_evkninab1/pre_dt_board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
72
```restructuredtext .. _ubx_bmd300eval_nrf52832: u-blox EVK-BMD-30/35: BMD-300-EVAL, BMD-301-EVAL, and BMD-350-EVAL ################################################################## Overview ******** The BMD-300-EVAL, BMD-301-EVAL, and BMD-350-EVAL hardware provides support for the u-blox BMD-300, BMD-301, and BMD-350 Bluetooth 5 modules, based on the Nordic Semiconductor nRF52832 ARM Cortex-M4F CPU and the following devices: * :abbr:`ADC (Analog to Digital Converter)` * CLOCK * FLASH * :abbr:`GPIO (General Purpose Input Output)` * :abbr:`I2C (Inter-Integrated Circuit)` * :abbr:`MPU (Memory Protection Unit)` * :abbr:`NVIC (Nested Vectored Interrupt Controller)` * :abbr:`PWM (Pulse Width Modulation)` * RADIO (Bluetooth Low Energy) * :abbr:`RTC (nRF RTC System Clock)` * Segger RTT (RTT Console) * :abbr:`SPI (Serial Peripheral Interface)` * :abbr:`UART (Universal asynchronous receiver-transmitter)` * :abbr:`WDT (Watchdog Timer)` .. figure:: img/BMD-30-33-35-36-EVAL.jpg :align: center :alt: BMD-300-EVAL BMD-300-EVAL (Credit: u-blox AG) .. note:: The BMD-300-EVAL, BMD-301-EVAL, and BMD-350-EVAL share the same pin headers and assignments. The boards are different only in the module used on the board. The BMD-300 and BMD-301 modules share the same footprint and differ only in the antenna. The BMD-350 module utilizes the nRF52832 CIAA WLCSP package. More information about the BMD-300-EVAL, BMD-301-EVAL, and BMD-350-EVAL and the respective modules can be found at the `u-blox website`_. All of the Nordic Semiconductor examples for the nRF52 DK (nrf52dk_nrf52832) may be used without modification. Hardware ******** The BMD-300/301/350 module on the board contains an internal high-frequency oscillator at 32MHz. There is also a low frequency (slow) oscillator of 32.768kHz. The module itself does not include the slow crystal; however, the EVAL boards do. .. note:: When targeting a custom design without a slow crystal, be sure to modify code to utilize the internal RC oscillator for the slow clock. Supported Features ================== The BMD-300/301/350-EVAL configuration supports the following hardware features: +-----------+------------+----------------------+ | Interface | Controller | Driver/Component | +===========+============+======================+ | ADC | on-chip | adc | +-----------+------------+----------------------+ | CLOCK | on-chip | clock_control | +-----------+------------+----------------------+ | FLASH | on-chip | flash | +-----------+------------+----------------------+ | GPIO | on-chip | gpio | +-----------+------------+----------------------+ | I2C(M) | on-chip | i2c | +-----------+------------+----------------------+ | MPU | on-chip | arch/arm | +-----------+------------+----------------------+ | NVIC | on-chip | arch/arm | +-----------+------------+----------------------+ | PWM | on-chip | pwm | +-----------+------------+----------------------+ | RADIO | on-chip | Bluetooth | +-----------+------------+----------------------+ | RTC | on-chip | system clock | +-----------+------------+----------------------+ | RTT | Segger | console | +-----------+------------+----------------------+ | SPI(M/S) | on-chip | spi | +-----------+------------+----------------------+ | UART | on-chip | serial | +-----------+------------+----------------------+ | WDT | on-chip | watchdog | +-----------+------------+----------------------+ Other hardware features have not been enabled yet for this board. See the `u-blox website`_ for a complete list of BMD-300/301/350-EVAL hardware features. Connections and IOs =================== LED --- * LED1 (red) = P0.17 * LED2 (red) = P0.18 * LED3 (green) = P0.19 * LED4 (green) = P0.20 * D5 (red) = OB LED 1 * D6 (green) = OB LED 2 Push buttons ------------ * BUTTON1 = SW1 = P0.13 * BUTTON2 = SW2 = P0.14 * BUTTON3 = SW3 = P0.15 * BUTTON4 = SW4 = P0.16 * BOOT = SW5 = boot/reset External Connectors ------------------- .. figure:: img/bmd-300-eval_pin_out.jpg :align: center :alt: BMD-300-EVAL pin-out BMD-300-EVAL pin-out (Credit: u-blox AG) .. note:: The BMD-300-EVAL, BMD-301-EVAL, and BMD-350-EVAL share the same pin headers and assignments. The BMD-300-EVAL is shown here. .. note:: The pin numbers noted below are referenced to the pin 1 markings on the BMD-300/301/350-EVAL for each header J-Link Prog Connector (J2) +-------+--------------+ | PIN # | Signal Name | +=======+==============+ | 1 | VDD | +-------+--------------+ | 2 | IMCU_TMSS | +-------+--------------+ | 3 | GND | +-------+--------------+ | 4 | IMCU_TCKS | +-------+--------------+ | 5 | V5V | +-------+--------------+ | 6 | IMCU_TDOS | +-------+--------------+ | 7 | Cut off | +-------+--------------+ | 8 | IMCU_TDIS | +-------+--------------+ | 9 | Cut off | +-------+--------------+ | 10 | IMCU_RESET | +-------+--------------+ Debug OUT (J3) +-------+----------------+ | PIN # | Signal Name | +=======+================+ | 1 | EXT_VTG | +-------+----------------+ | 2 | EXT_SWDIO | +-------+----------------+ | 3 | GND | +-------+----------------+ | 4 | EXT_SWDCLK | +-------+----------------+ | 5 | GND | +-------+----------------+ | 6 | EXT_SWO | +-------+----------------+ | 7 | N/C | +-------+----------------+ | 8 | N/C | +-------+----------------+ | 9 | EXT_GND_DETECT | +-------+----------------+ | 10 | EXT_RESET | +-------+----------------+ Auxiliary (J9) +-------+----------------+ | PIN # | Signal Name | +=======+================+ | 1 | P0.10 | +-------+----------------+ | 2 | P0.09 | +-------+----------------+ | 3 | P0.08 | +-------+----------------+ | 4 | P0.07 | +-------+----------------+ | 5 | P0.06 | +-------+----------------+ | 6 | P0.05 / AIN3 | +-------+----------------+ | 7 | P0.21 / RESET | +-------+----------------+ | 8 | P0.01 / XL2 | +-------+----------------+ | 9 | P0.00 / XL1 | +-------+----------------+ | 10 | GND | +-------+----------------+ Arduino Headers --------------- Power (J5) +-------+--------------+---------------------------+ | PIN # | Signal Name | BMD-300/301/350 Functions | +=======+==============+===========================+ | 1 | VSHLD | N/A | +-------+--------------+---------------------------+ | 2 | VSHLD | N/A | +-------+--------------+---------------------------+ | 3 | RESET | P0.21 / RESET | +-------+--------------+---------------------------+ | 4 | VSHLD | N/A | +-------+--------------+---------------------------+ | 5 | V5V | N/A | +-------+--------------+---------------------------+ | 6 | GND | N/A | +-------+--------------+---------------------------+ | 7 | GND | N/A | +-------+--------------+---------------------------+ | 8 | N/C | N/A | +-------+--------------+---------------------------+ Analog in (J8) +-------+--------------+---------------------------+ | PIN # | Signal Name | BMD-300/301/350 Functions | +=======+==============+===========================+ | 1 | A0 | P0.03 / AIN1 | +-------+--------------+---------------------------+ | 2 | A1 | P0.04 / AIN2 | +-------+--------------+---------------------------+ | 3 | A2 | P0.28 / AIN4 | +-------+--------------+---------------------------+ | 4 | A3 | P0.29 / AIN5 | +-------+--------------+---------------------------+ | 5 | A4 | P0.30 / AIN6 | +-------+--------------+---------------------------+ | 6 | A5 | P0.31 / AIN7 | +-------+--------------+---------------------------+ Digital I/O (J7) +-------+--------------+---------------------------+ | PIN # | Signal Name | BMD-300/301/350 Functions | +=======+==============+===========================+ | 1 | D7 | P0.18/TRACEDATA[0]/SWO | +-------+--------------+---------------------------+ | 2 | D6 | P0.17 | +-------+--------------+---------------------------+ | 3 | D5 | P0.16/TRACEDATA[1] | +-------+--------------+---------------------------+ | 4 | D4 | P0.15/TRACEDATA[2] | +-------+--------------+---------------------------+ | 5 | D3 | P0.14/TRACEDATA[3] | +-------+--------------+---------------------------+ | 6 | D2 | P0.13 | +-------+--------------+---------------------------+ | 7 | D1 (TX) | P0.12 | +-------+--------------+---------------------------+ | 8 | D0 (RX) | P0.11 | +-------+--------------+---------------------------+ Digital I/O (J6) +-------+--------------+---------------------------+ | PIN # | Signal Name | BMD-300/301/350 Functions | +=======+==============+===========================+ | 1 | SCL | P0.27 | +-------+--------------+---------------------------+ | 2 | SDA | P0.26 | +-------+--------------+---------------------------+ | 3 | AREF | P0.02/AIN0 | +-------+--------------+---------------------------+ | 4 | GND | N/A | +-------+--------------+---------------------------+ | 5 | D13 (SCK) | P0.25 | +-------+--------------+---------------------------+ | 6 | D12 (MISO) | P0.24 | +-------+--------------+---------------------------+ | 7 | D11 (MOSI) | P0.23 | +-------+--------------+---------------------------+ | 8 | D10 (SS) | P0.22 | +-------+--------------+---------------------------+ | 9 | D9 | P0.20/TRACECLK | +-------+--------------+---------------------------+ | 10 | D8 | P0.19 | +-------+--------------+---------------------------+ J11 +-------+--------------+---------------------------+ | PIN # | Signal Name | BMD-300/301/350 Functions | +=======+==============+===========================+ | 1 | D12 (MISO) | P0.24 | +-------+--------------+---------------------------+ | 2 | V5V | N/A | +-------+--------------+---------------------------+ | 3 | D13 (SCK) | P0.25 | +-------+--------------+---------------------------+ | 4 | D11 (MOSI) | P0.23 | +-------+--------------+---------------------------+ | 5 | RESET | N/A | +-------+--------------+---------------------------+ | 6 | N/A | N/A | +-------+--------------+---------------------------+ Programming and Debugging ************************* Flashing ======== Follow the instructions in the :ref:`nordic_segger` page to install and configure all the necessary software. Further information can be found in :ref:`nordic_segger_flashing`. Then build and flash applications as usual (see :ref:`build_an_application` and :ref:`application_run` for more details). Here is an example for the :ref:`hello_world` application. First, run your favorite terminal program to listen for output. .. code-block:: console $ minicom -D <tty_device> -b 115200 Replace :code:`<tty_device>` with the port where the BMD-300/301/350-EVAL can be found. For example, under Linux, :code:`/dev/ttyACM0`. Then build and flash the application in the usual way. .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: ubx_bmd300eval/nrf52832 :goals: build flash Debugging ========= Refer to the :ref:`nordic_segger` page to learn about debugging u-blox boards with a Segger J-LINK-OB IC. Testing the LEDs and buttons in the BMD-330-EVAL ************************************************ There are 2 samples that allow you to test that the buttons (switches) and LEDs on the board are working properly with Zephyr: .. code-block:: console samples/basic/blinky samples/basic/button You can build and flash the examples to make sure Zephyr is running correctly on your board. The button and LED definitions can be found in :zephyr_file:`boards/u-blox/ubx_bmd300eval/ubx_bmd300eval_nrf52832.dts`. References ********** .. target-notes:: .. _u-blox website: path_to_url ```
/content/code_sandbox/boards/u-blox/ubx_bmd300eval/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,364
```unknown /* */ &pinctrl { uart0_default: uart0_default { group1 { psels = <NRF_PSEL(UART_TX, 0, 6)>, <NRF_PSEL(UART_RX, 0, 5)>, <NRF_PSEL(UART_RTS, 0, 31)>, <NRF_PSEL(UART_CTS, 0, 7)>; }; }; uart0_sleep: uart0_sleep { group1 { psels = <NRF_PSEL(UART_TX, 0, 6)>, <NRF_PSEL(UART_RX, 0, 5)>, <NRF_PSEL(UART_RTS, 0, 31)>, <NRF_PSEL(UART_CTS, 0, 7)>; low-power-enable; }; }; i2c0_default: i2c0_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 2)>, <NRF_PSEL(TWIM_SCL, 0, 3)>; }; }; i2c0_sleep: i2c0_sleep { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 2)>, <NRF_PSEL(TWIM_SCL, 0, 3)>; low-power-enable; }; }; i2c1_default: i2c1_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 30)>, <NRF_PSEL(TWIM_SCL, 0, 29)>; }; }; i2c1_sleep: i2c1_sleep { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 30)>, <NRF_PSEL(TWIM_SCL, 0, 29)>; low-power-enable; }; }; pwm0_default: pwm0_default { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 16)>, <NRF_PSEL(PWM_OUT1, 0, 8)>, <NRF_PSEL(PWM_OUT2, 0, 18)>; nordic,invert; }; }; pwm0_sleep: pwm0_sleep { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 16)>, <NRF_PSEL(PWM_OUT1, 0, 8)>, <NRF_PSEL(PWM_OUT2, 0, 18)>; low-power-enable; }; }; spi0_default: spi0_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 14)>, <NRF_PSEL(SPIM_MOSI, 0, 13)>, <NRF_PSEL(SPIM_MISO, 0, 12)>; }; }; spi0_sleep: spi0_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 14)>, <NRF_PSEL(SPIM_MOSI, 0, 13)>, <NRF_PSEL(SPIM_MISO, 0, 12)>; low-power-enable; }; }; spi1_default: spi1_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 28)>, <NRF_PSEL(SPIM_MOSI, 0, 29)>, <NRF_PSEL(SPIM_MISO, 0, 30)>; }; }; spi1_sleep: spi1_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 28)>, <NRF_PSEL(SPIM_MOSI, 0, 29)>, <NRF_PSEL(SPIM_MISO, 0, 30)>; low-power-enable; }; }; }; ```
/content/code_sandbox/boards/u-blox/ubx_evkninab1/ubx_evkninab1_nrf52832-pinctrl.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
931
```yaml board: name: ubx_evkninab1 vendor: u-blox socs: - name: nrf52832 ```
/content/code_sandbox/boards/u-blox/ubx_evkninab1/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
34
```unknown # u-blox EVK-NINA-B1 board configuration config BOARD_UBX_EVKNINAB1 select SOC_NRF52832_QFAA ```
/content/code_sandbox/boards/u-blox/ubx_evkninab1/Kconfig.ubx_evkninab1
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
35
```unknown # u-blox EVK-NINA-B1 board configuration if BOARD_UBX_EVKNINAB1 config BT_CTLR default BT endif # BOARD_UBX_EVKNINAB1 ```
/content/code_sandbox/boards/u-blox/ubx_evkninab1/Kconfig.defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
45
```unknown /* * BMD-340-EVAL board configuration * */ /dts-v1/; #include <nordic/nrf52840_qiaa.dtsi> #include "ubx_bmd340eval_nrf52840-pinctrl.dtsi" #include <zephyr/dt-bindings/input/input-event-codes.h> / { model = "u-blox BMD-340-EVAL EVK nRF52840"; compatible = "u-blox,ubx-bmd340eval-nrf52840"; chosen { zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,uart-mcumgr = &uart0; zephyr,bt-mon-uart = &uart0; zephyr,bt-c2h-uart = &uart0; zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; zephyr,ieee802154 = &ieee802154; }; leds { compatible = "gpio-leds"; led0: led_0 { gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; label = "Red LED 0"; }; led1: led_1 { gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; label = "Red LED 1"; }; led2: led_2 { gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; label = "Green LED 2"; }; led3: led_3 { gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; label = "Green LED 3"; }; }; pwmleds { compatible = "pwm-leds"; pwm_led0: pwm_led_0 { pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; }; }; buttons { compatible = "gpio-keys"; button0: button_0 { gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; zephyr,code = <INPUT_KEY_0>; }; button1: button_1 { gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; zephyr,code = <INPUT_KEY_1>; }; button2: button_2 { gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; zephyr,code = <INPUT_KEY_2>; }; button3: button_3 { gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; zephyr,code = <INPUT_KEY_3>; }; }; arduino_header: connector { compatible = "arduino-header-r3"; #gpio-cells = <2>; gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; gpio-map = <0 0 &gpio0 3 0>, /* A0 */ <1 0 &gpio0 4 0>, /* A1 */ <2 0 &gpio0 28 0>, /* A2 */ <3 0 &gpio0 29 0>, /* A3 */ <4 0 &gpio0 30 0>, /* A4 */ <5 0 &gpio0 31 0>, /* A5 */ <6 0 &gpio1 1 0>, /* D0 */ <7 0 &gpio1 2 0>, /* D1 */ <8 0 &gpio1 3 0>, /* D2 */ <9 0 &gpio1 4 0>, /* D3 */ <10 0 &gpio1 5 0>, /* D4 */ <11 0 &gpio1 6 0>, /* D5 */ <12 0 &gpio1 7 0>, /* D6 */ <13 0 &gpio1 8 0>, /* D7 */ <14 0 &gpio1 10 0>, /* D8 */ <15 0 &gpio1 11 0>, /* D9 */ <16 0 &gpio1 12 0>, /* D10 */ <17 0 &gpio1 13 0>, /* D11 */ <18 0 &gpio1 14 0>, /* D12 */ <19 0 &gpio1 15 0>, /* D13 */ <20 0 &gpio0 26 0>, /* D14 */ <21 0 &gpio0 27 0>; /* D15 */ }; arduino_adc: analog-connector { compatible = "arduino,uno-adc"; #io-channel-cells = <1>; io-channel-map = <0 &adc 1>, /* A0 = P0.3 = AIN1 */ <1 &adc 2>, /* A1 = P0.4 = AIN2 */ <2 &adc 4>, /* A2 = P0.28 = AIN4 */ <3 &adc 5>, /* A3 = P0.29 = AIN5 */ <4 &adc 6>, /* A4 = P0.30 = AIN6 */ <5 &adc 7>; /* A5 = P0.31 = AIN7 */ }; /* These aliases are provided for compatibility with samples */ aliases { led0 = &led0; led1 = &led1; led2 = &led2; led3 = &led3; pwm-led0 = &pwm_led0; sw0 = &button0; sw1 = &button1; sw2 = &button2; sw3 = &button3; watchdog0 = &wdt0; }; }; &reg1 { regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; }; &adc { status = "okay"; }; &uicr { gpio-as-nreset; }; &gpiote { status = "okay"; }; &gpio0 { status = "okay"; }; &gpio1 { status = "okay"; }; &uart0 { compatible = "nordic,nrf-uarte"; status = "okay"; current-speed = <115200>; pinctrl-0 = <&uart0_default>; pinctrl-1 = <&uart0_sleep>; pinctrl-names = "default", "sleep"; }; arduino_serial: &uart1 { status = "okay"; current-speed = <115200>; pinctrl-0 = <&uart1_default>; pinctrl-1 = <&uart1_sleep>; pinctrl-names = "default", "sleep"; }; arduino_i2c: &i2c0 { compatible = "nordic,nrf-twi"; status = "okay"; pinctrl-0 = <&i2c0_default>; pinctrl-1 = <&i2c0_sleep>; pinctrl-names = "default", "sleep"; }; &i2c1 { compatible = "nordic,nrf-twi"; /* Cannot be used together with spi1. */ /* status = "okay"; */ pinctrl-0 = <&i2c1_default>; pinctrl-1 = <&i2c1_sleep>; pinctrl-names = "default", "sleep"; }; &pwm0 { status = "okay"; pinctrl-0 = <&pwm0_default>; pinctrl-1 = <&pwm0_sleep>; pinctrl-names = "default", "sleep"; }; &spi0 { compatible = "nordic,nrf-spi"; /* Cannot be used together with i2c0. */ /* status = "okay"; */ pinctrl-0 = <&spi0_default>; pinctrl-1 = <&spi0_sleep>; pinctrl-names = "default", "sleep"; }; &spi1 { compatible = "nordic,nrf-spi"; status = "okay"; pinctrl-0 = <&spi1_default>; pinctrl-1 = <&spi1_sleep>; pinctrl-names = "default", "sleep"; }; &spi2 { compatible = "nordic,nrf-spi"; status = "disabled"; pinctrl-0 = <&spi2_default>; pinctrl-1 = <&spi2_sleep>; pinctrl-names = "default", "sleep"; }; &qspi { status = "okay"; pinctrl-0 = <&qspi_default>; pinctrl-1 = <&qspi_sleep>; pinctrl-names = "default", "sleep"; mx25r64: mx25r6435f@0 { compatible = "nordic,qspi-nor"; reg = <0>; /* MX25R64 supports only pp and pp4io */ writeoc = "pp4io"; /* MX25R64 supports all readoc options */ readoc = "read4io"; sck-frequency = <8000000>; jedec-id = [c2 28 17]; sfdp-bfp = [ e5 20 f1 ff ff ff ff 03 44 eb 08 6b 08 3b 04 bb ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 0f 52 10 d8 00 ff 23 72 f5 00 82 ed 04 cc 44 83 68 44 30 b0 30 b0 f7 c4 d5 5c 00 be 29 ff f0 d0 ff ff ]; size = <67108864>; has-dpd; t-enter-dpd = <10000>; t-exit-dpd = <35000>; }; }; arduino_spi: &spi3 { status = "okay"; cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ pinctrl-0 = <&spi3_default>; pinctrl-1 = <&spi3_sleep>; pinctrl-names = "default", "sleep"; }; &ieee802154 { status = "okay"; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x00000000 0x0000C000>; }; slot0_partition: partition@c000 { label = "image-0"; reg = <0x0000C000 0x00067000>; }; slot1_partition: partition@73000 { label = "image-1"; reg = <0x00073000 0x00067000>; }; scratch_partition: partition@da000 { label = "image-scratch"; reg = <0x000da000 0x0001e000>; }; /* * The flash starting at 0x000f8000 and ending at * 0x000fffff is reserved for use by the application. */ /* * Storage partition will be used by FCB/LittleFS/NVS * if enabled. */ storage_partition: partition@f8000 { label = "storage"; reg = <0x000f8000 0x00008000>; }; }; }; zephyr_udc0: &usbd { compatible = "nordic,nrf-usbd"; status = "okay"; }; ```
/content/code_sandbox/boards/u-blox/ubx_bmd340eval/ubx_bmd340eval_nrf52840.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,699
```cmake # BMD-340-EVAL board configuration board_runner_args(nrfjprog "--nrf-family=NRF52") board_runner_args(jlink "--device=nRF52840_xxAA" "--speed=4000") board_runner_args(pyocd "--target=nrf52840" "--frequency=4000000") include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake) include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake) include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake) ```
/content/code_sandbox/boards/u-blox/ubx_bmd340eval/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
137
```yaml identifier: ubx_bmd340eval/nrf52840 name: UBX_BMD340EVAL_NRF52840 type: mcu arch: arm ram: 256 flash: 1024 toolchain: - zephyr - gnuarmemb - xtools supported: - adc - arduino_gpio - arduino_i2c - arduino_spi - ble - counter - gpio - i2c - pwm - spi - qspi - usb_device - watchdog - netif:openthread vendor: u-blox ```
/content/code_sandbox/boards/u-blox/ubx_bmd340eval/ubx_bmd340eval_nrf52840.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
150
```unknown # BMD-340-EVAL board configuration # Enable MPU CONFIG_ARM_MPU=y # Enable hardware stack protection CONFIG_HW_STACK_PROTECTION=y # Enable RTT CONFIG_USE_SEGGER_RTT=y # enable GPIO CONFIG_GPIO=y # enable uart driver CONFIG_SERIAL=y # enable console CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y ```
/content/code_sandbox/boards/u-blox/ubx_bmd340eval/ubx_bmd340eval_nrf52840_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
77
```restructuredtext .. _ubx_evkninab1_nrf52832: u-blox EVK NINA-B11x #################### Overview ******** The u-blox NINA-B1 Evaluation Kit hardware is a Bluetooth low energy module based on the Nordic Semiconductor nRF52832 ARM Cortex-M4F CPU and has support for the following features: * :abbr:`ADC (Analog to Digital Converter)` * CLOCK * FLASH * :abbr:`GPIO (General Purpose Input Output)` * :abbr:`I2C (Inter-Integrated Circuit)` * :abbr:`MPU (Memory Protection Unit)` * :abbr:`NVIC (Nested Vectored Interrupt Controller)` * :abbr:`PWM (Pulse Width Modulation)` * RADIO (Bluetooth Low Energy) * :abbr:`RTC (nRF RTC System Clock)` * Segger RTT (RTT Console) * :abbr:`SPI (Serial Peripheral Interface)` * :abbr:`UART (Universal asynchronous receiver-transmitter)` * :abbr:`WDT (Watchdog Timer)` .. figure:: img/EVK-NINA-B1.jpg EVK NINA-B1 More information about the NINA-B1 module and the EVK NINA-B1 can be found at `NINA-B1 product page`_ and `EVK-NINA-B1 product page`_. Supported Features ================== The ubx_evkninab1/nrf52832 board configuration supports the following hardware features: +-----------+------------+----------------------+ | Interface | Controller | Driver/Component | +===========+============+======================+ | ADC | on-chip | adc | +-----------+------------+----------------------+ | CLOCK | on-chip | clock_control | +-----------+------------+----------------------+ | FLASH | on-chip | flash | +-----------+------------+----------------------+ | GPIO | on-chip | gpio | +-----------+------------+----------------------+ | I2C(M) | on-chip | i2c | +-----------+------------+----------------------+ | MPU | on-chip | arch/arm | +-----------+------------+----------------------+ | NVIC | on-chip | arch/arm | +-----------+------------+----------------------+ | PWM | on-chip | pwm | +-----------+------------+----------------------+ | RADIO | on-chip | Bluetooth Low Energy | +-----------+------------+----------------------+ | RTC | on-chip | system clock | +-----------+------------+----------------------+ | RTT | Segger | console | +-----------+------------+----------------------+ | SPI(M/S) | on-chip | spi | +-----------+------------+----------------------+ | UART | on-chip | serial | +-----------+------------+----------------------+ | WDT | on-chip | watchdog | +-----------+------------+----------------------+ .. note:: Most Arduino interfaces are supported. Arduino pins D5 and D8 are not available, so arduino_gpio is disabled. On the EVK-NINA-B1, these pins are assigned to SWDIO and SWDCLK, respectively. Other hardware features have not been enabled yet for this board. See `EVK-NINA-B1 product page`_ and `NINA-B1 Data Sheet`_ for a complete list of EVK NINA-B1 hardware features. Connections and IOs =================== LED --- * LED0 (red) = P0.08 * LED1 (green) = P0.16 * LED2 (blue) = P0.18 Push buttons ------------ * BUTTON1 = SW1 = P0.16 * BUTTON2 = SW2 = P0.30 General information on module pin numbering ------------------------------------------- The numbering of the pins on the module and EVK do not follow the GPIO numbering on the nRF52832 SoC. Please see the `NINA-B1 Data Sheet`_ for information on how to map NINA-B1 pins to the pin numbering on the nRF52832 SoC. The reason for this is the u-blox module family concept where different modules share the same pinout and can be interchanged, see `NINA module family Nested design`_. Programming and Debugging ************************* Applications for the ``ubx_evkninab1/nrf52832`` board configuration can be built and flashed in the usual way (see :ref:`build_an_application` and :ref:`application_run` for more details); however, the standard debugging targets are not currently available. Flashing ======== Build and flash applications as usual (see :ref:`build_an_application` and :ref:`application_run` for more details). Here is an example for the :ref:`hello_world` application. Open a terminal program to the USB Serial Port installed when connecting the board and listen for output. Settings: 115200, 8N1, no flow control. Then build and flash the application in the usual way. .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: ubx_evkninab1/nrf52832 :goals: build flash Debugging ========= Refer to the :ref:`nordic_segger` page to learn about debugging boards containing a Nordic Semiconductor chip with a Segger IC. Testing the LEDs and buttons in the EVK NINA-B11x ************************************************* There are 2 samples that allow you to test that the buttons (switches) and LEDs on the board are working properly with Zephyr: .. code-block:: console samples/basic/blinky samples/basic/button You can build and flash the examples to make sure Zephyr is running correctly on your board. The button and LED definitions can be found in :zephyr_file:`boards/u-blox/ubx_evkninab1/ubx_evkninab1_nrf52832.dts`. Note that the buttons on the EVK-NINA-B1 are marked SW1 and SW2, which are named sw0 and sw1 in the dts file. Also note that the SW1 button and the green LED are connected on HW level. References ********** .. target-notes:: .. _NINA-B1 product page: path_to_url .. _EVK-NINA-B1 product page: path_to_url .. _Nordic Semiconductor Infocenter: path_to_url .. _J-Link Software and documentation pack: path_to_url .. _NINA-B1 Data Sheet: path_to_url .. _NINA module family Nested design: path_to_url ```
/content/code_sandbox/boards/u-blox/ubx_evkninab1/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,433
```unknown # BMD-340-EVAL board configuration config BOARD_UBX_BMD340EVAL select SOC_NRF52840_QIAA ```
/content/code_sandbox/boards/u-blox/ubx_bmd340eval/Kconfig.ubx_bmd340eval
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
32
```cmake # Suppress "unique_unit_address_if_enabled" to handle the following overlaps: # - power@40000000 & clock@40000000 & bprot@40000000 # - acl@4001e000 & flash-controller@4001e000 list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled") ```
/content/code_sandbox/boards/u-blox/ubx_bmd340eval/pre_dt_board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
72
```yaml board: name: ubx_bmd340eval vendor: u-blox socs: - name: nrf52840 ```
/content/code_sandbox/boards/u-blox/ubx_bmd340eval/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
33
```unknown # BMD-340-EVAL board configuration if BOARD_UBX_BMD340EVAL config BT_CTLR default BT endif # BOARD_UBX_BMD340EVAL ```
/content/code_sandbox/boards/u-blox/ubx_bmd340eval/Kconfig.defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
42
```unknown /* */ &pinctrl { uart0_default: uart0_default { group1 { psels = <NRF_PSEL(UART_TX, 0, 6)>, <NRF_PSEL(UART_RX, 0, 8)>, <NRF_PSEL(UART_RTS, 0, 5)>, <NRF_PSEL(UART_CTS, 0, 7)>; }; }; uart0_sleep: uart0_sleep { group1 { psels = <NRF_PSEL(UART_TX, 0, 6)>, <NRF_PSEL(UART_RX, 0, 8)>, <NRF_PSEL(UART_RTS, 0, 5)>, <NRF_PSEL(UART_CTS, 0, 7)>; low-power-enable; }; }; uart1_default: uart1_default { group1 { psels = <NRF_PSEL(UART_RX, 1, 1)>, <NRF_PSEL(UART_TX, 1, 2)>; }; }; uart1_sleep: uart1_sleep { group1 { psels = <NRF_PSEL(UART_RX, 1, 1)>, <NRF_PSEL(UART_TX, 1, 2)>; low-power-enable; }; }; i2c0_default: i2c0_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 26)>, <NRF_PSEL(TWIM_SCL, 0, 27)>; }; }; i2c0_sleep: i2c0_sleep { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 26)>, <NRF_PSEL(TWIM_SCL, 0, 27)>; low-power-enable; }; }; i2c1_default: i2c1_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 30)>, <NRF_PSEL(TWIM_SCL, 0, 31)>; }; }; i2c1_sleep: i2c1_sleep { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 30)>, <NRF_PSEL(TWIM_SCL, 0, 31)>; low-power-enable; }; }; pwm0_default: pwm0_default { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 13)>; nordic,invert; }; }; pwm0_sleep: pwm0_sleep { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 13)>; low-power-enable; }; }; spi0_default: spi0_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 27)>, <NRF_PSEL(SPIM_MOSI, 0, 26)>, <NRF_PSEL(SPIM_MISO, 0, 29)>; }; }; spi0_sleep: spi0_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 27)>, <NRF_PSEL(SPIM_MOSI, 0, 26)>, <NRF_PSEL(SPIM_MISO, 0, 29)>; low-power-enable; }; }; spi1_default: spi1_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 31)>, <NRF_PSEL(SPIM_MOSI, 0, 30)>, <NRF_PSEL(SPIM_MISO, 1, 8)>; }; }; spi1_sleep: spi1_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 31)>, <NRF_PSEL(SPIM_MOSI, 0, 30)>, <NRF_PSEL(SPIM_MISO, 1, 8)>; low-power-enable; }; }; spi2_default: spi2_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 19)>, <NRF_PSEL(SPIM_MOSI, 0, 20)>, <NRF_PSEL(SPIM_MISO, 0, 21)>; }; }; spi2_sleep: spi2_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 19)>, <NRF_PSEL(SPIM_MOSI, 0, 20)>, <NRF_PSEL(SPIM_MISO, 0, 21)>; low-power-enable; }; }; qspi_default: qspi_default { group1 { psels = <NRF_PSEL(QSPI_SCK, 0, 19)>, <NRF_PSEL(QSPI_IO0, 0, 20)>, <NRF_PSEL(QSPI_IO1, 0, 21)>, <NRF_PSEL(QSPI_IO2, 0, 22)>, <NRF_PSEL(QSPI_IO3, 0, 23)>, <NRF_PSEL(QSPI_CSN, 0, 17)>; }; }; qspi_sleep: qspi_sleep { group1 { psels = <NRF_PSEL(QSPI_SCK, 0, 19)>, <NRF_PSEL(QSPI_IO0, 0, 20)>, <NRF_PSEL(QSPI_IO1, 0, 21)>, <NRF_PSEL(QSPI_IO2, 0, 22)>, <NRF_PSEL(QSPI_IO3, 0, 23)>, <NRF_PSEL(QSPI_CSN, 0, 17)>; low-power-enable; }; }; spi3_default: spi3_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 1, 15)>, <NRF_PSEL(SPIM_MISO, 1, 14)>, <NRF_PSEL(SPIM_MOSI, 1, 13)>; }; }; spi3_sleep: spi3_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 1, 15)>, <NRF_PSEL(SPIM_MISO, 1, 14)>, <NRF_PSEL(SPIM_MOSI, 1, 13)>; low-power-enable; }; }; }; ```
/content/code_sandbox/boards/u-blox/ubx_bmd340eval/ubx_bmd340eval_nrf52840-pinctrl.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,553
```unknown /* */ &pinctrl { uart0_default: uart0_default { group1 { psels = <NRF_PSEL(UART_TX, 1, 13)>, <NRF_PSEL(UART_RX, 0, 29)>, <NRF_PSEL(UART_RTS, 0, 31)>, <NRF_PSEL(UART_CTS, 1, 12)>; }; }; uart0_sleep: uart0_sleep { group1 { psels = <NRF_PSEL(UART_TX, 1, 13)>, <NRF_PSEL(UART_RX, 0, 29)>, <NRF_PSEL(UART_RTS, 0, 31)>, <NRF_PSEL(UART_CTS, 1, 12)>; low-power-enable; }; }; i2c0_default: i2c0_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 16)>, <NRF_PSEL(TWIM_SCL, 0, 24)>; }; }; i2c0_sleep: i2c0_sleep { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 16)>, <NRF_PSEL(TWIM_SCL, 0, 24)>; low-power-enable; }; }; spi0_default: spi0_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 7)>, <NRF_PSEL(SPIM_MOSI, 1, 0)>, <NRF_PSEL(SPIM_MISO, 0, 15)>; }; }; spi0_sleep: spi0_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 7)>, <NRF_PSEL(SPIM_MOSI, 1, 0)>, <NRF_PSEL(SPIM_MISO, 0, 15)>; low-power-enable; }; }; spi1_default: spi1_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 3)>, <NRF_PSEL(SPIM_MOSI, 0, 28)>, <NRF_PSEL(SPIM_MISO, 0, 9)>; }; }; spi1_sleep: spi1_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 3)>, <NRF_PSEL(SPIM_MOSI, 0, 28)>, <NRF_PSEL(SPIM_MISO, 0, 9)>; low-power-enable; }; }; pwm0_default: pwm0_default { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 13)>, <NRF_PSEL(PWM_OUT1, 1, 0)>, <NRF_PSEL(PWM_OUT2, 0, 25)>; nordic,invert; }; }; pwm0_sleep: pwm0_sleep { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 13)>, <NRF_PSEL(PWM_OUT1, 1, 0)>, <NRF_PSEL(PWM_OUT2, 0, 25)>; low-power-enable; }; }; }; ```
/content/code_sandbox/boards/u-blox/ubx_evkninab3/ubx_evkninab3_nrf52840-pinctrl.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
803
```cmake # EVK-NINA-B3 board configuration board_runner_args(nrfjprog "--nrf-family=NRF52") board_runner_args(jlink "--device=nRF52840_xxAA" "--speed=4000") board_runner_args(pyocd "--target=nrf52840" "--frequency=4000000") include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake) include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake) include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake) ```
/content/code_sandbox/boards/u-blox/ubx_evkninab3/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
137
```yaml identifier: ubx_evkninab3/nrf52840 name: UBX-EVKNINAB3-NRF52840 type: mcu arch: arm ram: 256 flash: 1024 toolchain: - zephyr - gnuarmemb - xtools supported: - adc - arduino_gpio - arduino_i2c - ble - counter - gpio - i2c - pwm - spi - usb_device - watchdog - netif:openthread vendor: u-blox ```
/content/code_sandbox/boards/u-blox/ubx_evkninab3/ubx_evkninab3_nrf52840.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
141
```unknown /* * */ /dts-v1/; #include <nordic/nrf52840_qiaa.dtsi> #include "ubx_evkninab3_nrf52840-pinctrl.dtsi" #include <zephyr/dt-bindings/input/input-event-codes.h> / { model = "u-blox EVK NINA-B3 nRF52840"; compatible = "nordic,ubx_evkninab3_nrf52840"; chosen { zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,uart-mcumgr = &uart0; zephyr,bt-mon-uart = &uart0; zephyr,bt-c2h-uart = &uart0; zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; zephyr,ieee802154 = &ieee802154; }; leds { compatible = "gpio-leds"; led0: led_0 { gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; label = "Red LED 0"; }; led1: led_1 { gpios = <&gpio0 25 GPIO_ACTIVE_LOW>; label = "Green LED 1"; }; led2: led_2 { gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; label = "Blue LED 2"; }; }; pwmleds { compatible = "pwm-leds"; red_pwm_led: red_pwm_led { pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; }; green_pwm_led: green_pwm_led { pwms = <&pwm0 2 PWM_MSEC(20) PWM_POLARITY_INVERTED>; }; blue_pwm_led: blue_pwm_led { pwms = <&pwm0 1 PWM_MSEC(20) PWM_POLARITY_INVERTED>; }; }; buttons { compatible = "gpio-keys"; button0: button_0 { gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0 (SW1)"; zephyr,code = <INPUT_KEY_0>; }; button1: button_1 { gpios = <&gpio0 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1 (SW2)"; zephyr,code = <INPUT_KEY_1>; }; }; arduino_header: connector { compatible = "arduino-header-r3"; #gpio-cells = <2>; gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; gpio-map = <0 0 &gpio0 04 0>, /* A0 */ <1 0 &gpio0 30 0>, /* A1 */ <2 0 &gpio0 5 0>, /* A2 */ <3 0 &gpio0 2 0>, /* A3 */ <4 0 &gpio0 28 0>, /* A4 */ <5 0 &gpio0 3 0>, /* A5 */ <6 0 &gpio0 29 0>, /* D0 */ <7 0 &gpio1 13 0>, /* D1 */ <8 0 &gpio1 12 0>, /* D2 */ <9 0 &gpio0 31 0>, /* D3 */ <10 0 &gpio0 13 0>, /* D4 */ <11 0 &gpio0 11 0>, /* D5 */ <12 0 &gpio0 9 0>, /* D6 */ <13 0 &gpio0 10 0>, /* D7 */ <14 0 &gpio1 9 0>, /* D8 */ <15 0 &gpio0 12 0>, /* D9 */ <16 0 &gpio0 14 0>, /* D10 */ <17 0 &gpio0 15 0>, /* D11 */ <18 0 &gpio1 0 0>, /* D12 */ <19 0 &gpio0 7 0>, /* D13 */ <20 0 &gpio0 16 0>, /* D14 */ <21 0 &gpio0 24 0>; /* D15 */ }; arduino_adc: analog-connector { compatible = "arduino,uno-adc"; #io-channel-cells = <1>; io-channel-map = <0 &adc 2>, /* A0 = P0.04 = AIN2 */ <1 &adc 6>, /* A1 = P0.30 = AIN6 */ <2 &adc 3>, /* A2 = P0.5 = AIN3 */ <3 &adc 0>, /* A3 = P0.2 = AIN0 */ <4 &adc 4>, /* A4 = P0.28 = AIN4 */ <5 &adc 1>; /* A5 = P0.3 = AIN1 */ }; /* These aliases are provided for compatibility with samples */ aliases { led0 = &led0; led1 = &led1; led2 = &led2; pwm-led0 = &red_pwm_led; pwm-led1 = &green_pwm_led; pwm-led2 = &blue_pwm_led; red-pwm-led = &red_pwm_led; green-pwm-led = &green_pwm_led; blue-pwm-led = &blue_pwm_led; sw0 = &button0; sw1 = &button1; watchdog0 = &wdt0; }; }; &reg1 { regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; }; &adc { status = "okay"; }; &uicr { gpio-as-nreset; }; &gpiote { status = "okay"; }; &gpio0 { status = "okay"; }; &gpio1 { status = "okay"; }; &uart0 { compatible = "nordic,nrf-uarte"; status = "okay"; current-speed = <115200>; pinctrl-0 = <&uart0_default>; pinctrl-1 = <&uart0_sleep>; pinctrl-names = "default", "sleep"; }; arduino_i2c: &i2c0 { compatible = "nordic,nrf-twi"; status = "okay"; pinctrl-0 = <&i2c0_default>; pinctrl-1 = <&i2c0_sleep>; pinctrl-names = "default", "sleep"; }; &spi0 { compatible = "nordic,nrf-spi"; /* Cannot be used together with i2c0. */ /* status = "okay"; */ pinctrl-0 = <&spi0_default>; pinctrl-1 = <&spi0_sleep>; pinctrl-names = "default", "sleep"; }; &spi1 { compatible = "nordic,nrf-spi"; status = "okay"; pinctrl-0 = <&spi1_default>; pinctrl-1 = <&spi1_sleep>; pinctrl-names = "default", "sleep"; }; &pwm0 { status = "okay"; pinctrl-0 = <&pwm0_default>; pinctrl-1 = <&pwm0_sleep>; pinctrl-names = "default", "sleep"; }; &ieee802154 { status = "okay"; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x00000000 0x0000C000>; }; slot0_partition: partition@c000 { label = "image-0"; reg = <0x0000C000 0x00067000>; }; slot1_partition: partition@73000 { label = "image-1"; reg = <0x00073000 0x00067000>; }; scratch_partition: partition@da000 { label = "image-scratch"; reg = <0x000da000 0x0001e000>; }; /* * The flash starting at 0x000f8000 and ending at * 0x000fffff is reserved for use by the application. */ /* * Storage partition will be used by FCB/LittleFS/NVS * if enabled. */ storage_partition: partition@f8000 { label = "storage"; reg = <0x000f8000 0x00008000>; }; }; }; zephyr_udc0: &usbd { compatible = "nordic,nrf-usbd"; status = "okay"; }; ```
/content/code_sandbox/boards/u-blox/ubx_evkninab3/ubx_evkninab3_nrf52840.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,074
```unknown # EVK-NINA-B3 board configuration config BOARD_UBX_EVKNINAB3 select SOC_NRF52840_QIAA ```
/content/code_sandbox/boards/u-blox/ubx_evkninab3/Kconfig.ubx_evkninab3
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
32
```unknown # EVK-NINA-B3 board configuration # Enable MPU CONFIG_ARM_MPU=y # Enable hardware stack protection CONFIG_HW_STACK_PROTECTION=y # Enable RTT CONFIG_USE_SEGGER_RTT=y # enable GPIO CONFIG_GPIO=y # enable uart driver CONFIG_SERIAL=y # enable console CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y ```
/content/code_sandbox/boards/u-blox/ubx_evkninab3/ubx_evkninab3_nrf52840_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
77
```cmake # Suppress "unique_unit_address_if_enabled" to handle the following overlaps: # - power@40000000 & clock@40000000 & bprot@40000000 # - acl@4001e000 & flash-controller@4001e000 list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled") ```
/content/code_sandbox/boards/u-blox/ubx_evkninab3/pre_dt_board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
72
```yaml board: name: ubx_evkninab3 vendor: u-blox socs: - name: nrf52840 ```
/content/code_sandbox/boards/u-blox/ubx_evkninab3/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
34
```unknown # EVK-NINA-B3 board configuration if BOARD_UBX_EVKNINAB3 config BT_CTLR default BT endif # BOARD_UBX_EVKNINAB3 ```
/content/code_sandbox/boards/u-blox/ubx_evkninab3/Kconfig.defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
42
```restructuredtext .. _ubx_bmd340eval_nrf52840: u-blox EVK-BMD-34/38: BMD-340-EVAL and BMD-341-EVAL ################################################### Overview ******** The BMD-340-EVAL and BMD-341-EVAL hardware provides support for the u-blox BMD-340 and BMD-341 Bluetooth 5.0 modules, based on the Nordic Semiconductor nRF52840 ARM Cortex-M4F CPU. the BMD-340 and BMD-341 are identical in operation except for the antenna. The BMD-340 has a PCB antenna while the BMD-341 has a U.FL connector. Both support the following devices: * :abbr:`ADC (Analog to Digital Converter)` * CLOCK * FLASH * :abbr:`GPIO (General Purpose Input Output)` * :abbr:`I2C (Inter-Integrated Circuit)` * :abbr:`MPU (Memory Protection Unit)` * :abbr:`NVIC (Nested Vectored Interrupt Controller)` * :abbr:`PWM (Pulse Width Modulation)` * RADIO (Bluetooth Low Energy and 802.15.4) * :abbr:`RTC (nRF RTC System Clock)` * Segger RTT (RTT Console) * :abbr:`SPI (Serial Peripheral Interface)` * :abbr:`UART (Universal asynchronous receiver-transmitter)` * :abbr:`USB (Universal Serial Bus)` * :abbr:`WDT (Watchdog Timer)` .. figure:: img/BMD-34-38-EVAL.jpg :align: center :alt: BMD-340-EVAL BMD-340-EVAL (Credit: u-blox AG) More information about the BMD-340-EVAL, BMD-340 module, BMD-341-EVAL, and BMD-341 module can be found at the `u-blox website`_. All of the Nordic Semiconductor examples for the nRF52840 DK (nrf52840dk_nrf52840) may be used without modification. ..note:: The BMD-340 and BMD-341 are identical except for the antenna. Throughout this board support package, the filenames utilize the ubx_bmd340eval_nrf52840. Hardware ******** The BMD-340 on the BMD-340-EVAL (or BMD-341 on the BMD-341-EVAL) contains an internal high-frequency oscillator at 32MHz. There is also a low frequency (slow) oscillator of 32.768kHz. The BMD-340 and BMD-341 do not include the slow crystal; however, the BMD-340-EVAL and BMD-341-EVAL do. .. note:: When targeting a custom design without a slow crystal, be sure to modify code to utilize the internal RC oscillator for the slow clock. Supported Features ================== The BMD-340-EVAL and BMD-341-EVAL board configuration supports the following hardware features: +-----------+------------+----------------------+ | Interface | Controller | Driver/Component | +===========+============+======================+ | ADC | on-chip | adc | +-----------+------------+----------------------+ | CLOCK | on-chip | clock_control | +-----------+------------+----------------------+ | FLASH | on-chip | flash | +-----------+------------+----------------------+ | GPIO | on-chip | gpio | +-----------+------------+----------------------+ | I2C(M) | on-chip | i2c | +-----------+------------+----------------------+ | MPU | on-chip | arch/arm | +-----------+------------+----------------------+ | NVIC | on-chip | arch/arm | +-----------+------------+----------------------+ | PWM | on-chip | pwm | +-----------+------------+----------------------+ | RADIO | on-chip | Bluetooth, | | | | IEEE 802.15.4 | +-----------+------------+----------------------+ | RTC | on-chip | system clock | +-----------+------------+----------------------+ | RTT | Segger | console | +-----------+------------+----------------------+ | SPI(M/S) | on-chip | spi | +-----------+------------+----------------------+ | UART | on-chip | serial | +-----------+------------+----------------------+ | USB | on-chip | usb | +-----------+------------+----------------------+ | WDT | on-chip | watchdog | +-----------+------------+----------------------+ Other hardware features have not been enabled yet for this board. See the `u-blox website`_ for a complete list of BMD-340-EVAL and BMD-341-EVAL hardware features. Connections and IOs =================== LED --- * LED1 (red) = P0.13 * LED2 (red) = P0.14 * LED3 (green) = P0.15 * LED4 (green) = P0.16 * D5 (red) = OB LED 1 * D6 (green) = OB LED 2 Push buttons ------------ * BUTTON1 = SW1 = P0.11 * BUTTON2 = SW2 = P0.12 * BUTTON3 = SW3 = P0.24 * BUTTON4 = SW4 = P0.25 * BOOT = SW5 = boot/reset External Connectors ------------------- .. figure:: img/bmd-340-eval_pin_out.jpg :align: center :alt: BMD-340-EVAL pin-out .. note:: The pin numbers noted below are referenced to the pin 1 markings on the BMD-340-EVAL or BMD-341-EVAL for each header J-Link Prog Connector (J2) +-------+--------------+ | PIN # | Signal Name | +=======+==============+ | 1 | VDD | +-------+--------------+ | 2 | IMCU_TMSS | +-------+--------------+ | 3 | GND | +-------+--------------+ | 4 | IMCU_TCKS | +-------+--------------+ | 5 | V5V | +-------+--------------+ | 6 | IMCU_TDOS | +-------+--------------+ | 7 | Cut off | +-------+--------------+ | 8 | IMCU_TDIS | +-------+--------------+ | 9 | Cut off | +-------+--------------+ | 10 | IMCU_RESET | +-------+--------------+ Debug OUT (J3) +-------+----------------+ | PIN # | Signal Name | +=======+================+ | 1 | EXT_VTG | +-------+----------------+ | 2 | EXT_SWDIO | +-------+----------------+ | 3 | GND | +-------+----------------+ | 4 | EXT_SWDCLK | +-------+----------------+ | 5 | GND | +-------+----------------+ | 6 | EXT_SWO | +-------+----------------+ | 7 | N/C | +-------+----------------+ | 8 | N/C | +-------+----------------+ | 9 | EXT_GND_DETECT | +-------+----------------+ | 10 | EXT_RESET | +-------+----------------+ Debug IN (J26) +-------+----------------+ | PIN # | Signal Name | +=======+================+ | 1 | BMD-340_VCC | +-------+----------------+ | 2 | BMD-340_SWDIO | +-------+----------------+ | 3 | GND | +-------+----------------+ | 4 | BMD-340_SWDCLK | +-------+----------------+ | 5 | GND | +-------+----------------+ | 6 | BMD-340_SWO | +-------+----------------+ | 7 | N/C | +-------+----------------+ | 8 | N/C | +-------+----------------+ | 9 | GND | +-------+----------------+ | 10 | BMD-340_RESET | +-------+----------------+ Auxiliary (J9) +-------+----------------+ | PIN # | Signal Name | +=======+================+ | 1 | P0.10 / NFC2 | +-------+----------------+ | 2 | P0.09 / NFC1 | +-------+----------------+ | 3 | P0.08 | +-------+----------------+ | 4 | P0.07 | +-------+----------------+ | 5 | P0.06 | +-------+----------------+ | 6 | P0.05 / AIN3 | +-------+----------------+ | 7 | P0.01 / XL2 | +-------+----------------+ | 8 | P0.00 / XL1 | +-------+----------------+ Auxiliary (J10) +-------+-------------------+ | PIN # | Signal Name | +=======+===================+ | 1 | P0.11 / TRACED[2] | +-------+-------------------+ | 2 | P0.12 / TRACED[1] | +-------+-------------------+ | 3 | P0.13 | +-------+-------------------+ | 4 | P0.14 | +-------+-------------------+ | 5 | P0.15 | +-------+-------------------+ | 6 | P0.16 | +-------+-------------------+ | 7 | P0.17 / QSPI_CS | +-------+-------------------+ | 8 | P0.18 / RESET | +-------+-------------------+ | 9 | P0.19 / QSPI_CLK | +-------+-------------------+ | 10 | P0.20 / QSPI_D0 | +-------+-------------------+ | 11 | P0.21 / QSPI_D1 | +-------+-------------------+ | 12 | P0.22 / QSPI_D2 | +-------+-------------------+ | 13 | P0.23 / QSPI_D3 | +-------+-------------------+ | 14 | P0.24 | +-------+-------------------+ | 15 | P0.25 | +-------+-------------------+ | 16 | P1.00 / TRACED[0] | +-------+-------------------+ | 17 | P1.09 / TRACED[3] | +-------+-------------------+ | 18 | No connection | +-------+-------------------+ Arduino Headers --------------- Power (J5) +-------+--------------+-------------------------+ | PIN # | Signal Name | BMD-34x Functions | +=======+==============+=========================+ | 1 | VSHLD | N/A | +-------+--------------+-------------------------+ | 2 | VSHLD | N/A | +-------+--------------+-------------------------+ | 3 | RESET | P0.18 / RESET | +-------+--------------+-------------------------+ | 4 | VSHLD | N/A | +-------+--------------+-------------------------+ | 5 | V5V | N/A | +-------+--------------+-------------------------+ | 6 | GND | N/A | +-------+--------------+-------------------------+ | 7 | GND | N/A | +-------+--------------+-------------------------+ | 8 | N/C | N/A | +-------+--------------+-------------------------+ Analog in (J8) +-------+--------------+-------------------------+ | PIN # | Signal Name | BMD-34x Functions | +=======+==============+=========================+ | 1 | A0 | P0.03 / AIN1 | +-------+--------------+-------------------------+ | 2 | A1 | P0.04 / AIN2 | +-------+--------------+-------------------------+ | 3 | A2 | P0.28 / AIN4 | +-------+--------------+-------------------------+ | 4 | A3 | P0.29 / AIN5 | +-------+--------------+-------------------------+ | 5 | A4 | P0.30 / AIN6 | +-------+--------------+-------------------------+ | 6 | A5 | P0.31 / AIN7 | +-------+--------------+-------------------------+ Digital I/O (J7) +-------+--------------+-------------------------+ | PIN # | Signal Name | BMD-34x Functions | +=======+==============+=========================+ | 1 | D7 | P1.08 | +-------+--------------+-------------------------+ | 2 | D6 | P1.07 | +-------+--------------+-------------------------+ | 3 | D5 | P1.06 | +-------+--------------+-------------------------+ | 4 | D4 | P1.05 | +-------+--------------+-------------------------+ | 5 | D3 | P1.04 | +-------+--------------+-------------------------+ | 6 | D2 | P1.03 | +-------+--------------+-------------------------+ | 7 | D1 (TX) | P1.02 | +-------+--------------+-------------------------+ | 8 | D0 (RX) | P1.01 | +-------+--------------+-------------------------+ Digital I/O (J6) +-------+--------------+-------------------------+ | PIN # | Signal Name | BMD-34x Functions | +=======+==============+=========================+ | 1 | SCL | P0.27 | +-------+--------------+-------------------------+ | 2 | SDA | P0.26 | +-------+--------------+-------------------------+ | 3 | AREF | P0.02 / AIN0 | +-------+--------------+-------------------------+ | 4 | GND | N/A | +-------+--------------+-------------------------+ | 5 | D13 (SCK) | P1.15 | +-------+--------------+-------------------------+ | 6 | D12 (MISO) | P1.14 | +-------+--------------+-------------------------+ | 7 | D11 (MOSI) | P1.13 | +-------+--------------+-------------------------+ | 8 | D10 (SS) | P1.12 | +-------+--------------+-------------------------+ | 9 | D9 | P1.11 | +-------+--------------+-------------------------+ | 10 | D8 | P1.10 | +-------+--------------+-------------------------+ J11 +-------+--------------+-------------------------+ | PIN # | Signal Name | BMD-34x Functions | +=======+==============+=========================+ | 1 | D12 (MISO) | P0.14 | +-------+--------------+-------------------------+ | 2 | V5V | N/A | +-------+--------------+-------------------------+ | 3 | D13 (SCK) | P0.15 | +-------+--------------+-------------------------+ | 4 | D11 (MOSI) | P0.13 | +-------+--------------+-------------------------+ | 5 | RESET | N/A | +-------+--------------+-------------------------+ | 6 | N/A | N/A | +-------+--------------+-------------------------+ Programming and Debugging ************************* Applications for the BMD-340-EVAL and BMD-341-EVAL board configurations can be built and flashed in the usual way (see :ref:`build_an_application` and :ref:`application_run` for more details); however, the standard debugging targets are not currently available. Flashing ======== Follow the instructions in the :ref:`nordic_segger` page to install and configure all the necessary software. Further information can be found in :ref:`nordic_segger_flashing`. Then build and flash applications as usual (see :ref:`build_an_application` and :ref:`application_run` for more details). Here is an example for the :ref:`hello_world` application. First, run your favorite terminal program to listen for output. .. code-block:: console $ minicom -D <tty_device> -b 115200 Replace :code:`<tty_device>` with the port where the BMD-340-EVAL or BMD-341-EVAL can be found. For example, under Linux, :code:`/dev/ttyACM0`. Then build and flash the application in the usual way. .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: ubx_bmd340eval/nrf52840 :goals: build flash Debugging ========= Refer to the :ref:`nordic_segger` page to learn about debugging u-blox boards with a Segger J-LINK-OB IC. Testing the LEDs and buttons in the BMD-340-EVAL and BMD-341-EVAL ***************************************************************** There are 2 samples that allow you to test that the buttons (switches) and LEDs on the board are working properly with Zephyr: .. code-block:: console samples/basic/blinky samples/basic/button You can build and flash the examples to make sure Zephyr is running correctly on your board. The button and LED definitions can be found in :zephyr_file:`boards/u-blox/ubx_bmd340eval/ubx_bmd340eval_nrf52840.dts`. Using UART1 *********** The following approach can be used when an application needs to use more than one UART for connecting peripheral devices: 1. Add device tree overlay file to the main directory of your application: .. code-block:: devicetree &pinctrl { uart1_default: uart1_default { group1 { psels = <NRF_PSEL(UART_TX, 0, 14)>, <NRF_PSEL(UART_RX, 0, 16)>; }; }; /* required if CONFIG_PM_DEVICE=y */ uart1_sleep: uart1_sleep { group1 { psels = <NRF_PSEL(UART_TX, 0, 14)>, <NRF_PSEL(UART_RX, 0, 16)>; low-power-enable; }; }; }; &uart1 { compatible = "nordic,nrf-uarte"; current-speed = <115200>; status = "okay"; pinctrl-0 = <&uart1_default>; pinctrl-1 = <&uart1_sleep>; pinctrl-names = "default", "sleep"; }; In the overlay file above, pin P0.16 is used for RX and P0.14 is used for TX 2. Use the UART1 as ``DEVICE_DT_GET(DT_NODELABEL(uart1))`` Overlay file naming =================== The file has to be named ``<board>.overlay`` and placed in the app main directory to be picked up automatically by the device tree compiler. Selecting the pins ================== Pins can be configured in the board pinctrl file. To see the available mappings, open the data sheet for the BMD-340 at the `u-blox website`_, Section 2 'Pin definition'. In the table 3 select the pins marked 'GPIO'. Note that pins marked as 'Standard drive, low frequency I/O only (<10 kH' can only be used in under-10KHz applications. They are not suitable for 115200 speed of UART. .. note: Pins are defined according to the "nRF52" pin number, not the module pad number. References ********** .. target-notes:: .. _u-blox website: path_to_url ```
/content/code_sandbox/boards/u-blox/ubx_bmd340eval/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,415
```restructuredtext .. _ubx_ninab3_nrf52840: u-blox EVK-NINA-B3 ################## Overview ******** The u-blox EVK-NINA-B30 Development Kit hardware provides support for the u-blox NINA-B30x Bluetooth 5.0 module, based on the Nordic Semiconductor nRF52840 ARM Cortex-M4F CPU and the following devices: * :abbr:`ADC (Analog to Digital Converter)` * CLOCK * FLASH * :abbr:`GPIO (General Purpose Input Output)` * :abbr:`I2C (Inter-Integrated Circuit)` * :abbr:`MPU (Memory Protection Unit)` * :abbr:`NVIC (Nested Vectored Interrupt Controller)` * :abbr:`PWM (Pulse Width Modulation)` * RADIO (Bluetooth Low Energy and 802.15.4) * :abbr:`RTC (nRF RTC System Clock)` * Segger RTT (RTT Console) * :abbr:`SPI (Serial Peripheral Interface)` * :abbr:`UART (Universal asynchronous receiver-transmitter)` * :abbr:`USB (Universal Serial Bus)` * :abbr:`WDT (Watchdog Timer)` .. figure:: img/EVK-NINA-B3.jpg :align: center :alt: EVK-NINA-B3 EVK-NINA-B3 (Credit: u-blox AG) More information about the EVK-NINA-B3 and the NINA-B30x modules can be found at the `u-blox website`_. Hardware ******** The NINA-B30x on the EVK-NINA-B30x contains an internal high-frequency oscillator at 32MHz as well as a low frequency (slow) oscillator of 32.768kHz. Supported Features ================== The ubx_evkninab3/nrf52840 board configuration supports the following hardware features: +-----------+------------+----------------------+ | Interface | Controller | Driver/Component | +===========+============+======================+ | ADC | on-chip | adc | +-----------+------------+----------------------+ | CLOCK | on-chip | clock_control | +-----------+------------+----------------------+ | FLASH | on-chip | flash | +-----------+------------+----------------------+ | GPIO | on-chip | gpio | +-----------+------------+----------------------+ | I2C(M) | on-chip | i2c | +-----------+------------+----------------------+ | MPU | on-chip | arch/arm | +-----------+------------+----------------------+ | NVIC | on-chip | arch/arm | +-----------+------------+----------------------+ | PWM | on-chip | pwm | +-----------+------------+----------------------+ | RADIO | on-chip | Bluetooth, | | | | IEEE 802.15.4 | +-----------+------------+----------------------+ | RTC | on-chip | system clock | +-----------+------------+----------------------+ | RTT | Segger | console | +-----------+------------+----------------------+ | SPI(M/S) | on-chip | spi | +-----------+------------+----------------------+ | UART | on-chip | serial | +-----------+------------+----------------------+ | USB | on-chip | usb | +-----------+------------+----------------------+ | WDT | on-chip | watchdog | +-----------+------------+----------------------+ Other hardware features have not been enabled yet for this board. See the `u-blox website`_ for a complete list of EVK-NINA-B30x hardware features. Connections and IOs =================== LED --- * LED0 (red) = P0.13 * LED1 (green) = P0.25 * LED2 (blue) = P1.00 Push buttons ------------ * BUTTON1 = SW1 = P0.25 * BUTTON2 = SW2 = P0.2 * BOOT = SW0 = boot/reset External Connectors ------------------- .. note:: The pin numbers noted below are referenced to the pin 1 markings on the EVK-NINA-B30x for each header Arduino Headers --------------- Power (J1) +-------+--------------+-------------------------+ | PIN # | Signal Name | NINA-B30x Functions | +=======+==============+=========================+ | 1 | N/C | N/A | +-------+--------------+-------------------------+ | 2 | VDD_IO | N/A | +-------+--------------+-------------------------+ | 3 | RESET | P0.18 / RESET | +-------+--------------+-------------------------+ | 4 | 3V3 | N/A | +-------+--------------+-------------------------+ | 5 | 5V0 | N/A | +-------+--------------+-------------------------+ | 6 | GND | N/A | +-------+--------------+-------------------------+ | 7 | GND | N/A | +-------+--------------+-------------------------+ | 8 | VIN | N/A | +-------+--------------+-------------------------+ Analog in (J2) +-------+--------------+-------------------------+ | PIN # | Signal Name | NINA-B30x Functions | +=======+==============+=========================+ | 1 | A0 | P0.04 / AIN2 | +-------+--------------+-------------------------+ | 2 | A1 | P0.30 / AIN6 | +-------+--------------+-------------------------+ | 3 | A2 | P0.05 / AIN3 | +-------+--------------+-------------------------+ | 4 | A3 | P0.02 / AIN0 | +-------+--------------+-------------------------+ | 5 | A4 | P0.28 / AIN4 | +-------+--------------+-------------------------+ | 6 | A5 | P0.03 / AIN1 | +-------+--------------+-------------------------+ Digital I/O (J3) +-------+--------------+-------------------------+ | PIN # | Signal Name | NINA-B30x Functions | +=======+==============+=========================+ | 8 | D7 | P0.10 | +-------+--------------+-------------------------+ | 7 | D6 | P0.09 | +-------+--------------+-------------------------+ | 6 | D5 | P0.11 | +-------+--------------+-------------------------+ | 5 | D4 | P0.13 | +-------+--------------+-------------------------+ | 4 | D3 | P0.31 | +-------+--------------+-------------------------+ | 3 | D2 | P1.12 | +-------+--------------+-------------------------+ | 2 | D1 (TX) | P1.13 | +-------+--------------+-------------------------+ | 1 | D0 (RX) | P0.29 | +-------+--------------+-------------------------+ Digital I/O (J4) +-------+--------------+-------------------------+ | PIN # | Signal Name | NINA-B30x Functions | +=======+==============+=========================+ | 10 | SCL | P0.24 | +-------+--------------+-------------------------+ | 9 | SDA | P0.16 | +-------+--------------+-------------------------+ | 8 | N/C | N/A | +-------+--------------+-------------------------+ | 7 | GND | N/A | +-------+--------------+-------------------------+ | 6 | D13 (SCK) | P0.07 | +-------+--------------+-------------------------+ | 5 | D12 (MISO) | P1.00 | +-------+--------------+-------------------------+ | 4 | D11 (MOSI) | P0.15 | +-------+--------------+-------------------------+ | 3 | D10 (SS) | P0.14 | +-------+--------------+-------------------------+ | 2 | D9 | P0.12 | +-------+--------------+-------------------------+ | 1 | D8 | P1.09 | +-------+--------------+-------------------------+ Programming and Debugging ************************* Applications for the ``ubx_evkninab3/nrf52840`` board configuration can be built and flashed in the usual way (see :ref:`build_an_application` and :ref:`application_run` for more details); however, the standard debugging targets are not currently available. Flashing ======== Follow the instructions in the :ref:`nordic_segger` page to install and configure all the necessary software. Further information can be found in :ref:`nordic_segger_flashing`. Then build and flash applications as usual (see :ref:`build_an_application` and :ref:`application_run` for more details). Here is an example for the :ref:`hello_world` application. First, run your favorite terminal program to listen for output. .. code-block:: console $ minicom -D <tty_device> -b 115200 Replace :code:`<tty_device>` with the port where the EVK-NINA-B30x can be found. For example, under Linux, :code:`/dev/ttyACM0`. Then build and flash the application in the usual way. .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: ubx_evkninab3/nrf52840 :goals: build flash Debugging ========= Refer to the :ref:`nordic_segger` page to learn about debugging u-blox boards with a Segger J-LINK-OB IC. Testing the LEDs and buttons in the EVK-NINA-B30x ************************************************* There are 2 samples that allow you to test that the buttons (switches) and LEDs on the board are working properly with Zephyr: .. code-block:: console samples/basic/blinky samples/basic/button You can build and flash the examples to make sure Zephyr is running correctly on your board. The button and LED definitions can be found in :zephyr_file:`boards/u-blox/ubx_evkninab3/ubx_evkninab3_nrf52840.dts`. Using UART1 *********** The following approach can be used when an application needs to use more than one UART for connecting peripheral devices: 1. Add device tree overlay file to the main directory of your application: .. code-block:: devicetree &pinctrl { uart1_default: uart1_default { group1 { psels = <NRF_PSEL(UART_TX, 0, 14)>, <NRF_PSEL(UART_RX, 0, 16)>; }; }; /* required if CONFIG_PM_DEVICE=y */ uart1_sleep: uart1_sleep { group1 { psels = <NRF_PSEL(UART_TX, 0, 14)>, <NRF_PSEL(UART_RX, 0, 16)>; low-power-enable; }; }; }; &uart1 { compatible = "nordic,nrf-uarte"; current-speed = <115200>; status = "okay"; pinctrl-0 = <&uart1_default>; pinctrl-1 = <&uart1_sleep>; pinctrl-names = "default", "sleep"; }; In the overlay file above, pin P0.16 is used for RX and P0.14 is used for TX 2. Use the UART1 as ``DEVICE_DT_GET(DT_NODELABEL(uart1))`` Overlay file naming =================== The file has to be named ``<board>.overlay`` and placed in the app main directory to be picked up automatically by the device tree compiler. Selecting the pins ================== Pins can be configured in the board pinctrl file. To see the available mappings, open the data sheet for the NINA-B3 at `u-blox website`_, Section 3 'Pin definition'. In the table 7 select the pins marked 'GPIO_xx'. Note that pins marked as 'Radio sensitive pin' can only be used in under-10KHz applications. They are not suitable for 115200 speed of UART. .. note: Pins are defined according to the "nRF52" pin number, not the module pad number. References ********** .. target-notes:: .. _u-blox website: path_to_url ```
/content/code_sandbox/boards/u-blox/ubx_evkninab3/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,774
```unknown # BMD-340-EVAL board configuration config BOARD_UBX_BMD345EVAL select SOC_NRF52840_QIAA ```
/content/code_sandbox/boards/u-blox/ubx_bmd345eval/Kconfig.ubx_bmd345eval
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
32
```cmake # BMD-345-EVAL board configuration board_runner_args(nrfjprog "--nrf-family=NRF52") board_runner_args(jlink "--device=nRF52840_xxAA" "--speed=4000") board_runner_args(pyocd "--target=nrf52840" "--frequency=4000000") include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake) include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake) include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake) ```
/content/code_sandbox/boards/u-blox/ubx_bmd345eval/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
137
```yaml identifier: ubx_bmd345eval/nrf52840 name: BMD-345-EVAL type: mcu arch: arm ram: 256 flash: 1024 toolchain: - zephyr - gnuarmemb - xtools supported: - adc - arduino_i2c - arduino_spi - ble - counter - gpio - i2c - pwm - spi - qspi - usb_device - watchdog - netif:openthread vendor: u-blox ```
/content/code_sandbox/boards/u-blox/ubx_bmd345eval/ubx_bmd345eval_nrf52840.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
139
```unknown # BMD-345-EVAL board configuration # Enable MPU CONFIG_ARM_MPU=y # Enable hardware stack protection CONFIG_HW_STACK_PROTECTION=y # Enable RTT CONFIG_USE_SEGGER_RTT=y # enable GPIO CONFIG_GPIO=y # enable uart driver CONFIG_SERIAL=y # enable console CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y ```
/content/code_sandbox/boards/u-blox/ubx_bmd345eval/ubx_bmd345eval_nrf52840_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
77
```cmake # Suppress "unique_unit_address_if_enabled" to handle the following overlaps: # - power@40000000 & clock@40000000 & bprot@40000000 # - acl@4001e000 & flash-controller@4001e000 list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled") ```
/content/code_sandbox/boards/u-blox/ubx_bmd345eval/pre_dt_board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
72
```yaml board: name: ubx_bmd345eval vendor: u-blox socs: - name: nrf52840 ```
/content/code_sandbox/boards/u-blox/ubx_bmd345eval/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
33
```unknown # BMD-345-EVAL board configuration if BOARD_UBX_BMD345EVAL_NRF52840 config BT_CTLR default BT endif # BOARD_UBX_BMD345EVAL_NRF52840 ```
/content/code_sandbox/boards/u-blox/ubx_bmd345eval/Kconfig.defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
50
```unknown /* * BMD-340-EVAL board configuration * */ /dts-v1/; #include <nordic/nrf52840_qiaa.dtsi> #include "ubx_bmd345eval_nrf52840-pinctrl.dtsi" #include <zephyr/dt-bindings/input/input-event-codes.h> / { model = "u-blox BMD-345-EVAL EVK nRF52840"; compatible = "u-blox,ubx-bmd345eval-nrf52840"; chosen { zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,uart-mcumgr = &uart0; zephyr,bt-mon-uart = &uart0; zephyr,bt-c2h-uart = &uart0; zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; zephyr,ieee802154 = &ieee802154; }; leds { compatible = "gpio-leds"; led0: led_0 { gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; label = "Red LED 0"; }; led1: led_1 { gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; label = "Red LED 1"; }; led2: led_2 { gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; label = "Green LED 2"; }; led3: led_3 { gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; label = "Green LED 3"; }; }; pwmleds { compatible = "pwm-leds"; pwm_led0: pwm_led_0 { pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; }; }; buttons { compatible = "gpio-keys"; button0: button_0 { gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; zephyr,code = <INPUT_KEY_0>; }; button1: button_1 { gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; zephyr,code = <INPUT_KEY_1>; }; button2: button_2 { gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; zephyr,code = <INPUT_KEY_2>; }; button3: button_3 { gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; zephyr,code = <INPUT_KEY_3>; }; }; arduino_header: connector { compatible = "arduino-header-r3"; #gpio-cells = <2>; gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; gpio-map = <0 0 &gpio0 3 0>, /* A0 */ <1 0 &gpio0 4 0>, /* A1 */ <2 0 &gpio0 28 0>, /* A2 */ <3 0 &gpio0 29 0>, /* A3 */ <4 0 &gpio0 30 0>, /* A4 */ <5 0 &gpio0 31 0>, /* A5 */ <6 0 &gpio1 1 0>, /* D0 */ /* not present */ /* D1 */ <8 0 &gpio1 3 0>, /* D2 */ /* not present */ /* D3 */ /* not present */ /* D4 */ /* not present */ /* D5 */ <12 0 &gpio1 7 0>, /* D6 */ <13 0 &gpio1 8 0>, /* D7 */ <14 0 &gpio1 10 0>, /* D8 */ <15 0 &gpio1 11 0>, /* D9 */ <16 0 &gpio1 12 0>, /* D10 */ <17 0 &gpio1 13 0>, /* D11 */ <18 0 &gpio1 14 0>, /* D12 */ <19 0 &gpio1 15 0>, /* D13 */ <20 0 &gpio0 26 0>, /* D14 */ <21 0 &gpio0 27 0>; /* D15 */ }; arduino_adc: analog-connector { compatible = "arduino,uno-adc"; #io-channel-cells = <1>; io-channel-map = <0 &adc 1>, /* A0 = P0.3 = AIN1 */ <1 &adc 2>, /* A1 = P0.4 = AIN2 */ <2 &adc 4>, /* A2 = P0.28 = AIN4 */ <3 &adc 5>, /* A3 = P0.29 = AIN5 */ <4 &adc 6>, /* A4 = P0.30 = AIN6 */ <5 &adc 7>; /* A5 = P0.31 = AIN7 */ }; nrf_radio_fem: fem { compatible = "generic-fem-two-ctrl-pins"; ctx-gpios = <&gpio1 5 0>; ctx-settle-time-us = <1>; crx-gpios = <&gpio1 6 0>; crx-settle-time-us = <1>; }; /* These aliases are provided for compatibility with samples */ aliases { led0 = &led0; led1 = &led1; led2 = &led2; led3 = &led3; pwm-led0 = &pwm_led0; sw0 = &button0; sw1 = &button1; sw2 = &button2; sw3 = &button3; bootloader-led0 = &led0; mcuboot-button0 = &button0; mcuboot-led0 = &led0; watchdog0 = &wdt0; }; }; &radio { fem = <&nrf_radio_fem>; }; &adc { status = "okay"; }; &uicr { gpio-as-nreset; }; &gpiote { status = "okay"; }; &gpio0 { status = "okay"; }; &gpio1 { status = "okay"; fem-pins { gpio-hog; /* A_SEL, MODE pins */ gpios = <2 GPIO_ACTIVE_HIGH>, <4 GPIO_ACTIVE_HIGH>; output-low; }; }; &uart0 { compatible = "nordic,nrf-uarte"; status = "okay"; current-speed = <115200>; pinctrl-0 = <&uart0_default>; pinctrl-1 = <&uart0_sleep>; pinctrl-names = "default", "sleep"; }; arduino_i2c: &i2c0 { compatible = "nordic,nrf-twi"; status = "okay"; pinctrl-0 = <&i2c0_default>; pinctrl-1 = <&i2c0_sleep>; pinctrl-names = "default", "sleep"; }; &i2c1 { compatible = "nordic,nrf-twi"; /* Cannot be used together with spi1. */ /* status = "okay"; */ pinctrl-0 = <&i2c1_default>; pinctrl-1 = <&i2c1_sleep>; pinctrl-names = "default", "sleep"; }; &pwm0 { status = "okay"; pinctrl-0 = <&pwm0_default>; pinctrl-1 = <&pwm0_sleep>; pinctrl-names = "default", "sleep"; }; &spi0 { compatible = "nordic,nrf-spi"; /* Cannot be used together with i2c0. */ /* status = "okay"; */ pinctrl-0 = <&spi0_default>; pinctrl-1 = <&spi0_sleep>; pinctrl-names = "default", "sleep"; }; &spi1 { compatible = "nordic,nrf-spi"; status = "okay"; pinctrl-0 = <&spi1_default>; pinctrl-1 = <&spi1_sleep>; pinctrl-names = "default", "sleep"; }; &spi2 { compatible = "nordic,nrf-spi"; status = "disabled"; pinctrl-0 = <&spi2_default>; pinctrl-1 = <&spi2_sleep>; pinctrl-names = "default", "sleep"; }; arduino_spi: &spi3 { status = "okay"; cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ pinctrl-0 = <&spi3_default>; pinctrl-1 = <&spi3_sleep>; pinctrl-names = "default", "sleep"; }; &qspi { status = "okay"; pinctrl-0 = <&qspi_default>; pinctrl-1 = <&qspi_sleep>; pinctrl-names = "default", "sleep"; mx25r64: mx25r6435f@0 { compatible = "nordic,qspi-nor"; reg = <0>; /* MX25R64 supports only pp and pp4io */ writeoc = "pp4io"; /* MX25R64 supports all readoc options */ readoc = "read4io"; sck-frequency = <8000000>; jedec-id = [c2 28 17]; sfdp-bfp = [ e5 20 f1 ff ff ff ff 03 44 eb 08 6b 08 3b 04 bb ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 0f 52 10 d8 00 ff 23 72 f5 00 82 ed 04 cc 44 83 68 44 30 b0 30 b0 f7 c4 d5 5c 00 be 29 ff f0 d0 ff ff ]; size = <67108864>; has-dpd; t-enter-dpd = <10000>; t-exit-dpd = <35000>; }; }; &ieee802154 { status = "okay"; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x00000000 0x0000C000>; }; slot0_partition: partition@c000 { label = "image-0"; reg = <0x0000C000 0x00067000>; }; slot1_partition: partition@73000 { label = "image-1"; reg = <0x00073000 0x00067000>; }; scratch_partition: partition@da000 { label = "image-scratch"; reg = <0x000da000 0x0001e000>; }; /* * The flash starting at 0x000f8000 and ending at * 0x000fffff is reserved for use by the application. */ /* * Storage partition will be used by FCB/LittleFS/NVS * if enabled. */ storage_partition: partition@f8000 { label = "storage"; reg = <0x000f8000 0x00008000>; }; }; }; zephyr_udc0: &usbd { compatible = "nordic,nrf-usbd"; status = "okay"; }; ```
/content/code_sandbox/boards/u-blox/ubx_bmd345eval/ubx_bmd345eval_nrf52840.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,781
```unknown /* */ &pinctrl { uart0_default: uart0_default { group1 { psels = <NRF_PSEL(UART_TX, 0, 6)>, <NRF_PSEL(UART_RX, 0, 8)>, <NRF_PSEL(UART_RTS, 0, 5)>, <NRF_PSEL(UART_CTS, 0, 7)>; }; }; uart0_sleep: uart0_sleep { group1 { psels = <NRF_PSEL(UART_TX, 0, 6)>, <NRF_PSEL(UART_RX, 0, 8)>, <NRF_PSEL(UART_RTS, 0, 5)>, <NRF_PSEL(UART_CTS, 0, 7)>; low-power-enable; }; }; i2c0_default: i2c0_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 26)>, <NRF_PSEL(TWIM_SCL, 0, 27)>; }; }; i2c0_sleep: i2c0_sleep { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 26)>, <NRF_PSEL(TWIM_SCL, 0, 27)>; low-power-enable; }; }; i2c1_default: i2c1_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 30)>, <NRF_PSEL(TWIM_SCL, 0, 31)>; }; }; i2c1_sleep: i2c1_sleep { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 30)>, <NRF_PSEL(TWIM_SCL, 0, 31)>; low-power-enable; }; }; pwm0_default: pwm0_default { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 13)>; nordic,invert; }; }; pwm0_sleep: pwm0_sleep { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 13)>; low-power-enable; }; }; spi0_default: spi0_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 27)>, <NRF_PSEL(SPIM_MOSI, 0, 26)>, <NRF_PSEL(SPIM_MISO, 0, 29)>; }; }; spi0_sleep: spi0_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 27)>, <NRF_PSEL(SPIM_MOSI, 0, 26)>, <NRF_PSEL(SPIM_MISO, 0, 29)>; low-power-enable; }; }; spi1_default: spi1_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 31)>, <NRF_PSEL(SPIM_MOSI, 0, 30)>, <NRF_PSEL(SPIM_MISO, 1, 8)>; }; }; spi1_sleep: spi1_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 31)>, <NRF_PSEL(SPIM_MOSI, 0, 30)>, <NRF_PSEL(SPIM_MISO, 1, 8)>; low-power-enable; }; }; spi2_default: spi2_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 19)>, <NRF_PSEL(SPIM_MOSI, 0, 20)>, <NRF_PSEL(SPIM_MISO, 0, 21)>; }; }; spi2_sleep: spi2_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 19)>, <NRF_PSEL(SPIM_MOSI, 0, 20)>, <NRF_PSEL(SPIM_MISO, 0, 21)>; low-power-enable; }; }; spi3_default: spi3_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 1, 15)>, <NRF_PSEL(SPIM_MISO, 1, 14)>, <NRF_PSEL(SPIM_MOSI, 1, 13)>; }; }; spi3_sleep: spi3_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 1, 15)>, <NRF_PSEL(SPIM_MISO, 1, 14)>, <NRF_PSEL(SPIM_MOSI, 1, 13)>; low-power-enable; }; }; qspi_default: qspi_default { group1 { psels = <NRF_PSEL(QSPI_SCK, 0, 19)>, <NRF_PSEL(QSPI_IO0, 0, 20)>, <NRF_PSEL(QSPI_IO1, 0, 21)>, <NRF_PSEL(QSPI_IO2, 0, 22)>, <NRF_PSEL(QSPI_IO3, 0, 23)>, <NRF_PSEL(QSPI_CSN, 0, 17)>; }; }; qspi_sleep: qspi_sleep { group1 { psels = <NRF_PSEL(QSPI_SCK, 0, 19)>, <NRF_PSEL(QSPI_IO0, 0, 20)>, <NRF_PSEL(QSPI_IO1, 0, 21)>, <NRF_PSEL(QSPI_IO2, 0, 22)>, <NRF_PSEL(QSPI_IO3, 0, 23)>, <NRF_PSEL(QSPI_CSN, 0, 17)>; low-power-enable; }; }; }; ```
/content/code_sandbox/boards/u-blox/ubx_bmd345eval/ubx_bmd345eval_nrf52840-pinctrl.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,437
```unknown /* */ &pinctrl { uart0_default: uart0_default { group1 { psels = <NRF_PSEL(UART_TX, 0, 6)>, <NRF_PSEL(UART_RX, 0, 8)>, <NRF_PSEL(UART_RTS, 0, 5)>, <NRF_PSEL(UART_CTS, 0, 7)>; }; }; uart0_sleep: uart0_sleep { group1 { psels = <NRF_PSEL(UART_TX, 0, 6)>, <NRF_PSEL(UART_RX, 0, 8)>, <NRF_PSEL(UART_RTS, 0, 5)>, <NRF_PSEL(UART_CTS, 0, 7)>; low-power-enable; }; }; i2c0_default: i2c0_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 26)>, <NRF_PSEL(TWIM_SCL, 0, 27)>; }; }; i2c0_sleep: i2c0_sleep { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 26)>, <NRF_PSEL(TWIM_SCL, 0, 27)>; low-power-enable; }; }; pwm0_default: pwm0_default { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 17)>; nordic,invert; }; }; pwm0_sleep: pwm0_sleep { group1 { psels = <NRF_PSEL(PWM_OUT0, 0, 17)>; low-power-enable; }; }; spi0_default: spi0_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 25)>, <NRF_PSEL(SPIM_MOSI, 0, 23)>, <NRF_PSEL(SPIM_MISO, 0, 24)>; }; }; spi0_sleep: spi0_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 25)>, <NRF_PSEL(SPIM_MOSI, 0, 23)>, <NRF_PSEL(SPIM_MISO, 0, 24)>; low-power-enable; }; }; }; ```
/content/code_sandbox/boards/u-blox/ubx_bmd360eval/ubx_bmd360eval_nrf52811-pinctrl.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
573