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
```unknown /* * */ #include "arduino_r3_connector.dtsi" #include <zephyr/dt-bindings/input/input-event-codes.h> / { leds { compatible = "gpio-leds"; red_led: led_0 { gpios = <&gpioi 12 GPIO_ACTIVE_LOW>; }; green_led: led_1 { gpios = <&gpioj 13 GPIO_ACTIVE_LOW>; }; blue_led: led_2 { gpios = <&gpioe 3 GPIO_ACTIVE_LOW>; }; }; gpio_keys { compatible = "gpio-keys"; user_button: button_0 { gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; zephyr,code = <INPUT_KEY_0>; }; }; }; &rcc { d1cpre = <1>; hpre = <2>; d1ppre = <2>; d2ppre1 = <2>; d2ppre2 = <2>; d3ppre = <2>; }; &mailbox { status = "okay"; }; ```
/content/code_sandbox/boards/arduino/giga_r1/arduino_giga_r1.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
239
```yaml identifier: arduino_giga_r1/stm32h747xx/m4 name: Arduino GIGA R1 WiFi (M4) type: mcu arch: arm toolchain: - zephyr - gnuarmemb - xtools ram: 288 flash: 1024 supported: - arduino_gpio - gpio testing: ignore_tags: - mpu - nfc - net vendor: arduino ```
/content/code_sandbox/boards/arduino/giga_r1/arduino_giga_r1_stm32h747xx_m4.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
109
```yaml identifier: arduino_giga_r1/stm32h747xx/m7 name: Arduino GIGA R1 WiFi (M7) type: mcu arch: arm toolchain: - zephyr - gnuarmemb - xtools ram: 512 flash: 1024 supported: - arduino_gpio - gpio - arduino_spi - spi - memc - usb_device vendor: arduino ```
/content/code_sandbox/boards/arduino/giga_r1/arduino_giga_r1_stm32h747xx_m7.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
109
```unknown /* * */ /dts-v1/; #include <st/h7/stm32h747Xi_m7.dtsi> #include <st/h7/stm32h747xihx-pinctrl.dtsi> #include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h> #include "arduino_giga_r1.dtsi" / { model = "Arduino GIGA R1 WiFi Board (M7)"; compatible = "arduino,giga-r1"; chosen { zephyr,console = &usart1; zephyr,shell-uart = &usart1; zephyr,uart-mcumgr = &usart1; zephyr,bt-hci = &bt_hci_uart; zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,canbus = &fdcan2; zephyr,code-partition = &slot0_partition; }; sdram1: sdram@c0000000 { compatible = "zephyr,memory-region", "mmio-sram"; device_type = "memory"; reg = <0xc0000000 DT_SIZE_M(8)>; zephyr,memory-region = "SDRAM1"; zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_RAM) )>; }; aliases { led0 = &red_led; led1 = &green_led; sw0 = &user_button; }; }; &clk_hse { status = "okay"; clock-frequency = <DT_FREQ_M(16)>; }; &clk_lse { status = "okay"; }; &clk_hsi48 { status = "okay"; }; &pll { div-m = <2>; mul-n = <120>; div-p = <2>; div-q = <4>; div-r = <2>; clocks = <&clk_hse>; status = "okay"; }; &rcc { clocks = <&pll>; clock-frequency = <DT_FREQ_M(480)>; }; &usart1 { status = "okay"; pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pb7>; pinctrl-names = "default"; current-speed = <115200>; }; &usart6 { status = "disabled"; pinctrl-0 = <&usart6_tx_pg14 &usart6_rx_pc7>; pinctrl-names = "default"; current-speed = <115200>; }; &uart4 { status = "disabled"; pinctrl-0 = <&uart4_tx_ph13 &uart4_rx_pi9>; pinctrl-names = "default"; current-speed = <115200>; }; &uart7 { pinctrl-0 = <&uart7_tx_pf7 &uart7_rx_pa8 &uart7_cts_pf9 &uart7_rts_pf8>; pinctrl-names = "default"; current-speed = <115200>; status = "okay"; hw-flow-control; bt_hci_uart: bt_hci_uart { compatible = "zephyr,bt-hci-uart"; status = "okay"; murata-1dx { compatible = "infineon,cyw43xxx-bt-hci"; bt-reg-on-gpios = <&gpioa 10 GPIO_ACTIVE_HIGH>; bt-host-wake-gpios = <&gpiog 3 GPIO_ACTIVE_HIGH>; bt-dev-wake-gpios = <&gpioh 7 GPIO_ACTIVE_HIGH>; fw-download-speed = <115200>; }; }; }; &i2c4 { status = "okay"; pinctrl-0 = <&i2c4_scl_pb6 &i2c4_sda_ph12>; pinctrl-names = "default"; clock-frequency = <I2C_BITRATE_STANDARD>; }; &i2c1 { status = "disabled"; pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb9>; pinctrl-names = "default"; clock-frequency = <I2C_BITRATE_FAST>; }; &i2c2 { status = "disabled"; pinctrl-0 = <&i2c2_scl_ph4 &i2c2_sda_pb11>; pinctrl-names = "default"; clock-frequency = <I2C_BITRATE_FAST>; }; &spi5 { status = "okay"; pinctrl-0 = <&spi5_nss_pk1 &spi5_sck_ph6 &spi5_miso_pj11 &spi5_mosi_pj10>; pinctrl-names = "default"; }; &fdcan2 { status = "okay"; pinctrl-0 = <&fdcan2_tx_pb13 &fdcan2_rx_pb5>; pinctrl-names = "default"; clocks = <&rcc STM32_CLOCK_BUS_APB1_2 0x00000100>, <&rcc STM32_SRC_PLL1_Q FDCAN_SEL(1)>; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "bootloader"; reg = <0x0 0x40000>; read-only; }; slot0_partition: partition@40000 { label = "image-0"; reg = <0x40000 0x000c0000>; }; }; }; &quadspi { pinctrl-0 = <&quadspi_clk_pf10 &quadspi_bk1_ncs_pg6 &quadspi_bk1_io0_pd11 &quadspi_bk1_io1_pd12 &quadspi_bk1_io2_pe2 &quadspi_bk1_io3_pf6>; pinctrl-names = "default"; status = "okay"; n25q128a1: qspi-nor-flash@90000000 { compatible = "st,stm32-qspi-nor"; reg = <0x90000000 DT_SIZE_M(16)>; /* 128 Mbits */ qspi-max-frequency = <72000000>; status = "okay"; partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; slot1_partition: partition@0 { label = "image-1"; reg = <0x00000000 DT_SIZE_M(1)>; }; storage_partition: partition@100000 { label = "storage"; reg = <0x00100000 DT_SIZE_M(15)>; }; }; }; }; &rng { status = "okay"; }; &dac1 { status = "okay"; pinctrl-0 = <&dac1_out1_pa4 &dac1_out2_pa5>; pinctrl-names = "default"; }; &fmc { status = "okay"; pinctrl-0 = <&fmc_nbl0_pe0 &fmc_nbl1_pe1 &fmc_sdclk_pg8 &fmc_sdnwe_ph5 &fmc_sdcke0_ph2 &fmc_sdne0_ph3 &fmc_sdnras_pf11 &fmc_sdncas_pg15 &fmc_a0_pf0 &fmc_a1_pf1 &fmc_a2_pf2 &fmc_a3_pf3 &fmc_a4_pf4 &fmc_a5_pf5 &fmc_a6_pf12 &fmc_a7_pf13 &fmc_a8_pf14 &fmc_a9_pf15 &fmc_a10_pg0 &fmc_a11_pg1 &fmc_a12_pg2 &fmc_a14_pg4 &fmc_a15_pg5 &fmc_d0_pd14 &fmc_d1_pd15 &fmc_d2_pd0 &fmc_d3_pd1 &fmc_d4_pe7 &fmc_d5_pe8 &fmc_d6_pe9 &fmc_d7_pe10 &fmc_d8_pe11 &fmc_d9_pe12 &fmc_d10_pe13 &fmc_d11_pe14 &fmc_d12_pe15 &fmc_d13_pd8 &fmc_d14_pd9 &fmc_d15_pd10>; pinctrl-names = "default"; sdram { status = "okay"; power-up-delay = <100>; num-auto-refresh = <8>; mode-register = <0x220>; refresh-rate = <603>; bank@0 { reg = <0>; st,sdram-control = <STM32_FMC_SDRAM_NC_8 STM32_FMC_SDRAM_NR_12 STM32_FMC_SDRAM_MWID_16 STM32_FMC_SDRAM_NB_4 STM32_FMC_SDRAM_CAS_2 STM32_FMC_SDRAM_SDCLK_PERIOD_2 STM32_FMC_SDRAM_RBURST_ENABLE STM32_FMC_SDRAM_RPIPE_0>; st,sdram-timing = <2 6 4 6 2 2 2>; }; }; }; zephyr_udc0: &usbotg_fs { status = "okay"; pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>; pinctrl-names = "default"; }; ```
/content/code_sandbox/boards/arduino/giga_r1/arduino_giga_r1_stm32h747xx_m7.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,081
```yaml board: name: arduino_giga_r1 vendor: arduino socs: - name: stm32h747xx ```
/content/code_sandbox/boards/arduino/giga_r1/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
33
```unknown if BOARD_ARDUINO_GIGA_R1 if BT choice AIROC_PART default CYW4343W endchoice choice CYW4343W_MODULE default CYW4343W_MURATA_1DX endchoice endif # BT endif # BOARD_ARDUINO_GIGA_R1 ```
/content/code_sandbox/boards/arduino/giga_r1/Kconfig.defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
73
```unknown config BOARD_ARDUINO_GIGA_R1 select SOC_STM32H747XX_M7 if BOARD_ARDUINO_GIGA_R1_STM32H747XX_M7 select SOC_STM32H747XX_M4 if BOARD_ARDUINO_GIGA_R1_STM32H747XX_M4 ```
/content/code_sandbox/boards/arduino/giga_r1/Kconfig.arduino_giga_r1
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
74
```ini source [find interface/stlink.cfg] transport select hla_swd source [find target/stm32h7x.cfg] # Use connect_assert_srst here to be able to program # even when core is in sleep mode reset_config srst_only srst_nogate connect_assert_srst $_CHIPNAME.cpu0 configure -event gdb-attach { echo "Debugger attaching: halting execution" gdb_breakpoint_override hard } $_CHIPNAME.cpu0 configure -event gdb-detach { echo "Debugger detaching: resuming execution" resume } # Due to the use of connect_assert_srst, running gdb requires # to reset halt just after openocd init. rename init old_init proc init {} { old_init reset halt } ```
/content/code_sandbox/boards/arduino/giga_r1/support/openocd_arduino_giga_r1_m7.cfg
ini
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
167
```ini source [find interface/stlink.cfg] transport select hla_swd set DUAL_BANK 1 set DUAL_CORE 1 source [find target/stm32h7x.cfg] reset_config srst_only srst_nogate connect_assert_srst ```
/content/code_sandbox/boards/arduino/giga_r1/support/openocd_arduino_giga_r1_m4.cfg
ini
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
58
```unknown /* * */ / { 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 &gpioc 4 0>, /* A0 */ < 1 0 &gpioc 5 0>, /* A1 */ < 2 0 &gpiob 0 0>, /* A2 */ < 3 0 &gpiob 1 0>, /* A3 */ < 4 0 &gpioc 3 0>, /* A4 */ < 5 0 &gpioc 2 0>, /* A5 */ < 6 0 &gpiob 7 0>, /* D0 */ < 7 0 &gpioa 9 0>, /* D1 */ < 8 0 &gpioa 3 0>, /* D2 */ < 9 0 &gpioa 2 0>, /* D3 */ <10 0 &gpioj 8 0>, /* D4 */ <11 0 &gpioa 7 0>, /* D5 */ <12 0 &gpiod 13 0>, /* D6 */ <13 0 &gpiob 4 0>, /* D7 */ <14 0 &gpiob 8 0>, /* D8 */ <15 0 &gpiob 9 0>, /* D9 */ <16 0 &gpiok 1 0>, /* D10 */ <17 0 &gpioj 10 0>, /* D11 */ <18 0 &gpioj 11 0>, /* D12 */ <19 0 &gpioh 6 0>, /* D13 */ <20 0 &gpioh 12 0>, /* D14 */ <21 0 &gpiob 6 0>; /* D15 */ }; }; arduino_i2c: &i2c4 {}; arduino_spi: &spi5 {}; arduino_serial: &usart1 {}; ```
/content/code_sandbox/boards/arduino/giga_r1/arduino_r3_connector.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
530
```cmake include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) ```
/content/code_sandbox/boards/arduino/zero/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
19
```unknown /* */ #include <dt-bindings/pinctrl/samd21-da1gXabcd-pinctrl.h> &pinctrl { dac_default: dac_default { group1 { pinmux = <PA2B_DAC_VOUT>; }; }; pwm_default: pwm_default { group1 { pinmux = <PA17E_TCC2_WO1>; }; }; sercom4_spi_default: sercom4_spi_default { group1 { pinmux = <PA12D_SERCOM4_PAD0>, <PB10D_SERCOM4_PAD2>, <PB11D_SERCOM4_PAD3>; }; }; sercom0_uart_default: sercom0_uart_default { group1 { pinmux = <PA11C_SERCOM0_PAD3>, <PA10C_SERCOM0_PAD2>; }; }; sercom5_uart_default: sercom5_uart_default { group1 { pinmux = <PB23D_SERCOM5_PAD3>, <PB22D_SERCOM5_PAD2>; }; }; usb_dc_default: usb_dc_default { group1 { pinmux = <PA25G_USB_DP>, <PA24G_USB_DM>; }; }; }; ```
/content/code_sandbox/boards/arduino/zero/arduino_zero-pinctrl.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
283
```unknown /* * */ /dts-v1/; #include <atmel/samd21.dtsi> #include <atmel/samx2xx18.dtsi> #include "arduino_zero-pinctrl.dtsi" / { model = "Arduino Zero"; compatible = "arduino,zero", "atmel,samd21g18a", "atmel,samd21"; chosen { zephyr,console = &sercom5; zephyr,shell-uart = &sercom5; zephyr,sram = &sram0; zephyr,flash = &flash0; }; /* These aliases are provided for compatibility with samples */ aliases { led0 = &led0; led1 = &led1; led2 = &led2; pwm-led0 = &pwm_led0; }; leds { compatible = "gpio-leds"; led0: led_0 { gpios = <&porta 17 0>; label = "LED"; }; led1: led_1 { gpios = <&porta 27 0>; label = "TX"; }; led2: led_2 { gpios = <&portb 3 0>; label = "RX"; }; }; pwmleds { compatible = "pwm-leds"; pwm_led0: pwm_led_0 { pwms = <&tcc2 1 PWM_MSEC(20)>; }; }; }; &cpu0 { clock-frequency = <48000000>; }; &sercom0 { status = "okay"; compatible = "atmel,sam0-uart"; current-speed = <115200>; rxpo = <3>; txpo = <1>; pinctrl-0 = <&sercom0_uart_default>; pinctrl-names = "default"; }; &sercom5 { status = "okay"; compatible = "atmel,sam0-uart"; current-speed = <115200>; rxpo = <3>; txpo = <1>; pinctrl-0 = <&sercom5_uart_default>; pinctrl-names = "default"; }; &sercom4 { status = "okay"; compatible = "atmel,sam0-spi"; dipo = <0>; dopo = <1>; #address-cells = <1>; #size-cells = <0>; pinctrl-0 = <&sercom4_spi_default>; pinctrl-names = "default"; }; &tcc2 { status = "okay"; compatible = "atmel,sam0-tcc-pwm"; /* Gives a maximum period of 1.4 s */ prescaler = <1024>; #pwm-cells = <2>; pinctrl-0 = <&pwm_default>; pinctrl-names = "default"; }; &dac0 { status = "okay"; pinctrl-0 = <&dac_default>; pinctrl-names = "default"; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; /* * The final 16 KiB is reserved for the application. * Storage partition will be used by FCB/LittleFS/NVS * if enabled. */ storage_partition: partition@3c000 { label = "storage"; reg = <0x0003c000 0x00004000>; }; }; }; zephyr_udc0: &usb0 { status = "okay"; pinctrl-0 = <&usb_dc_default>; pinctrl-names = "default"; }; ```
/content/code_sandbox/boards/arduino/zero/arduino_zero.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
820
```cmake # Suppress "unique_unit_address_if_enabled" to handle the following overlaps: # - /soc/pinmux@41004400 & /soc/gpio@41004400 # - /soc/pinmux@41004480 & /soc/gpio@41004480 list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled") ```
/content/code_sandbox/boards/arduino/zero/pre_dt_board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
74
```yaml identifier: arduino_zero name: Arduino Zero type: mcu arch: arm ram: 32 flash: 256 toolchain: - zephyr - gnuarmemb - xtools supported: - adc - counter - dac - dma - gpio - hwinfo - pwm - spi - uart - usb_device - watchdog vendor: arduino ```
/content/code_sandbox/boards/arduino/zero/arduino_zero.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
105
```yaml board: name: arduino_zero vendor: arduino socs: - name: samd21g18a ```
/content/code_sandbox/boards/arduino/zero/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
31
```restructuredtext .. _arduino_giga_r1_board: Arduino GIGA R1 WiFi #################### Overview ******** Arduino GIGA R1 WiFi is a development board by Arduino based on the STM32H747XI, a dual core ARM Cortex-M7 + Cortex-M4 MCU, with 2MBytes of Flash memory and 1MB SRAM. The board features: - RGB LED - Reset and Boot buttons - USB-C device - USB Host - 16MB external QSPI flash - 8MB external SDRAM - Murata Type 1DX Bluetooth + WiFi module (CYW4343W based) - Audio jack - ATECC608A secure element .. image:: img/arduino_giga_r1.jpg :align: center :alt: Arduino GIGA R1 WiFi More information about the board, including the datasheet, pinout and schematics, can be found at the `Arduino GIGA website`_. More information about STM32H747XIH6 can be found here: - `STM32H747XI on www.st.com`_ - `STM32H747xx reference manual`_ - `STM32H747xx datasheet`_ Supported Features ================== The current Zephyr ``arduino_giga_r1_m7`` board configuration supports the following hardware features: +-----------+------------+-------------------------------------+ | Interface | Controller | Driver/Component | +===========+============+=====================================+ | NVIC | on-chip | nested vector interrupt controller | +-----------+------------+-------------------------------------+ | UART | on-chip | serial port-polling; | | | | serial port-interrupt | +-----------+------------+-------------------------------------+ | PINMUX | on-chip | pinmux | +-----------+------------+-------------------------------------+ | GPIO | on-chip | gpio | +-----------+------------+-------------------------------------+ | FLASH | on-chip | flash memory | +-----------+------------+-------------------------------------+ | RNG | on-chip | True Random number generator | +-----------+------------+-------------------------------------+ | I2C | on-chip | i2c | +-----------+------------+-------------------------------------+ | SPI | on-chip | spi | +-----------+------------+-------------------------------------+ | IPM | on-chip | virtual mailbox based on HSEM | +-----------+------------+-------------------------------------+ | FMC | on-chip | memc (SDRAM) | +-----------+------------+-------------------------------------+ | QSPI | on-chip | QSPI flash | +-----------+------------+-------------------------------------+ | RADIO | Murata 1DX | WiFi and Bluetooth module | +-----------+------------+-------------------------------------+ Other hardware features are not yet supported on Zephyr port. Fetch Binary Blobs ****************** The board Bluetooth/WiFi module requires fetching some binary blob files, to do that run the command: .. code-block:: console west blobs fetch hal_infineon .. note:: Only Bluetooth functionality is currently supported. Resources sharing ================= The dual core nature of STM32H747 SoC requires sharing HW resources between the two cores. This is done in 3 ways: - **Compilation**: Clock configuration is only accessible to M7 core. M4 core only has access to bus clock activation and deactivation. - **Static pre-compilation assignment**: Peripherals such as a UART are assigned in devicetree before compilation. The user must ensure peripherals are not assigned to both cores at the same time. - **Run time protection**: Interrupt-controller and GPIO configurations could be accessed by both cores at run time. Accesses are protected by a hardware semaphore to avoid potential concurrent access issues. Programming and Debugging ************************* Applications for the ``arduino_giga_r1`` board should be built per core target, using either ``arduino_giga_r1/stm32h747xx/m7`` or ``arduino_giga_r1/stm32h747xx/m4`` as the target. See :ref:`build_an_application` for more information about application builds. Flashing ======== This board can be flashed either using dfu-util, or with an external debugging probe, such as a J-Link or Black Magic Probe, connected to the on board MIPI-10 SWD port marked as "JTAG". .. note:: The board ships with a custom Arduino bootloader programmed in the first flash page that can be triggered by double clicking the ``RST`` button. This bootloader is USB-DFU compatible and supports programming both the internal and external flash and is the one used by ``west flash`` by default. The internal STM32 ROM bootloader can also be used by pressing ``RST`` while holding the ``BOOT0`` button, this also supports USB-DFU but can only program the internal flash and can overwrite the Arduino bootloader. More details can be found in the "Boot0" section of the `Arduino GIGA Cheat Sheet`_. First, connect the Arduino GIGA R1 board to your host computer using the USB port to prepare it for flashing. Double click the ``RST`` button to put the board into the Arduino Bootloader mode. Then build and flash your application. Here is an example for the :ref:`hello_world` application. .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: arduino_giga_r1/stm32h747xx/m7 :goals: build flash Run a serial host program to connect with your board: .. code-block:: console $ minicom -D /dev/ttyACM0 You should see the following message on the console: .. code-block:: console Hello World! arduino_giga_r1 Similarly, you can build and flash samples on the M4 target. Here is an example for the :zephyr:code-sample:`blinky` application on M4 core. .. zephyr-app-commands:: :zephyr-app: samples/basic/blinky :board: arduino_giga_r1/stm32h747xx/m4 :goals: build flash Debugging ========= Debugging is supported by using ``west debug`` with an external probe such as a J-Link or Black Magic Probe, connected to the on board MIPI-10 SWD port marked as "JTAG". For example:: west debug -r jlink .. _Arduino GIGA website: path_to_url .. _Arduino GIGA Cheat Sheet: path_to_url .. _STM32H747XI on www.st.com: path_to_url .. _STM32H747xx reference manual: path_to_url .. _STM32H747xx datasheet: path_to_url .. _dfu-util: path_to_url ```
/content/code_sandbox/boards/arduino/giga_r1/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,498
```unknown config BOARD_ARDUINO_ZERO select SOC_SAMD21G18A ```
/content/code_sandbox/boards/arduino/zero/Kconfig.arduino_zero
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
19
```unknown CONFIG_SOC_ATMEL_SAMD_XOSC32K=y CONFIG_SOC_ATMEL_SAMD_XOSC32K_AS_MAIN=y CONFIG_BUILD_OUTPUT_HEX=y CONFIG_CONSOLE=y CONFIG_SERIAL=y CONFIG_UART_CONSOLE=y CONFIG_UART_INTERRUPT_DRIVEN=y ```
/content/code_sandbox/boards/arduino/zero/arduino_zero_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
56
```ini source [find interface/cmsis-dap.cfg] transport select swd # chip name set CHIPNAME at91samd21e18 set ENDIAN little set CPUTAPID 0x0bc11477 source [find target/at91samdXX.cfg] reset_config trst_and_srst separate $_TARGETNAME configure -event gdb-attach { echo "Debugger attaching: halting execution" reset halt gdb_breakpoint_override hard } $_TARGETNAME configure -event gdb-detach { echo "Debugger detaching: resuming execution" resume } ```
/content/code_sandbox/boards/arduino/zero/support/openocd.cfg
ini
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
123
```cmake board_runner_args(dfu-util "--pid=2341:035b" "--alt=0" "--dfuse") include(${ZEPHYR_BASE}/boards/common/dfu-util.board.cmake) ```
/content/code_sandbox/boards/arduino/portenta_h7/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
44
```yaml identifier: arduino_portenta_h7/stm32h747xx/m4 name: Arduino Portenta H7 (M4) type: mcu arch: arm toolchain: - zephyr - gnuarmemb - xtools ram: 288 flash: 1024 supported: - gpio testing: ignore_tags: - mpu - nfc - flash vendor: arduino ```
/content/code_sandbox/boards/arduino/portenta_h7/arduino_portenta_h7_stm32h747xx_m4.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
101
```unknown /* * */ /dts-v1/; #include <st/h7/stm32h747Xi_m4.dtsi> #include <st/h7/stm32h747xihx-pinctrl.dtsi> #include "arduino_portenta_h7-common.dtsi" / { model = "Arduino Portenta H7 board"; compatible = "arduino,portenta-h7"; /* HW resources are split between CM7 and CM4 */ chosen { zephyr,console = &usart1; zephyr,shell-uart = &usart1; zephyr,sram = &sram1; zephyr,flash = &flash1; }; }; &rcc { clock-frequency = <DT_FREQ_M(200)>; }; &usart1 { status = "disabled"; }; ```
/content/code_sandbox/boards/arduino/portenta_h7/arduino_portenta_h7_stm32h747xx_m4.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
174
```unknown # Arduino Portenta H7 board configuration config BOARD_ARDUINO_PORTENTA_H7 select SOC_STM32H747XX_M7 if BOARD_ARDUINO_PORTENTA_H7_STM32H747XX_M7 select SOC_STM32H747XX_M4 if BOARD_ARDUINO_PORTENTA_H7_STM32H747XX_M4 ```
/content/code_sandbox/boards/arduino/portenta_h7/Kconfig.arduino_portenta_h7
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
79
```unknown /** * */ &clk_lsi { status = "okay"; }; ```
/content/code_sandbox/boards/arduino/portenta_h7/arduino_portenta_h7_stm32h747xx_m7_1_0_0.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
15
```c /* * */ #include <zephyr/init.h> #include <zephyr/drivers/gpio.h> static int board_init(void) { /* Set led1 inactive since the Arduino bootloader leaves it active */ const struct gpio_dt_spec led1 = GPIO_DT_SPEC_GET(DT_ALIAS(led1), gpios); if (!gpio_is_ready_dt(&led1)) { return -ENODEV; } return gpio_pin_configure_dt(&led1, GPIO_OUTPUT_INACTIVE); } SYS_INIT(board_init, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE); ```
/content/code_sandbox/boards/arduino/portenta_h7/board.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
112
```yaml board: name: arduino_portenta_h7 vendor: arduino socs: - name: stm32h747xx revision: format: major.minor.patch default: 1.0.0 revisions: - name: 1.0.0 - name: 4.10.0 ```
/content/code_sandbox/boards/arduino/portenta_h7/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
79
```restructuredtext .. _arduino_zero: Arduino/Genuino Zero #################### Overview ******** The Arduino Zero is a maker-friendly development board with Atmels Embedded Debugger (EDBG), which provides a full debug interface without the need for additional hardware. .. image:: img/arduino_zero.jpg :align: center :alt: Arduino Zero Hardware ******** - ATSAMD21G18A ARM Cortex-M0+ processor at 48 MHz - 32.768 kHz crystal oscillator - 256 KiB flash memory and 32 KiB of RAM - 3 user LEDs - One reset button - On-board USB based EDBG unit with serial console - Native USB port Supported Features ================== The arduino_zero board configuration supports the following hardware features: +-----------+------------+------------------------------------------+ | Interface | Controller | Driver/Component | +===========+============+==========================================+ | NVIC | on-chip | nested vector interrupt controller | +-----------+------------+------------------------------------------+ | Flash | on-chip | Can be used with LittleFS to store files | +-----------+------------+------------------------------------------+ | SYSTICK | on-chip | systick | +-----------+------------+------------------------------------------+ | WDT | on-chip | Watchdog | +-----------+------------+------------------------------------------+ | GPIO | on-chip | I/O ports | +-----------+------------+------------------------------------------+ | PWM | on-chip | Pulse Width Modulation | +-----------+------------+------------------------------------------+ | USART | on-chip | Serial ports | +-----------+------------+------------------------------------------+ | SPI | on-chip | Serial Peripheral Interface ports | +-----------+------------+------------------------------------------+ | USB | on-chip | USB device | +-----------+------------+------------------------------------------+ | DAC | on-chip | Digital to analogue converter | +-----------+------------+------------------------------------------+ Other hardware features are not currently supported by Zephyr. The default configuration can be found in the Kconfig :zephyr_file:`boards/arduino/zero/arduino_zero_defconfig`. Connections and IOs =================== The `Arduino store`_ has detailed information about board connections. Download the `Arduino Zero Schematic`_ for more detail. System Clock ============ The SAMD21 MCU is configured to use the 32.768 kHz external oscillator with the on-chip PLL generating the 48 MHz system clock. The internal APB and GCLK unit are set up in the same way as the upstream Arduino libraries. Serial Port =========== The SAMD21 MCU has 6 SERCOM based USARTs. One of the USARTs (SERCOM5) is connected to the onboard Atmel Embedded Debugger (EDBG). SERCOM0 is available on the D0/D1 pins. PWM === The SAMD21 MCU has 3 TCC based PWM units with up to 4 outputs each and a period of 24 bits or 16 bits. If :code:`CONFIG_PWM_SAM0_TCC` is enabled then LED0 is driven by TCC2 instead of by GPIO. SPI Port ======== The SAMD21 MCU has 6 SERCOM based SPIs. On the Arduino Zero, SERCOM4 is available on the 6 pin connector at the edge of the board. USB Device Port =============== The SAMD21 MCU has a USB device port that can be used to communicate with a host PC. See the :ref:`usb-samples` sample applications for more, such as the :zephyr:code-sample:`usb-cdc-acm` sample which sets up a virtual serial port that echos characters back to the host PC. DAC === The SAMD21 MCU has a single channel DAC with 10 bits of resolution. On the Arduino Zero, the DAC is available on pin A0. Programming and Debugging ************************* The Arduino Zero comes with a Atmel Embedded Debugger (EDBG). This provides a debug interface to the SAMD21 chip and is supported by OpenOCD. Flashing ======== #. Build the Zephyr kernel and the :ref:`hello_world` sample application: .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: arduino_zero :goals: build :compact: #. Connect the Arduino Zero to your host computer using the USB debug port. #. Run your favorite terminal program to listen for output. Under Linux the terminal should be :code:`/dev/ttyACM0`. For example: .. code-block:: console $ minicom -D /dev/ttyACM0 -o The -o option tells minicom not to send the modem initialization string. Connection should be configured as follows: - Speed: 115200 - Data: 8 bits - Parity: None - Stop bits: 1 #. To flash an image: .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: arduino_zero :goals: flash :compact: You should see "Hello World! arduino_zero" in your terminal. References ********** .. target-notes:: .. _Arduino Store: path_to_url .. _Arduino Zero Schematic: path_to_url ```
/content/code_sandbox/boards/arduino/zero/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,166
```unknown # Enable GPIO CONFIG_GPIO=y # Clock configuration CONFIG_CLOCK_CONTROL=y # Enable MPU CONFIG_ARM_MPU=y # Enable HW stack protection CONFIG_HW_STACK_PROTECTION=y # Enable pin controller CONFIG_PINCTRL=y # Enable uart driver # CONFIG_SERIAL=y # By default CONSOLE is assigned to m7 # CONFIG_CONSOLE=y # CONFIG_UART_CONSOLE=y ```
/content/code_sandbox/boards/arduino/portenta_h7/arduino_portenta_h7_stm32h747xx_m4_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
84
```unknown if BOARD_ARDUINO_PORTENTA_H7 if NETWORKING config NET_L2_ETHERNET default y endif # NETWORKING if USB_DEVICE_STACK config USB_DEVICE_PRODUCT default "Arduino SA Portenta H7" config USB_DEVICE_PID default 0x035b config USB_DEVICE_VID default 0x2341 config USB_DEVICE_INITIALIZE_AT_BOOT default y if LOG # Logger cannot use itself to log choice USB_CDC_ACM_LOG_LEVEL_CHOICE default USB_CDC_ACM_LOG_LEVEL_OFF endchoice # Set USB log level to error only choice USB_DEVICE_LOG_LEVEL_CHOICE default USB_DEVICE_LOG_LEVEL_ERR endchoice endif # LOG endif # USB_DEVICE_STACK endif # BOARD_ARDUINO_PORTENTA_H7 ```
/content/code_sandbox/boards/arduino/portenta_h7/Kconfig.defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
172
```unknown /** * */ &clk_lse { clock-frequency = <32768>; status = "okay"; }; ```
/content/code_sandbox/boards/arduino/portenta_h7/arduino_portenta_h7_stm32h747xx_m7_4_10_0.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
22
```unknown /* * */ /dts-v1/; #include <st/h7/stm32h747Xi_m7.dtsi> #include <st/h7/stm32h747xihx-pinctrl.dtsi> #include "arduino_portenta_h7-common.dtsi" / { model = "Arduino Portenta H7 board"; compatible = "arduino,portenta-h7"; /* HW resources are split between CM7 and CM4 */ chosen { zephyr,console = &cdc_acm_uart0; zephyr,shell-uart = &cdc_acm_uart0; zephyr,cdc-acm-uart0 = &cdc_acm_uart0; zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; }; oscen: oscen { compatible = "regulator-fixed"; regulator-name = "oscen"; enable-gpios = <&gpioh 1 GPIO_ACTIVE_HIGH>; regulator-boot-on; status = "okay"; }; ethernet_phy_en: ethernet_phy_en { compatible = "regulator-fixed"; regulator-name = "ethernet-phy-reset-release"; enable-gpios = <&gpioj 15 GPIO_ACTIVE_HIGH>; regulator-boot-on; status = "okay"; }; sdram1: sdram@c0000000 { compatible = "zephyr,memory-region", "mmio-sram"; device_type = "memory"; reg = <0xc0000000 DT_SIZE_M(8)>; zephyr,memory-region = "SDRAM1"; zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_RAM) )>; }; }; &clk_hse { clock-frequency = <DT_FREQ_M(25)>; hse-bypass; status = "okay"; }; &clk_hsi { hsi-div = <1>; status = "okay"; }; &pll { div-m = <5>; mul-n = <160>; div-p = <2>; div-q = <10>; div-r = <2>; clocks = <&clk_hse>; status = "okay"; }; /** The power supply for the Portenta H7 is based on a ST PSU reference design. * The design specification from this reference design limits the maximum * clock speed to 400 MHz. * Refer: section 8.1 of the reference design guide. */ &rcc { clocks = <&pll>; clock-frequency = <DT_FREQ_M(400)>; }; &usart1 { status = "okay"; }; &i2c1 { status = "okay"; }; /* Only one should be enabled */ &usbotg_fs { status = "disabled"; }; &usbotg_hs { status = "okay"; }; &cdc_acm_uart0 { status = "okay"; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x00000000 0x00010000>; read-only; }; /* * The flash starting at 0x00010000 and ending at * 0x0001ffff (sectors 16-31) is reserved for use * by the application. */ scratch_partition: partition@10000 { label = "image-scratch"; reg = <0x00010000 0x00030000>; }; /* The arduino default bootloader occupies the address space 0x0 - 0x40000. * This way regardless of the user's choice to use the mcuboot bootloader, * applications will be located at 0x40000 which will be loaded by the * arduino bootloader. */ slot0_partition: partition@40000 { label = "image-0"; reg = <0x00040000 0x00060000>; }; slot1_partition: partition@A0000 { label = "image-1"; reg = <0x000A0000 0x00060000>; }; }; }; ```
/content/code_sandbox/boards/arduino/portenta_h7/arduino_portenta_h7_stm32h747xx_m7.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
939
```unknown # Enable the internal SMPS regulator CONFIG_POWER_SUPPLY_DIRECT_SMPS=y # Enable GPIO CONFIG_GPIO=y # Enable clocks CONFIG_CLOCK_CONTROL=y # Enable MPU CONFIG_ARM_MPU=y # Enable HW stack protection CONFIG_HW_STACK_PROTECTION=y # enable pin controller CONFIG_PINCTRL=y # Use zephyr,code-partition as flash offset CONFIG_USE_DT_CODE_PARTITION=y # Disable following to assign serial ports to m4 core # Enable uart driver CONFIG_SERIAL=y # Enable console CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y CONFIG_UART_LINE_CTRL=y # Enable regulator CONFIG_REGULATOR=y CONFIG_REGULATOR_FIXED=y # Enable USB Stack CONFIG_USB_DEVICE_STACK=y ```
/content/code_sandbox/boards/arduino/portenta_h7/arduino_portenta_h7_stm32h747xx_m7_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
154
```yaml identifier: arduino_portenta_h7/stm32h747xx/m7 name: Arduino Portenta H7 (M7) type: mcu arch: arm toolchain: - zephyr - gnuarmemb - xtools ram: 512 flash: 1024 supported: - gpio vendor: arduino ```
/content/code_sandbox/boards/arduino/portenta_h7/arduino_portenta_h7_stm32h747xx_m7.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
81
```unknown /* * */ #include <mem.h> / { leds { compatible = "gpio-leds"; red_led: led_0 { gpios = <&gpiok 5 GPIO_ACTIVE_LOW>; }; green_led: led_1 { gpios = <&gpiok 6 GPIO_ACTIVE_LOW>; }; blue_led: led_2 { gpios = <&gpiok 7 GPIO_ACTIVE_LOW>; }; }; otghs_ulpi_phy: otghs_ulpis_phy { compatible = "usb-ulpi-phy"; reset-gpios = < &gpioj 4 GPIO_ACTIVE_LOW >; #phy-cells = <0>; }; aliases { led0 = &red_led; led1 = &green_led; led2 = &blue_led; }; }; &clk_hsi48 { /* HSI48 required for USB */ status = "okay"; }; &rcc { d1cpre = < 1 >; hpre = < 2 >; d1ppre = < 2 >; d2ppre1 = < 2 >; d2ppre2 = < 2 >; d3ppre = < 2 >; }; /* UART0 in datasheet */ &uart4 { pinctrl-0 = <&uart4_tx_pa0 &uart4_rx_pi9>; pinctrl-names = "default"; current-speed = <115200>; }; /* UART1 in datasheet */ &usart1 { pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>; pinctrl-names = "default"; current-speed = <115200>; }; /* UART2 in datasheet */ &usart6 { pinctrl-0 = <&usart6_tx_pg14 &usart6_rx_pg9>; pinctrl-names = "default"; current-speed = <115200>; }; /* UART3 in datasheet */ &uart8 { pinctrl-0 = <&uart8_tx_pj8 &uart8_rx_pj9>; pinctrl-names = "default"; current-speed = <115200>; }; /* I2C0 in datasheet */ &i2c3 { pinctrl-0 = <&i2c3_scl_ph7 &i2c3_sda_ph8>; pinctrl-names = "default"; clock-frequency = <I2C_BITRATE_FAST>; }; /* I2C1 in datasheet */ &i2c1 { pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>; pinctrl-names = "default"; clock-frequency = <I2C_BITRATE_FAST>; }; /* I2C2 in datasheet */ &i2c4 { pinctrl-0 = <&i2c4_scl_ph11 &i2c4_sda_ph12>; pinctrl-names = "default"; clock-frequency = <I2C_BITRATE_FAST>; }; /* I2C3 in datasheet */ &i2c3 { pinctrl-0 = <&i2c3_scl_ph7 &i2c3_sda_ph8>; pinctrl-names = "default"; clock-frequency = <I2C_BITRATE_FAST>; }; /* SPI1 in datasheet */ &spi2 { pinctrl-0 = <&spi2_nss_pi0 &spi2_sck_pi1 &spi2_miso_pc2 &spi2_mosi_pc3>; pinctrl-names = "default"; }; &fdcan1 { pinctrl-0 = <&fdcan1_rx_pb8 &fdcan1_tx_ph13>; pinctrl-names = "default"; clocks = <&rcc STM32_CLOCK_BUS_APB1_2 0x00000100>, <&rcc STM32_SRC_PLL1_Q FDCAN_SEL(1)>; }; &rtc { status = "okay"; }; &mailbox { status = "okay"; }; &fmc { status = "okay"; pinctrl-0 = < &fmc_d2_pd0 &fmc_d3_pd1 &fmc_d13_pd8 &fmc_d14_pd9 &fmc_d15_pd10 &fmc_d0_pd14 &fmc_d1_pd15 &fmc_nbl0_pe0 &fmc_nbl1_pe1 &fmc_d4_pe7 &fmc_d5_pe8 &fmc_d6_pe9 &fmc_d7_pe10 &fmc_d8_pe11 &fmc_d9_pe12 &fmc_d10_pe13 &fmc_d11_pe14 &fmc_d12_pe15 &fmc_a0_pf0 &fmc_a1_pf1 &fmc_a2_pf2 &fmc_a3_pf3 &fmc_a4_pf4 &fmc_a5_pf5 &fmc_sdnras_pf11 &fmc_a6_pf12 &fmc_a7_pf13 &fmc_a8_pf14 &fmc_a9_pf15 &fmc_a10_pg0 &fmc_a11_pg1 &fmc_a12_pg2 &fmc_a14_pg4 /* FMC_BA0 */ &fmc_a15_pg5 /* FMC_BA1 */ &fmc_sdclk_pg8 &fmc_sdncas_pg15 &fmc_sdcke0_ph2 &fmc_sdne0_ph3 &fmc_sdnwe_ph5 >; pinctrl-names = "default"; st,mem-swap = "disable"; sdram { status = "okay"; mode-register = < 0x220 >; /** From Arduino github repository: * RefreshRate = 64 ms / 8192 cyc = 7.8125 us/cyc * RefreshCycles = 7.8125 us * 90 MHz = 703 * According to the formula on p.1665 of the reference manual, * we also need to subtract 20 from the value, so the target * refresh rate is 703 - 20 = 683. */ refresh-rate = < 683 >; num-auto-refresh = < 8 >; bank@0 { reg = < 0 >; st,sdram-control = < STM32_FMC_SDRAM_NC_8 STM32_FMC_SDRAM_NR_12 STM32_FMC_SDRAM_MWID_16 STM32_FMC_SDRAM_NB_4 STM32_FMC_SDRAM_CAS_2 STM32_FMC_SDRAM_SDCLK_PERIOD_2 STM32_FMC_SDRAM_RBURST_ENABLE STM32_FMC_SDRAM_RPIPE_0 >; st,sdram-timing = < 2 7 5 7 2 3 3 >; }; }; }; &quadspi { pinctrl-0 = < &quadspi_bk1_io0_pd11 &quadspi_bk1_io1_pd12 &quadspi_bk1_io2_pf7 &quadspi_bk1_io3_pd13 &quadspi_bk1_ncs_pg6 &quadspi_clk_pf10 >; pinctrl-names = "default"; status = "okay"; mx25l12833f: qspi-nor-flash@90000000 { compatible = "st,stm32-qspi-nor"; reg = < 0x90000000 DT_SIZE_M(16) >; /* 128 MBits */ qspi-max-frequency = < 40000000 >; sfdp-bfp = [ e5 20 f1 ff ff ff ff 07 44 eb 08 6b 08 3b 04 bb fe ff ff ff ff ff 00 ff ff ff 44 eb 0c 20 0f 52 10 d8 00 ff 82 41 bd 00 81 e5 7b c6 44 03 67 38 30 b0 30 b0 f7 bd d5 5c 4a be 29 ff e1 d0 ff ff ]; jedec-id = [ 66 66 20 ]; spi-bus-width = <4>; status = "okay"; partitions { compatible = "fixed-partitions"; #address-cells = < 1 >; #size-cells = < 1 >; storage_partition: partition@0 { label = "storage"; reg=< 0x0 DT_SIZE_K(15872) >; }; wifi_firmware: partition@f80000 { label = "wifi-firmware"; reg = < 0xf80000 DT_SIZE_K(512) >; }; }; }; }; &mac { pinctrl-0 = < &eth_ref_clk_pa1 &eth_mdio_pa2 &eth_crs_dv_pa7 &eth_mdc_pc1 &eth_rxd0_pc4 &eth_rxd1_pc5 &eth_tx_en_pg11 &eth_txd1_pg12 &eth_txd0_pg13 >; pinctrl-names = "default"; }; zephyr_udc0: &usbotg_hs { pinctrl-0 = < &usb_otg_hs_ulpi_d0_pa3 &usb_otg_hs_ulpi_ck_pa5 &usb_otg_hs_ulpi_d1_pb0 &usb_otg_hs_ulpi_d2_pb1 &usb_otg_hs_ulpi_d7_pb5 &usb_otg_hs_ulpi_d3_pb10 &usb_otg_hs_ulpi_d4_pb11 &usb_otg_hs_ulpi_d5_pb12 &usb_otg_hs_ulpi_d6_pb13 &usb_otg_hs_ulpi_stp_pc0 &usb_otg_hs_ulpi_nxt_ph4 &usb_otg_hs_ulpi_dir_pi11 >; pinctrl-names = "default"; phys = < &otghs_ulpi_phy >; maximum-speed = "high-speed"; /* Include the USB1ULPIEN | USB1OTGHSULPIEN clock enable bit */ clocks = <&rcc STM32_CLOCK_BUS_AHB1 0x6000000>, <&rcc STM32_SRC_HSI48 USB_SEL(3)>; num-bidir-endpoints = < 4 >; status = "okay"; cdc_acm_uart0: cdc_acm_uart0 { compatible = "zephyr,cdc-acm-uart"; }; }; ```
/content/code_sandbox/boards/arduino/portenta_h7/arduino_portenta_h7-common.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,368
```unknown CONFIG_SOC_ATMEL_SAMD_OSC8M=y CONFIG_SOC_ATMEL_SAMD_OSC8M_AS_MAIN=y CONFIG_BOOTLOADER_BOSSA=y CONFIG_BOOTLOADER_BOSSA_ARDUINO=y CONFIG_CONSOLE=y CONFIG_SERIAL=y CONFIG_UART_CONSOLE=y CONFIG_UART_INTERRUPT_DRIVEN=y ```
/content/code_sandbox/boards/arduino/nano_33_iot/arduino_nano_33_iot_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
72
```cmake include(${ZEPHYR_BASE}/boards/common/bossac.board.cmake) ```
/content/code_sandbox/boards/arduino/nano_33_iot/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
19
```restructuredtext .. _arduino_portenta_h7_board: Arduino Portenta H7 ################### Overview ******** The Portenta H7 enables a wide diversity of applications taking benefit from Computer Vision, PLCs, Robotics controller, High-end industrial machinery and high-speed booting computation (ms). The board includes an STM32H747XI SoC with a high-performance DSP, Arm Cortex-M7 + Cortex-M4 MCU, with 2MBytes of Flash memory, 1MB RAM, 480 MHz CPU, Art Accelerator, L1 cache, external memory interface, large set of peripherals, SMPS, and MIPI-DSI. Additionally, the board features: - USB OTG FS - 3 color user LEDs .. image:: img/arduino_portenta_h7.jpeg :width: 500px :align: center :height: 325px :alt: ARDUINO_PORTENTA_H7 More information about the board can be found at the `ARDUINO_PORTENTA_H7 website`_. More information about STM32H747XIH6 can be found here: - `STM32H747XI on www.st.com`_ - `STM32H747xx reference manual`_ - `STM32H747xx datasheet`_ Supported Features ================== The current Zephyr arduino_portenta_h7 board configuration supports the following hardware features: +-----------+------------+-------------------------------------+ | Interface | Controller | Driver/Component | +===========+============+=====================================+ | NVIC | on-chip | nested vector interrupt controller | +-----------+------------+-------------------------------------+ | UART | on-chip | serial port-polling; | | | | serial port-interrupt | +-----------+------------+-------------------------------------+ | PINMUX | on-chip | pinmux | +-----------+------------+-------------------------------------+ | GPIO | on-chip | gpio | +-----------+------------+-------------------------------------+ | FLASH | on-chip | flash memory | +-----------+------------+-------------------------------------+ | RNG | on-chip | True Random number generator | +-----------+------------+-------------------------------------+ | SPI | on-chip | spi | +-----------+------------+-------------------------------------+ | IPM | on-chip | virtual mailbox based on HSEM | +-----------+------------+-------------------------------------+ | EXTFLASH | on-chip | qspi | +-----------+------------+-------------------------------------+ | SDRAM | on-chip | sdram | +-----------+------------+-------------------------------------+ | USB | on-board | usb-hs | +-----------+------------+-------------------------------------+ | ETHERNET | on-board | eth | +-----------+------------+-------------------------------------+ Other hardware features are not yet supported on Zephyr porting. The high precision low speed external (LSE) clock is only fully supported on boards with hardware revision 4.10 or greater. By default the internal source is used; to enable the use of the external oscillator, manually specify the hardware revision at build time (see :ref:`application_board_version` for information on how to build for specific revisions of the board). Resources sharing ================= The dual core nature of STM32H747 SoC requires sharing HW resources between the two cores. This is done in 3 ways: - **Compilation**: Clock configuration is only accessible to M7 core. M4 core only has access to bus clock activation and deactivation. - **Static pre-compilation assignment**: Peripherals such as a UART are assigned in devicetree before compilation. The user must ensure peripherals are not assigned to both cores at the same time. - **Run time protection**: Interrupt-controller and GPIO configurations could be accessed by both cores at run time. Accesses are protected by a hardware semaphore to avoid potential concurrent access issues. Building and Flashing ************************* Applications for the ``arduino_portenta_h7`` board should be built per core target, using either ``arduino_portenta_h7_m7`` or ``arduino_portenta_h7_m4`` as the target. See :ref:`build_an_application` for more information about application builds. Flashing ======== Installing dfu-util ------------------- This board requires dfu-utils for flashing. It is recommended to use at least v0.8 of `dfu-util`_. The package available in debian/ubuntu can be quite old, so you might have to build dfu-util from source. Flashing an application to STM32H747I M7 Core --------------------------------------------- First, connect the Arduino Portenta H7 board to your host computer using the USB port to prepare it for flashing. Double tap the button to put the board into the Arduino Bootloader mode. Then build and flash your application. Here is an example for the :ref:`hello_world` application. .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: arduino_portenta_h7/stm32h747xx/m7 :goals: build flash Run a serial host program to connect with your board: .. code-block:: console $ minicom -D /dev/ttyACM0 You should see the following message on the console: .. code-block:: console Hello World! arduino_portenta_h7 Similarly, you can build and flash samples on the M4 target. For this, please take care of the resource sharing (UART port used for console for instance). Here is an example for the :zephyr:code-sample:`blinky` application on M4 core. .. zephyr-app-commands:: :zephyr-app: samples/basic/blinky :board: arduino_portenta_h7/stm32h747xx/m4 :goals: build flash .. _ARDUINO_PORTENTA_H7 website: path_to_url .. _STM32H747XI on www.st.com: path_to_url .. _STM32H747xx reference manual: path_to_url .. _STM32H747xx datasheet: path_to_url .. _dfu-util: path_to_url ```
/content/code_sandbox/boards/arduino/portenta_h7/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,326
```yaml identifier: arduino_nano_33_iot name: Arduino Nano 33 IOT type: mcu arch: arm ram: 32 flash: 256 toolchain: - zephyr - gnuarmemb - xtools supported: - adc - counter - dma - gpio - hwinfo - pwm - spi - uart - usb_device - watchdog vendor: arduino ```
/content/code_sandbox/boards/arduino/nano_33_iot/arduino_nano_33_iot.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
110
```unknown /* */ #include <dt-bindings/pinctrl/samd21-da1gXabcd-pinctrl.h> &pinctrl { pwm_default: pwm_default { group1 { pinmux = <PA17E_TCC2_WO1>; }; }; sercom4_i2c_default: sercom4_i2c_default { group1 { pinmux = <PB8D_SERCOM4_PAD0>, <PB9D_SERCOM4_PAD1>; }; }; sercom1_spi_default: sercom1_spi_default { group1 { pinmux = <PA16C_SERCOM1_PAD0>, <PA17C_SERCOM1_PAD1>, <PA19C_SERCOM1_PAD3>; }; }; sercom2_spi_default: sercom2_spi_default { group1 { pinmux = <PA12C_SERCOM2_PAD0>, <PA13C_SERCOM2_PAD1>, <PA15C_SERCOM2_PAD3>; }; }; sercom3_uart_default: sercom3_uart_default { group1 { pinmux = <PA23C_SERCOM3_PAD1>, <PA22C_SERCOM3_PAD0>; }; }; sercom5_uart_default: sercom5_uart_default { group1 { pinmux = <PB23D_SERCOM5_PAD3>, <PB22D_SERCOM5_PAD2>; }; }; usb_dc_default: usb_dc_default { group1 { pinmux = <PA25G_USB_DP>, <PA24G_USB_DM>; }; }; }; ```
/content/code_sandbox/boards/arduino/nano_33_iot/arduino_nano_33_iot-pinctrl.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
365
```cmake # SPI is implemented via sercom so node name isn't spi@... list(APPEND EXTRA_DTC_FLAGS "-Wno-spi_bus_bridge") # Suppress "unique_unit_address_if_enabled" to handle the following overlaps: # - /soc/pinmux@41004400 & /soc/gpio@41004400 # - /soc/pinmux@41004480 & /soc/gpio@41004480 list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled") ```
/content/code_sandbox/boards/arduino/nano_33_iot/pre_dt_board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
104
```unknown /* * */ /dts-v1/; #include <atmel/samd21.dtsi> #include <atmel/samx2xx18.dtsi> #include "arduino_nano_33_iot-pinctrl.dtsi" #include "arduino_nano_r3_connector.dtsi" / { model = "Arduino Nano 33 IOT"; compatible = "arduino,nano-33-iot"; chosen { zephyr,console = &sercom5; zephyr,shell-uart = &sercom5; zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &code_partition; }; leds { compatible = "gpio-leds"; led0: led_0 { gpios = <&porta 17 0>; label = "LED"; }; }; pwmleds { compatible = "pwm-leds"; pwm_led0: pwm_led_0 { pwms = <&tcc2 1 PWM_MSEC(20)>; }; }; aliases { led0 = &led0; pwm-led0 = &pwm_led0; }; }; &cpu0 { clock-frequency = <48000000>; }; &sercom1 { status = "okay"; compatible = "atmel,sam0-spi"; dipo = <0>; dopo = <1>; #address-cells = <1>; #size-cells = <0>; pinctrl-0 = <&sercom1_spi_default>; pinctrl-names = "default"; }; &sercom2 { status = "okay"; compatible = "atmel,sam0-spi"; dipo = <1>; dopo = <3>; #address-cells = <1>; #size-cells = <0>; pinctrl-0 = <&sercom2_spi_default>; pinctrl-names = "default"; cs-gpios = <&porta 14 GPIO_ACTIVE_LOW>; nina_w102@0 { compatible = "u-blox,nina"; reg = <0>; spi-max-frequency = <8000000>; ready-gpios = <&porta 28 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; reset-gpios = <&porta 8 GPIO_ACTIVE_LOW>; irq-gpios = <&porta 27 GPIO_PULL_DOWN>; }; }; &sercom3 { status = "okay"; compatible = "atmel,sam0-uart"; current-speed = <115200>; rxpo = <1>; txpo = <0>; pinctrl-0 = <&sercom3_uart_default>; pinctrl-names = "default"; nina_prog { compatible = "espressif,esp-at"; reset-gpios = <&porta 8 GPIO_ACTIVE_LOW>; }; }; &sercom4 { status = "okay"; compatible = "atmel,sam0-i2c"; clock-frequency = <I2C_BITRATE_FAST>; #address-cells = <1>; #size-cells = <0>; pinctrl-0 = <&sercom4_i2c_default>; pinctrl-names = "default"; lsm6ds3@6a { compatible = "st,lsm6ds3"; reg = <0x6a>; }; atecc608a@15 { compatible = "atmel,atecc608"; reg = <0x6a>; }; }; &sercom5 { status = "okay"; compatible = "atmel,sam0-uart"; current-speed = <115200>; rxpo = <3>; txpo = <1>; pinctrl-0 = <&sercom5_uart_default>; pinctrl-names = "default"; }; &tcc2 { status = "okay"; compatible = "atmel,sam0-tcc-pwm"; prescaler = <1024>; #pwm-cells = <2>; pinctrl-0 = <&pwm_default>; pinctrl-names = "default"; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "uf2"; reg = <0x00000000 0x2000>; read-only; }; code_partition: partition@2000 { label = "code"; reg = <0x2000 0x3A000>; read-only; }; /* * The final 16 KiB is reserved for the application. * Storage partition will be used by FCB/LittleFS/NVS * if enabled. */ storage_partition: partition@3c000 { label = "storage"; reg = <0x0003c000 0x00004000>; }; }; }; zephyr_udc0: &usb0 { status = "okay"; pinctrl-0 = <&usb_dc_default>; pinctrl-names = "default"; }; ```
/content/code_sandbox/boards/arduino/nano_33_iot/arduino_nano_33_iot.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,135
```unknown /* */ / { arduino_nano_header: connector { compatible = "arduino-nano-header-r3"; #gpio-cells = <2>; gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; gpio-map = <0 0 &portb 23 0>, /* D0 / UART-RX */ <1 0 &portb 22 0>, /* D1 / UART-TX */ <2 0 &portb 10 0>, /* D2 */ <3 0 &portb 11 0>, /* D3 */ <4 0 &porta 7 0>, /* D4 */ <5 0 &porta 5 0>, /* D5 */ <6 0 &porta 4 0>, /* D6 */ <7 0 &porta 6 0>, /* D7 */ <8 0 &porta 18 0>, /* D8 */ <9 0 &porta 20 0>, /* D9 */ <10 0 &porta 21 0>, /* D10 */ <11 0 &porta 16 0>, /* D11 / SPI-MOSI */ <12 0 &porta 19 0>, /* D12 / SPI-MISO */ <13 0 &porta 17 0>, /* D13 / SPI-SCK */ <14 0 &porta 2 0>, /* D14 / A0 */ <15 0 &portb 2 0>, /* D15 / A1 */ <16 0 &porta 11 0>, /* D16 / A2 */ <17 0 &porta 10 0>, /* D17 / A3 */ <18 0 &portb 8 0>, /* D18 / A4 / I2C-SDA */ <19 0 &portb 9 0>, /* D19 / A5 / I2C-SCL */ <20 0 &porta 9 0>, /* D20 / A6 */ <21 0 &portb 3 0>; /* D21 / A7 */ }; }; arduino_nano_i2c: &sercom4 {}; arduino_nano_spi: &sercom1 {}; arduino_nano_serial: &sercom5 {}; ```
/content/code_sandbox/boards/arduino/nano_33_iot/arduino_nano_r3_connector.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
550
```yaml board: name: arduino_nano_33_iot vendor: arduino socs: - name: samd21g18a ```
/content/code_sandbox/boards/arduino/nano_33_iot/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
36
```unknown config BOARD_ARDUINO_NANO_33_IOT select SOC_SAMD21G18A ```
/content/code_sandbox/boards/arduino/nano_33_iot/Kconfig.arduino_nano_33_iot
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
24
```cmake board_runner_args(dfu-util "--pid=2341:0364" "--alt=0" "--dfuse") include(${ZEPHYR_BASE}/boards/common/dfu-util.board.cmake) ```
/content/code_sandbox/boards/arduino/opta/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
44
```yaml identifier: arduino_opta/stm32h747xx/m4 name: ARDUINO OPTA (M4) type: mcu arch: arm toolchain: - zephyr - gnuarmemb - xtools ram: 288 flash: 512 supported: - gpio testing: ignore_tags: - mpu - nfc - net - flash - input - mcumgr vendor: arduino ```
/content/code_sandbox/boards/arduino/opta/arduino_opta_stm32h747xx_m4.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
112
```yaml board: name: arduino_opta vendor: arduino socs: - name: stm32h747xx ```
/content/code_sandbox/boards/arduino/opta/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
31
```unknown # enable GPIO CONFIG_GPIO=y # clock configuration CONFIG_CLOCK_CONTROL=y # Enable MPU CONFIG_ARM_MPU=y # Enable HW stack protection CONFIG_HW_STACK_PROTECTION=y # enable pin controller CONFIG_PINCTRL=y # Use zephyr,code-partition as flash offset CONFIG_USE_DT_CODE_PARTITION=y ```
/content/code_sandbox/boards/arduino/opta/arduino_opta_stm32h747xx_m4_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
72
```unknown /* * */ /dts-v1/; #include <st/h7/stm32h747Xi_m4.dtsi> #include <st/h7/stm32h747xihx-pinctrl.dtsi> #include <zephyr/dt-bindings/input/input-event-codes.h> / { model = "Arduino OPTA M4 core Programmable Logic Controller"; compatible = "arduino,opta-m4"; chosen { zephyr,sram = &sram1; zephyr,flash = &flash1; zephyr,code-partition = &slot0_partition; }; leds { compatible = "gpio-leds"; status_led_1: led_1 { gpios = <&gpioi 0 GPIO_ACTIVE_LOW>; }; status_led_2: led_2 { gpios = <&gpioi 1 GPIO_ACTIVE_LOW>; }; status_led_3: led_3 { gpios = <&gpioi 3 GPIO_ACTIVE_LOW>; }; status_led_4: led_4 { gpios = <&gpioh 15 GPIO_ACTIVE_LOW>; }; }; gpio_keys { compatible = "gpio-keys"; user_button: button { gpios = <&gpioe 4 GPIO_ACTIVE_HIGH>; zephyr,code = <INPUT_KEY_WAKEUP>; }; }; aliases { sw0 = &user_button; led0 = &status_led_1; }; }; &flash1 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; slot0_partition: partition@80000 { label = "image-0"; reg = <0x00080000 DT_SIZE_K(512)>; }; }; }; &rcc { d1cpre = <1>; hpre = <2>; d1ppre = <2>; d2ppre1 = <2>; d2ppre2 = <2>; d3ppre = <2>; clock-frequency = <DT_FREQ_M(240)>; }; ```
/content/code_sandbox/boards/arduino/opta/arduino_opta_stm32h747xx_m4.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
466
```unknown config BOARD_ARDUINO_OPTA select SOC_STM32H747XX_M4 ```
/content/code_sandbox/boards/arduino/opta/Kconfig.arduino_opta
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
22
```restructuredtext .. _arduino_nano_33_iot: Arduino Nano 33 IOT ################### Overview ******** The Arduino Nano 33 IOT is a small form factor development board with USB, Wifi, Bluetooth, a 6 axis IMU, and secure element. .. image:: img/nano_33_iot.jpg :align: center :alt: Arduino Nano 33 IOT Hardware ******** - ATSAMD21G18A ARM Cortex-M0+ processor at 48 MHz - 256 KiB flash memory and 32 KiB of RAM - One user LED - One reset button - Native USB port - Wifi and Bluetooth via a u-blox NINA-W102 - ATECC608A secure element - LSM6DS3 six axis accelerometer and gyro Supported Features ================== The arduino_nano_33_iot board configuration supports the following hardware features: +-----------+------------+------------------------------------------+ | Interface | Controller | Driver/Component | +===========+============+==========================================+ | ADC | on-chip | Analog to digital converter | +-----------+------------+------------------------------------------+ | COUNTER | on-chip | Pulse counter | +-----------+------------+------------------------------------------+ | DMA | on-chip | Direct memory access unit | +-----------+------------+------------------------------------------+ | Flash | on-chip | Can be used with LittleFS to store files | +-----------+------------+------------------------------------------+ | GPIO | on-chip | I/O ports | +-----------+------------+------------------------------------------+ | HWINFO | on-chip | Hardware info and serial number | +-----------+------------+------------------------------------------+ | NVIC | on-chip | nested vector interrupt controller | +-----------+------------+------------------------------------------+ | PWM | on-chip | Pulse Width Modulation | +-----------+------------+------------------------------------------+ | SPI | on-chip | Serial Peripheral Interface ports | +-----------+------------+------------------------------------------+ | SYSTICK | on-chip | systick | +-----------+------------+------------------------------------------+ | USART | on-chip | Serial ports | +-----------+------------+------------------------------------------+ | USB | on-chip | USB device | +-----------+------------+------------------------------------------+ | WDT | on-chip | Watchdog | +-----------+------------+------------------------------------------+ Other hardware features are not currently supported by Zephyr. The default configuration can be found in the Kconfig :zephyr_file:`boards/arduino/nano_33_iot/arduino_nano_33_iot_defconfig`. Connections and IOs =================== The `Arduino store`_ has detailed information about board connections. Download the `schematic`_ for more detail. System Clock ============ The SAMD21 MCU is configured to use the 8 MHz internal oscillator with the on-chip PLL generating the 48 MHz system clock. The internal APB and GCLK unit are set up in the same way as the upstream Arduino libraries. Serial Port =========== The SAMD21 MCU has 6 SERCOM based USARTs. SERCOM5 is available on pins 1 and 2. PWM === The SAMD21 MCU has 3 TCC based PWM units with up to 4 outputs each and a period of 24 bits or 16 bits. If :code:`CONFIG_PWM_SAM0_TCC` is enabled then LED0 is driven by TCC2 instead of by GPIO. SPI Port ======== The SAMD21 MCU has 6 SERCOM based SPIs. SERCOM1 is available on pins 1, 14, and 15. USB Device Port =============== The SAMD21 MCU has a USB device port that can be used to communicate with a host PC. See the :ref:`usb-samples` sample applications for more, such as the :zephyr:code-sample:`usb-cdc-acm` sample which sets up a virtual serial port that echos characters back to the host PC. Programming and Debugging ************************* The Nano 33 IOT ships the BOSSA compatible UF2 bootloader. The bootloader can be entered by quickly tapping the reset button twice. Additionally, if :code:`CONFIG_USB_CDC_ACM` is enabled then the bootloader will be entered automatically when you run :code:`west flash`. Flashing ======== #. Build the Zephyr kernel and the :ref:`hello_world` sample application: .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: arduino_nano_33_iot :goals: build :compact: #. Connect the Nano 33 IOT to your host computer using USB #. Connect a 3.3 V USB to serial adapter to the board and to the host. See the `Serial Port`_ section above for the board's pin connections. #. Run your favorite terminal program to listen for output. Under Linux the terminal should be :code:`/dev/ttyACM0`. For example: .. code-block:: console $ minicom -D /dev/ttyACM0 -o The -o option tells minicom not to send the modem initialization string. Connection should be configured as follows: - Speed: 115200 - Data: 8 bits - Parity: None - Stop bits: 1 #. Tap the reset button twice quickly to enter bootloader mode #. Flash the image: .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: arduino_nano_33_iot :goals: flash :compact: You should see "Hello World! arduino_nano_33_iot" in your terminal. References ********** .. target-notes:: .. _Arduino Store: path_to_url .. _schematic: path_to_url ```
/content/code_sandbox/boards/arduino/nano_33_iot/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,291
```restructuredtext .. _boards-infineon: Infineon Technologies ##################### .. toctree:: :maxdepth: 1 :glob: **/* ```
/content/code_sandbox/boards/infineon/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
36
```unknown /* */ /dts-v1/; #include <infineon/cat1a/mpns/CY8C6244LQI_S4D92.dtsi> / { model = "Infineon PSoC 62S4 Pioneer Kit"; compatible ="cypress,psoc6"; chosen { zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,console = &uart2; zephyr,shell-uart = &uart2; }; aliases { led0 = &user_led; }; leds { compatible = "gpio-leds"; user_led: led_0 { label = "LED_0"; gpios = <&gpio_prt2 5 GPIO_ACTIVE_HIGH>; }; }; arduino_header: connector { compatible = "arduino-header-r3"; #gpio-cells = <2>; gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; /* shared */ gpio-map = <0 0 &gpio_prt10 0 0>, /* A0 */ <1 0 &gpio_prt10 1 0>, /* A1 */ <2 0 &gpio_prt10 2 0>, /* A2 */ <3 0 &gpio_prt10 3 0>, /* A3 */ <4 0 &gpio_prt10 4 0>, /* A4 */ <5 0 &gpio_prt10 5 0>, /* A5 */ <6 0 &gpio_prt0 2 0>, /* D0-RX-5 */ <7 0 &gpio_prt0 3 0>, /* D1-TX-5 */ <8 0 &gpio_prt5 0 0>, /* D2-RTS-5 */ <9 0 &gpio_prt5 1 0>, /* D3-CTS-5 */ <10 0 &gpio_prt5 6 0>, /* D4 */ <11 0 &gpio_prt5 7 0>, /* D5 */ <12 0 &gpio_prt6 2 0>, /* D6 */ <13 0 &gpio_prt6 3 0>, /* D7 */ <14 0 &gpio_prt2 4 0>, /* D8-RX-6 */ <15 0 &gpio_prt2 6 0>, /* D9-TX-6 */ <16 0 &gpio_prt2 3 0>, /* D10 */ <17 0 &gpio_prt2 0 0>, /* D11 */ <18 0 &gpio_prt2 1 0>, /* D12 */ <19 0 &gpio_prt2 2 0>; /* D13 */ }; }; &p3_1_scb2_uart_tx { drive-push-pull; }; &p3_0_scb2_uart_rx { input-enable; }; uart2: &scb2 { compatible = "infineon,cat1-uart"; status = "okay"; current-speed = <115200>; pinctrl-0 = <&p3_0_scb2_uart_rx &p3_1_scb2_uart_tx>; pinctrl-names = "default"; }; &gpio_prt3 { status = "okay"; }; &gpio_prt2 { status = "okay"; }; uart0: &scb0 { compatible = "infineon,cat1-uart"; }; arduino_serial: &uart0 {}; ```
/content/code_sandbox/boards/infineon/cy8ckit_062s4/cy8ckit_062s4.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
854
```cmake board_runner_args(pyocd "--target=cy8c6xxa") include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake) ```
/content/code_sandbox/boards/infineon/cy8ckit_062s4/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
35
```yaml identifier: cy8ckit_062s4 name: CY8CKIT-062S4 PSoC 62S4 type: mcu arch: arm ram: 128 flash: 256 toolchain: - zephyr - gnuarmemb supported: - gpio vendor: infineon ```
/content/code_sandbox/boards/infineon/cy8ckit_062s4/cy8ckit_062s4.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
78
```restructuredtext .. _arduino_opta_m4_board: Arduino OPTA M4-Core #################### Overview ******** The Arduino Opta is a secure micro Programmable Logic Controller (PLC) with Industrial Internet of Things (IoT) capabilities. Developed in partnership with Finder, this device supports both the Arduino programming language and standard IEC-61131-3 PLC programming languages, such as Ladder Diagram (LD), Sequential Function Chart (SFC), Function Block Diagram (FBD), Structured Text (ST), and Instruction List (IL), making it an ideal device for automation engineers. For Zephyr RTOS, only the M4 is supported for now, making the M7 run the PLC tasks while the M4 core under Zephyr acts as a coprocessor. Additionally, the device features: - Ethernet compliant with IEEE802.3-2002 - 16MB QSPI Flash - 4 x green color status LEDs - 1 x user push-button - 1 x reset push-button accessible via pinhole - 8 x analog inputs - 4 x isolated relay outputs .. image:: img/arduino_opta.jpeg :align: center :alt: ARDUINO-OPTA More information about the board can be found at the `ARDUINO-OPTA website`_. More information about STM32H747XIH6 can be found here: - `STM32H747XI on www.st.com`_ - `STM32H747xx reference manual`_ - `STM32H747xx datasheet`_ Supported Features ================== The current Zephyr arduino_opta_m4 board configuration supports the following hardware features: +-----------+------------+-------------------------------------+ | Interface | Controller | Driver/Component | +===========+============+=====================================+ | NVIC | on-chip | nested vector interrupt controller | +-----------+------------+-------------------------------------+ | PINMUX | on-chip | pinmux | +-----------+------------+-------------------------------------+ | GPIO | on-chip | gpio | +-----------+------------+-------------------------------------+ | FLASH | on-chip | flash memory | +-----------+------------+-------------------------------------+ | RNG | on-chip | True Random number generator | +-----------+------------+-------------------------------------+ | IPM | on-chip | virtual mailbox based on HSEM | +-----------+------------+-------------------------------------+ Other hardware features are not yet supported on Zephyr porting. The default configuration per core can be found in the defconfig file: :zephyr_file:`boards/arduino/opta/arduino_opta_stm32h747xx_m4_defconfig` Pin Mapping =========== ARDUINO OPTA M4 has access to the 9 GPIO controllers. These controllers are responsible for pin muxing, input/output, pull-up, etc. For more details please refer to `ARDUINO-OPTA website`_. Default Zephyr Peripheral Mapping --------------------------------- - Status LED1 : PI0 - Status LED2 : PI1 - Status LED3 : PI3 - Status LED4 : PH15 - User button : PE4 System Clock ============ The STM32H747I System Clock can be driven by an internal or external oscillator, as well as by the main PLL clock. By default, the CPU2 (Cortex-M4) System clock is driven at 240MHz. PLL clock is fed by a 25MHz high speed external clock. Resources sharing ================= The dual core nature of STM32H747 SoC requires sharing HW resources between the two cores. This is done in 3 ways: - **Compilation**: Clock configuration is only accessible to M7 core. M4 core only has access to bus clock activation and deactivation. - **Static pre-compilation assignment**: Peripherals such as a UART are assigned in devicetree before compilation. The user must ensure peripherals are not assigned to both cores at the same time. - **Run time protection**: Interrupt-controller and GPIO configurations could be accessed by both cores at run time. Accesses are protected by a hardware semaphore to avoid potential concurrent access issues. Programming and Debugging ************************* Applications for the ``arduino_opta`` use the regular Zephyr build commands. See :ref:`build_an_application` for more information about application builds. Flashing ======== Flashing operation will depend on the target to be flashed and the SoC option bytes configuration. The OPTA has a DFU capable bootloader which can be accessed by connecting the device to the USB, and then pressing the RESET button shortly twice, the RESET-LED on the board will fade indicating the board is in bootloader mode. By default: - CPU2 (Cortex-M4) boot address is set to 0x08180000 (OB: BOOT_CM4_ADD0) Zephyr flash configuration has been set to meet these default settings. Flashing an application to ARDUINO OPTA M4 ------------------------------------------ First, connect the device to your host computer using the USB port to prepare it for flashing. Then build and flash your application. Here is an example for the :zephyr:code-sample:`blinky` application on M4 core. .. zephyr-app-commands:: :zephyr-app: samples/basic/blinky :board: arduino_opta/stm32h747xx/m4 :goals: build flash Starting the application on the ARDUINO OPTA M4 ----------------------------------------------- Make sure the option bytes are set to prevent the M4 from auto-starting, and that the M7 side starts the M4 at the correct Flash address. This can be done by selecting in the Arduino IDE's "Tools" / "Flash Split" menu the "1.5MB M7 + 0.5MB M4" option, and loading a sketch that contains at least the following code: .. code-block:: cpp #include <RPC.h> void setup() { RPC.begin(); } void loop() { } Debugging ========= Debugging is not yet supported by this board, since the debug port does not have an easy access. .. _ARDUINO-OPTA website: path_to_url .. _STM32H747XI on www.st.com: path_to_url .. _STM32H747xx reference manual: path_to_url .. _STM32H747xx datasheet: path_to_url ```
/content/code_sandbox/boards/arduino/opta/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,383
```unknown config BOARD_CY8CKIT_062S4 select SOC_CY8C6244LQI_S4D92 ```
/content/code_sandbox/boards/infineon/cy8ckit_062s4/Kconfig.cy8ckit_062s4
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
28
```unknown CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y CONFIG_SERIAL=y CONFIG_PINCTRL=y CONFIG_BUILD_OUTPUT_HEX=y CONFIG_CORTEX_M_SYSTICK=y CONFIG_XIP=y CONFIG_SOC_PSOC6_CM0P_IMAGE_SLEEP=y ```
/content/code_sandbox/boards/infineon/cy8ckit_062s4/cy8ckit_062s4_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
52
```yaml board: name: cy8ckit_062s4 vendor: infineon socs: - name: cy8c6244lqi_s4d92 ```
/content/code_sandbox/boards/infineon/cy8ckit_062s4/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
42
```unknown # # # General configuration CONFIG_CORTEX_M_SYSTICK=y CONFIG_BUILD_OUTPUT_HEX=y CONFIG_BUILD_OUTPUT_BIN=y CONFIG_ARM_MPU=y CONFIG_HW_STACK_PROTECTION=y # Enable console CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y # Enable UART driver CONFIG_SERIAL=y # Enable pin controller CONFIG_PINCTRL=y # Enable GPIO driver CONFIG_GPIO=y # Enable clock controller CONFIG_CLOCK_CONTROL=y # Main Stack Size CONFIG_MAIN_STACK_SIZE=2048 # Enable code/data relocation to move SMIF driver into RAM CONFIG_CODE_DATA_RELOCATION=y ```
/content/code_sandbox/boards/infineon/cyw920829m2evk_02/cyw920829m2evk_02_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
125
```cmake include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) ```
/content/code_sandbox/boards/infineon/cyw920829m2evk_02/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
19
```yaml # # identifier: cyw920829m2evk_02 name: The Infineon AIROC CYW20829 Bluetooth LE evaluation kit (CYW92089M2EVK-02) type: mcu arch: arm ram: 1024 flash: 2048 toolchain: - zephyr - gnuarmemb supported: - gpio - uart - clock_control - bluetooth - watchdog - spi - i2c vendor: infineon ```
/content/code_sandbox/boards/infineon/cyw920829m2evk_02/cyw920829m2evk_02.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
120
```yaml board: name: cyw920829m2evk_02 vendor: infineon socs: - name: cyw20829b0lkml ```
/content/code_sandbox/boards/infineon/cyw920829m2evk_02/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
41
```restructuredtext .. _cy8ckit_062s4: [INFINEON PSoC 62S4 Pioneer Kit] ################################ Overview ******** The PSOC 62S4 Pioneer kit has a CY8C62x4 MCU, which is an ultra-low-power PSoC device specifically designed for battery-operated analog sensing applications. It includes a 150-MHz Arm Cortex-M4 CPU as the primary application processor, a 100-MHz Arm Cortex-M0+ CPU that supports low-power operations, up to 256 KB Flash and 128 KB SRAM, programmable analog sensing, CapSense touch-sensing, and programmable digital peripherals. The board features an onboard programmer/debugger (KitProg3), a 512-Mbit Quad SPI NOR flash, a micro-B connector for USB device interface, a thermistor, an ambient light sensor, a 5-segment CapSense slider, two CapSense buttons, two user LEDs, and a push button. The board supports operating voltages from 1.8 V to 3.3 V for PSoC 6 MCU. .. figure::img/cy8ckit_062s4.png :width: 800px :align: center :alt: Board Name Board Name (Credit: <owner>) Hardware ******** `CY8CKIT 062S4 Pioneer Kit Website`_ `CY8CKIT 062S4 Pioneer Kit Guide`_ `CY8CKIT 062S4 Pioneer Kit Schematic`_ `CY8CKIT 062S4 Pioneer Kit Technical Reference Manual`_ `CY8CKIT 062S4 Pioneer Kit Datasheet`_ Supported Features ================== The board configuration supports the following hardware features: +-----------+------------+-----------------------+ | Interface | Controller | Driver/Component | +===========+============+=======================+ | NVIC | on-chip | nested vectored | | | | interrupt controller | +-----------+------------+-----------------------+ | SYSTICK | on-chip | system clock | +-----------+------------+-----------------------+ | PINCTRL | on-chip | pin control | +-----------+------------+-----------------------+ | UART | on-chip | serial port-polling; | +-----------+------------+-----------------------+ The default configuration can be found in the Kconfig :zephyr_file:`boards/infineon/cy8ckit_062s4/cy8ckit_062s4_defconfig`. Clock Configuration =================== +-----------+------------+-----------------------+ | Clock | Source | Output Frequency | +===========+============+=======================+ | FLL | IMO | 100.0 MHz | +-----------+------------+-----------------------+ | PLL | IMO | 48.0 MHz | +-----------+------------+-----------------------+ | CLK_HF0 | CLK_PATH0 | 100.0 MHz | +-----------+------------+-----------------------+ Fetch Binary Blobs ================== .. code-block:: console west blobs fetch hal_infineon Build and flash hello world sample ********************************** .. code-block:: console cd zephyr/samples/hello_world west build -p auto -b cy8ckit_062s4 --pristine west flash picocom /dev/ttyACM0 -b 115200 OpenOCD Installation ==================== To get the OpenOCD package, it is required that you 1. Download the software ModusToolbox 3.1. path_to_url 2. Once downloaded add the path to access the Scripts folder provided by ModusToolbox export PATH=$PATH:/path/to/ModusToolbox/tools_3.1/openocd/scripts 3. Add the OpenOCD executable file's path to west flash/debug. 4. Flash using: west flash --openocd path/to/infineon/openocd/bin/openocd 5. Debug using: west debug --openocd path/to/infineon/openocd/bin/openocd References ********** .. _CY8CKIT 062S4 Pioneer Kit Guide: path_to_url .. _CY8CKIT 062S4 Pioneer Kit Website: path_to_url .. _CY8CKIT 062S4 Pioneer Kit Schematic: path_to_url .. _CY8CKIT 062S4 Pioneer Kit Technical Reference Manual: path_to_url .. _CY8CKIT 062S4 Pioneer Kit Datasheet: path_to_url ```
/content/code_sandbox/boards/infineon/cy8ckit_062s4/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
989
```unknown /* */ /* Configure pin control bias mode for uart2 pins */ &p3_3_scb2_uart_tx { drive-push-pull; }; &p3_2_scb2_uart_rx { input-enable; }; &p3_1_scb2_uart_rts { drive-push-pull; }; &p3_0_scb2_uart_cts { input-enable; }; ```
/content/code_sandbox/boards/infineon/cyw920829m2evk_02/cyw920829m2evk_02-pinctrl.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
78
```unknown /* */ #include <zephyr/dt-bindings/input/input-event-codes.h> / { aliases { led0 = &user_led0; led1 = &user_led1; sw0 = &user_bt0; sw1 = &user_bt1; }; leds { compatible = "gpio-leds"; user_led0: led_0 { label = "LED_0"; gpios = <&gpio_prt1 1 GPIO_ACTIVE_LOW>; }; user_led1: led_1 { label = "LED_1"; gpios = <&gpio_prt5 2 GPIO_ACTIVE_LOW>; }; }; gpio_keys { compatible = "gpio-keys"; user_bt0: user_btn0 { label = "SW_1"; gpios = <&gpio_prt0 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; zephyr,code = <INPUT_KEY_0>; }; user_bt1: user_btn1 { label = "SW_2"; gpios = <&gpio_prt1 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; zephyr,code = <INPUT_KEY_1>; }; }; }; &gpio_prt0 { status = "okay"; }; &gpio_prt1 { status = "okay"; }; &gpio_prt3 { status = "okay"; }; &gpio_prt5 { status = "okay"; }; ```
/content/code_sandbox/boards/infineon/cyw920829m2evk_02/cyw920829m2evk_02-common.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
323
```unknown # The Infineon AIROC CYW20829 Bluetooth LE evaluation kit (CYW92089M2EVK-02) choice AIROC_PART default CYW20829 if BT endchoice # Heap Pool Size config HEAP_MEM_POOL_ADD_SIZE_BOARD int default 10096 ```
/content/code_sandbox/boards/infineon/cyw920829m2evk_02/Kconfig.defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
64
```unknown /* */ /dts-v1/; #include <arm/infineon/cat1b/mpns/CYW20829B0LKML.dtsi> #include <arm/infineon/cat1b/cyw20829/system_clocks.dtsi> #include "cyw920829m2evk_02-common.dtsi" #include "cyw920829m2evk_02-pinctrl.dtsi" / { model = "The Infineon AIROC CYW20829 Bluetooth LE evaluation kit (CYW92089M2EVK-02)"; compatible = "infineon,cyw920829m2evk_02", "infineon,CYW20829"; aliases { watchdog0 = &watchdog0; }; chosen { zephyr,sram = &sram0; zephyr,flash = &app_region; zephyr,console = &uart2; zephyr,shell-uart = &uart2; zephyr,bt-hci = &bluetooth; }; }; &nvic { arm,num-irq-priority-bits = <3>; }; uart2: &scb2 { compatible = "infineon,cat1-uart"; status = "okay"; current-speed = <115200>; hw-flow-control; pinctrl-0 = <&p3_3_scb2_uart_tx &p3_2_scb2_uart_rx &p3_1_scb2_uart_rts &p3_0_scb2_uart_cts>; pinctrl-names = "default"; }; &fll0 { status = "okay"; }; &path_mux0 { status = "okay"; }; &path_mux1 { status = "okay"; }; &path_mux2 { status = "okay"; }; &path_mux3 { status = "okay"; }; &clk_hf0 { status = "okay"; clocks = <&fll0>; }; &clk_hf1 { status = "okay"; }; &clk_hf2 { status = "okay"; }; &clk_hf3 { status = "okay"; }; &watchdog0 { status = "okay"; }; &bluetooth { status = "okay"; }; / { qspi_flash: qspi_flash@40890000 { compatible = "infineon,cat1-qspi-flash"; reg = <0x40890000 0x30000>; #address-cells = <1>; #size-cells = <1>; flash0: flash@60000000 { compatible = "soc-nv-flash"; reg = <0x60000000 DT_SIZE_K(512)>; write-block-size = <1>; erase-block-size = <DT_SIZE_K(4)>; #address-cells = <1>; #size-cells = <1>; toc2_region: toc2_region@60000000 { compatible = "zephyr,memory-region", "soc-nv-flash"; zephyr,memory-region = "APP_HEADER_FLASH"; reg = <0x60000000 0x50>; }; bootstrap_region: bootstrap_region@60000050 { compatible = "zephyr,memory-region", "soc-nv-flash"; zephyr,memory-region = "BOOTSTRAP_FLASH"; reg = <0x60000050 DT_SIZE_K(12)>; }; app_region: app_region@60003050 { compatible = "soc-nv-flash"; reg = <0x60003050 0x6CFB0>; /* 435kb */ }; partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; storage_partition: storage_partition@70000 { compatible = "soc-nv-flash"; reg = <0x60000 DT_SIZE_K(64)>; }; }; }; }; }; ```
/content/code_sandbox/boards/infineon/cyw920829m2evk_02/cyw920829m2evk_02.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
871
```unknown # The Infineon AIROC CYW20829 Bluetooth LE evaluation kit (CYW92089M2EVK-02) config BOARD_CYW920829M2EVK_02 select SOC_CYW20829B0LKML ```
/content/code_sandbox/boards/infineon/cyw920829m2evk_02/Kconfig.cyw920829m2evk_02
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
52
```ini # # source [find interface/kitprog3.cfg] transport select swd source [find target/cyw20829.cfg] if { [info exists _ZEPHYR_BOARD_SERIAL] } { adapter serial $_ZEPHYR_BOARD_SERIAL } ```
/content/code_sandbox/boards/infineon/cyw920829m2evk_02/support/openocd.cfg
ini
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
55
```ini ################################################################################ # File Name: qspi_config.cfg # # Description: # This file contains a SMIF Bank layout for use with OpenOCD. # This file was automatically generated and should not be modified. # QSPI Configurator: 4.22.0.1756 # ################################################################################ # an affiliate of Cypress Semiconductor Corporation. # # # path_to_url # # Unless required by applicable law or agreed to in writing, software # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ################################################################################ set SMIF_BANKS { 0 {addr 0x60000000 size 0x100000 psize 0x0000100 esize 0x0001000} } ```
/content/code_sandbox/boards/infineon/cyw920829m2evk_02/support/qspi_config.cfg
ini
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
149
```cmake # During gdb session, by default connect to CM4 core. board_runner_args(openocd "--gdb-init=disconnect") board_runner_args(openocd "--gdb-init=target extended-remote :3334") include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) board_runner_args(pyocd "--target=cy8c6xxa") include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake) ```
/content/code_sandbox/boards/infineon/cy8cproto_062_4343w/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
112
```unknown # # # General configuration CONFIG_CORTEX_M_SYSTICK=y CONFIG_BUILD_OUTPUT_HEX=y CONFIG_ARM_MPU=y CONFIG_HW_STACK_PROTECTION=y # Enable console CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y # Enable UART driver CONFIG_SERIAL=y # Enable pin controller CONFIG_PINCTRL=y # Enable GPIO driver CONFIG_GPIO=y # Enable clock controller CONFIG_CLOCK_CONTROL=y # Main Stack Size CONFIG_MAIN_STACK_SIZE=2048 ```
/content/code_sandbox/boards/infineon/cy8cproto_062_4343w/cy8cproto_062_4343w_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
99
```yaml # # identifier: cy8cproto_062_4343w name: CY8CPROTO-062-4343W PSoC 6 Wi-Fi BT Prototyping Kit type: mcu arch: arm ram: 1024 flash: 2048 toolchain: - zephyr - gnuarmemb supported: - adc - bluetooth - wifi - airoc - cyw4343w - counter - gpio - uart - i2c - thermistor - uart - timer vendor: infineon ```
/content/code_sandbox/boards/infineon/cy8cproto_062_4343w/cy8cproto_062_4343w.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
142
```restructuredtext .. _cyw920829m2evk_02: INFINEON CYW920829M2EVK-02 ############################ Overview ******** The AIROC CYW20829 Bluetooth LE MCU Evaluation Kit (CYW920829M2EVK-02) with its included on-board peripherals enables evaluation, prototyping, and development of a wide array of Bluetooth Low Energy applications, all on Infineon's low power, high performance AIROC CYW20829. The AIROC CYW20829's robust RF performance and 10 dBm TX output power without an external power amplifier (PA). This provides enough link budget for the entire spectrum of Bluetooth LE use cases including industrial IoT applications, smart home, asset tracking, beacons and sensors, and medical devices. The system features Dual Arm Cortex - M33s for powering the MCU and Bluetooth subsystem with programmable and reconfigurable analog and digital blocks. In addition, on the kit, there is a suite of on-board peripherals including six-axis inertial measurement unit (IMU), thermistor, analog mic, user programmable buttons (2), LEDs (2), and RGB LED. There is also extensive GPIO support with extended headers and Arduino Uno R3 compatibility for third-party shields. .. image:: img/cyw920829m2evk_02.webp :align: center :alt: CYW920829M2EVK_02 Hardware ******** For more information about the CYW20829 SoC and CYW920829M2EVK-02 board: - `CYW20829 SoC Website`_ - `CYW920829M2EVK-02 Board Website`_ Kit Features: ============= - AIROC CYW20829 Bluetooth LE MCU in 56 pin QFN package - Arduino compatible headers for hardware expansion - On-board sensors - 6-axis IMU, Thermistor, Infineon analog microphone, and Infineon digital microphone - User switches, RGB LED and user LEDs - USB connector for power, programming and USB-UART bridge Kit Contents: ============= - CYW20829 evaluation board (CYW9BTM2BASE3+CYW920829M2IPA2) - USB Type-A to Micro-B cable - Six jumper wires (five inches each) - Quick start guide Supported Features ================== The board configuration supports the following hardware features: +-----------+------------+-----------------------+ | Interface | Controller | Driver/Component | +===========+============+=======================+ | NVIC | on-chip | nested vectored | | | | interrupt controller | +-----------+------------+-----------------------+ | SYSTICK | on-chip | system clock | +-----------+------------+-----------------------+ | GPIO | on-chip | GPIO | +-----------+------------+-----------------------+ | UART | on-chip | serial port-polling; | | | | serial port-interrupt | +-----------+------------+-----------------------+ The default configuration can be found in the Kconfig :zephyr_file:`boards/infineon/cyw920829m2evk_02/cyw920829m2evk_02_defconfig` System Clock ============ The AIROC CYW20829 Bluetooth MCU SoC is configured to use the internal IMO+FLL as a source for the system clock. Other sources for the system clock are provided in the SOC, depending on your system requirements. Fetch Binary Blobs ****************** cyw920829m2evk_02 board requires fetch binary files (e.g Bluetooth controller firmware). To fetch Binary Blobs: .. code-block:: console west blobs fetch hal_infineon Build blinking led sample ************************* Here is an example for building the :zephyr:code-sample:`blinky` sample application. .. zephyr-app-commands:: :zephyr-app: samples/basic/blinky :board: cyw920829m2evk_02 :goals: build Programming and Debugging ************************* The CYW920829M2EVK-02 includes an onboard programmer/debugger (`KitProg3`_) to provide debugging, flash programming, and serial communication over USB. Flash and debug commands use OpenOCD and require a custom Infineon OpenOCD version, that supports KitProg3, to be installed. Infineon OpenOCD Installation ============================= Both the full `ModusToolbox`_ and the `ModusToolbox Programming Tools`_ packages include Infineon OpenOCD. Installing either of these packages will also install Infineon OpenOCD. If neither package is installed, a minimal installation can be done by downloading the `Infineon OpenOCD`_ release for your system and manually extract the files to a location of your choice. .. note:: Linux requires device access rights to be set up for KitProg3. This is handled automatically by the ModusToolbox and ModusToolbox Programming Tools installations. When doing a minimal installation, this can be done manually by executing the script ``openocd/udev_rules/install_rules.sh``. West Commands ============= The path to the installed Infineon OpenOCD executable must be available to the ``west`` tool commands. There are multiple ways of doing this. The example below uses a permanent CMake argument to set the CMake variable ``OPENOCD``. .. tabs:: .. group-tab:: Windows .. code-block:: shell # Run west config once to set permanent CMake argument west config build.cmake-args -- -DOPENOCD=path/to/infineon/openocd/bin/openocd.exe # Do a pristine build once after setting CMake argument west build -b cyw920829m2evk_02 -p always samples/basic/blinky west flash west debug .. group-tab:: Linux .. code-block:: shell # Run west config once to set permanent CMake argument west config build.cmake-args -- -DOPENOCD=path/to/infineon/openocd/bin/openocd # Do a pristine build once after setting CMake argument west build -b cyw920829m2evk_02 -p always samples/basic/blinky west flash west debug Once the gdb console starts after executing the west debug command, you may now set breakpoints and perform other standard GDB debugging on the CYW20829 CM33 core. .. _CYW20829 SoC Website: path_to_url .. _CYW920829M2EVK-02 Board Website: path_to_url .. _CYW920829M2EVK-02 BT User Guide: path_to_url#!?fileId=8ac78c8c8929aa4d018a16f726c46b26 .. _ModusToolbox: path_to_url .. _ModusToolbox Programming Tools: path_to_url .. _Infineon OpenOCD: path_to_url .. _KitProg3: path_to_url ```
/content/code_sandbox/boards/infineon/cyw920829m2evk_02/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,512
```unknown # CY8CPROTO-062-4343W PSoC 6 Wi-Fi BT Prototyping Kit config BOARD_CY8CPROTO_062_4343W select SOC_CY8C624ABZI_S2D44 ```
/content/code_sandbox/boards/infineon/cy8cproto_062_4343w/Kconfig.cy8cproto_062_4343w
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
51
```unknown /* */ /dts-v1/; #include <infineon/cat1a/mpns/CY8C624ABZI_S2D44.dtsi> #include <infineon/cat1a/system_clocks.dtsi> #include "cy8cproto_062_4343w-common.dtsi" #include "cy8cproto_062_4343w-pinctrl.dtsi" / { model = "cy8cproto_062_4343w with an Cypress PSoC 6 SoC"; compatible = "cypress,cy8cproto_062_4343w", "cypress,PSoC6"; aliases { uart-5 = &uart5; i2c-0 = &i2c3; watchdog0 = &watchdog0; sdhc0 = &sdhc0; }; chosen { zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,console = &uart5; zephyr,shell-uart = &uart5; zephyr,bt-hci = &bt_hci_uart; }; }; &counter0_0 { status = "okay"; }; uart5: &scb5 { compatible = "infineon,cat1-uart"; status = "okay"; current-speed = <115200>; pinctrl-0 = <&p5_1_scb5_uart_tx &p5_0_scb5_uart_rx>; pinctrl-names = "default"; }; uart2: &scb2 { compatible = "infineon,cat1-uart"; status = "okay"; /* The UART bus speed (current_speed) for zephyr_bt_uart should be the same * as the default baudrate defined in CYW43xx firmware (default 115200). */ current-speed = <115200>; /* HCI-UART pins */ pinctrl-0 = <&p3_1_scb2_uart_tx &p3_0_scb2_uart_rx &p3_2_scb2_uart_rts &p3_3_scb2_uart_cts>; pinctrl-names = "default"; /* HW Flow control must be enabled for HCI H4 */ hw-flow-control; bt_hci_uart: bt_hci_uart { compatible = "zephyr,bt-hci-uart"; murata-1dx { status = "okay"; compatible = "infineon,cyw43xxx-bt-hci"; bt-reg-on-gpios = <&gpio_prt3 4 (GPIO_ACTIVE_HIGH)>; /* Configuration UART speeds for firmware download (fw-download-speed) * and HCI operation (hci-operation-speed). * If hci-operation-speed or fw-download-speed are not defined in * bt-hci{...} node, cyw43xx driver will use bus/current-speed as * default speed. */ fw-download-speed = <3000000>; }; }; }; &sdhc0 { status = "okay"; /* SDIO pins */ pinctrl-0 = <&p2_4_sdio_cmd &p2_5_sdio_clk &p2_0_sdio_data0 &p2_1_sdio_data1 &p2_2_sdio_data2 &p2_3_sdio_data3>; pinctrl-names = "default"; /* Wi-Fi configuration */ airoc-wifi { status = "okay"; compatible = "infineon,airoc-wifi"; /* Wi-Fi control gpios */ wifi-reg-on-gpios = <&gpio_prt2 6 GPIO_ACTIVE_HIGH>; wifi-host-wake-gpios = <&gpio_prt0 4 GPIO_ACTIVE_HIGH>; }; }; /* System clock configuration */ &fll0 { status = "okay"; clock-frequency = <100000000>; }; &clk_hf0 { clock-div = <1>; clocks = <&fll0>; }; /* CM4 core clock = 100MHz * &fll clock-frequency / &clk_hf0 clock-div / &clk_fast clock-div = 100MHz / 1 / 1 = 100MHz */ &clk_fast { clock-div = <1>; }; /* CM0+ core clock = 50MHz * &fll clock-frequency / &clk_hf0 clock-div / &clk_slow clock-div = 100MHz / 1 / 2 = 50MHz */ &clk_slow { clock-div = <2>; }; /* PERI core clock = 100MHz * &fll clock-frequency / &clk_hf0 clock-div / &clk_peri clock-div = 100MHz / 1 / 1 = 100MHz */ &clk_peri { clock-div = <1>; }; i2c3: &scb3 { compatible = "infineon,cat1-i2c"; /* I2C pins */ pinctrl-0 = <&p6_0_scb3_i2c_scl &p6_1_scb3_i2c_sda>; pinctrl-names = "default"; }; &watchdog0 { status = "okay"; }; ```
/content/code_sandbox/boards/infineon/cy8cproto_062_4343w/cy8cproto_062_4343w.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,136
```yaml board: name: cy8cproto_062_4343w vendor: infineon socs: - name: cy8c624abzi_s2d44 ```
/content/code_sandbox/boards/infineon/cy8cproto_062_4343w/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
43
```unknown /* */ #include <zephyr/dt-bindings/input/input-event-codes.h> / { aliases { led0 = &user_led; sw0 = &user_bt; }; leds { compatible = "gpio-leds"; user_led: led_0 { label = "LED_0"; gpios = <&gpio_prt13 7 GPIO_ACTIVE_LOW>; }; }; gpio_keys { compatible = "gpio-keys"; user_bt: button_0 { label = "SW_0"; gpios = <&gpio_prt0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; zephyr,code = <INPUT_KEY_0>; }; }; }; &gpio_prt0 { status = "okay"; }; &gpio_prt2 { status = "okay"; }; &gpio_prt3 { status = "okay"; }; &gpio_prt5 { status = "okay"; }; &gpio_prt6 { status = "okay"; }; &gpio_prt9 { status = "okay"; }; &gpio_prt12 { status = "okay"; }; &gpio_prt13 { status = "okay"; }; ```
/content/code_sandbox/boards/infineon/cy8cproto_062_4343w/cy8cproto_062_4343w-common.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
257
```unknown # CY8CPROTO-062-4343W PSoC 6 Wi-Fi BT Prototyping Kit configuration if BOARD_CY8CPROTO_062_4343W if WIFI || BT # Select AIROC part and module choice AIROC_PART default CYW4343W endchoice choice CYW4343W_MODULE default CYW4343W_MURATA_1DX endchoice endif # WIFI || BT if WIFI config WIFI_AIROC default y # Enable L2 Ethernet config NET_L2_ETHERNET default y endif # WIFI if BT # Select HCI components config UART bool default y endif # BT # Heap Pool Size config HEAP_MEM_POOL_ADD_SIZE_BOARD int default 15000 if WIFI default 4096 endif # BOARD_CY8CPROTO_062_4343W ```
/content/code_sandbox/boards/infineon/cy8cproto_062_4343w/Kconfig.defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
191
```ini # # if {[info exists env(OPENOCD_INTERFACE)]} { set INTERFACE $env(OPENOCD_INTERFACE) } else { # By default connect over Debug USB port set INTERFACE "cmsis-dap" } source [find interface/$INTERFACE.cfg] transport select swd source [find target/psoc6_2m.cfg] ```
/content/code_sandbox/boards/infineon/cy8cproto_062_4343w/support/openocd.cfg
ini
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
76
```unknown /* */ /* Configure pin control bias mode for uart2 pins */ &p3_1_scb2_uart_tx { drive-push-pull; }; &p3_0_scb2_uart_rx { input-enable; }; &p3_2_scb2_uart_rts { drive-push-pull; }; &p3_3_scb2_uart_cts { input-enable; }; /* Configure pin control bias mode for uart5 pins */ &p5_1_scb5_uart_tx { drive-push-pull; }; &p5_0_scb5_uart_rx { input-enable; }; /* Configure pin control bias mode for i2c3 pins */ &p6_0_scb3_i2c_scl { drive-open-drain; input-enable; }; &p6_1_scb3_i2c_sda { drive-open-drain; input-enable; }; &pinctrl { /* Configure pin control bias mode for SDIO */ p2_5_sdio_clk: p2_5_sdio_clk { pinmux = <DT_CAT1_PINMUX(2, 5, HSIOM_SEL_ACT_14)>; drive-push-pull; input-enable; }; p2_4_sdio_cmd: p2_4_sdio_cmd { pinmux = <DT_CAT1_PINMUX(2, 4, HSIOM_SEL_ACT_14)>; drive-push-pull; input-enable; }; p2_0_sdio_data0: p2_0_sdio_data0 { pinmux = <DT_CAT1_PINMUX(2, 0, HSIOM_SEL_ACT_14)>; drive-push-pull; input-enable; }; p2_1_sdio_data1: p2_1_sdio_data1 { pinmux = <DT_CAT1_PINMUX(2, 1, HSIOM_SEL_ACT_14)>; drive-push-pull; input-enable; }; p2_2_sdio_data2: p2_2_sdio_data2 { pinmux = <DT_CAT1_PINMUX(2, 2, HSIOM_SEL_ACT_14)>; drive-push-pull; input-enable; }; p2_3_sdio_data3: p2_3_sdio_data3 { pinmux = <DT_CAT1_PINMUX(2, 3, HSIOM_SEL_ACT_14)>; drive-push-pull; input-enable; }; }; ```
/content/code_sandbox/boards/infineon/cy8cproto_062_4343w/cy8cproto_062_4343w-pinctrl.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
534
```cmake # board_set_debugger_ifnset(jlink) board_set_flasher_ifnset(jlink) board_runner_args(jlink "--device=XMC4700-2048") include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) ```
/content/code_sandbox/boards/infineon/xmc47_relax_kit/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
53
```restructuredtext .. _cy8cproto_062_4343w: INFINEON CY8CPROTO-062-4343W ############################ Overview ******** The CY8CPROTO-062-4343W PSoC 6 Wi-Fi BT Prototyping Kit is a low-cost hardware platform that enables design and debug of PSoC 6 MCUs. It comes with a Murata LBEE5KL1DX module, based on the CYW4343W combo device, industry-leading CAPSENSE for touch buttons and slider, on-board debugger/programmer with KitProg3, microSD card interface, 512-Mb Quad-SPI NOR flash, PDM-PCM microphone, and a thermistor. This kit is designed with a snap-away form-factor, allowing the user to separate the different components and features that come with this kit and use independently. In addition, support for Digilent's Pmod interface is also provided with this kit. .. image:: img/board.jpg :align: center :alt: CY8CPROTO-062-4343W Hardware ******** For more information about the PSoC 62 MCU SoC and CY8CPROTO-062-4343W board: - `PSoC 62 MCU SoC Website`_ - `PSoC 62 MCU Datasheet`_ - `PSoC 62 MCU Architecture Reference Manual`_ - `PSoC 62 MCU Register Reference Manual`_ - `CY8CPROTO-062-4343W PSoC 6 Wi-Fi BT Website`_ - `CY8CPROTO-062-4343W PSoC 6 Wi-Fi BT User Guide`_ - `CY8CPROTO-062-4343W PSoC 6 Wi-Fi BT Schematics`_ Kit Features: ============= - Support of up to 2MB Flash and 1MB SRAM - Dedicated SDHC to interface with WICED wireless devices. - Delivers dual-cores, with a 150-MHz Arm Cortex-M4 as the primary application processor and a 100-MHz Arm Cortex-M0+ as the secondary processor for low-power operations. - Supports Full-Speed USB, capacitive-sensing with CAPSENSE, a PDM-PCM digital microphone interface, a Quad-SPI interface, 13 serial communication blocks, 7 programmable analog blocks, and 56 programmable digital blocks. Kit Contents: ============= - PSoC 6 Wi-Fi BT Prototyping Board - USB Type-A to Micro-B cable - Quick Start Guide Supported Features ================== The board configuration supports the following hardware features: +-----------+------------+-----------------------+ | Interface | Controller | Driver/Component | +===========+============+=======================+ | NVIC | on-chip | nested vectored | | | | interrupt controller | +-----------+------------+-----------------------+ | SYSTICK | on-chip | system clock | +-----------+------------+-----------------------+ | GPIO | on-chip | GPIO | +-----------+------------+-----------------------+ | UART | on-chip | serial port-polling; | | | | serial port-interrupt | +-----------+------------+-----------------------+ The default configuration can be found in the Kconfig :zephyr_file:`boards/infineon/cy8cproto_062_4343w/cy8cproto_062_4343w_defconfig` System Clock ============ The PSoC 62 MCU SoC is configured to use the internal IMO+FLL as a source for the system clock. CM0+ works at 50MHz, CM4 - at 100MHz. Other sources for the system clock are provided in the SOC, depending on your system requirements. Fetch Binary Blobs ****************** cy8cproto_062_4343w board optionally uses binary blobs for features (e.g WIFI/Bluetooth chip firmware, CM0p prebuilt images, etc). To fetch Binary Blobs: .. code-block:: console west blobs fetch hal_infineon Build blinking led sample ************************* Here is an example for the :zephyr:code-sample:`blinky` application. .. code-block:: console cd zephyr west build -p auto -b cy8cproto_062_4343w samples/basic/blink OpenOCD Installation ==================== To get the OpenOCD package, it is required that you 1. Download the software ModusToolbox 3.1. path_to_url 2. Once downloaded add the path to access the Scripts folder provided by ModusToolbox export PATH=$PATH:/path/to/ModusToolbox/tools_3.1/openocd/scripts 3. Add the OpenOCD executable file's path to west flash/debug. 4. Flash using: west flash --openocd path/to/infineon/openocd/bin/openocd 5. Debug using: west debug --openocd path/to/infineon/openocd/bin/openocd Programming and Debugging ************************* The CY8CPROTO-062-4343W includes an onboard programmer/debugger (KitProg2) with mass storage programming to provide debugging, flash programming, and serial communication over USB. Flash and debug commands must be pointed to the Cypress OpenOCD you downloaded above. On Windows: .. code-block:: console west flash --openocd path/to/infineon/openocd/bin/openocd.exe west debug --openocd path/to/infineon/openocd/bin/openocd.exe On Linux: .. code-block:: console west flash --openocd path/to/infineon/openocd/bin/openocd west debug --openocd path/to/infineon/openocd/bin/openocd Once the gdb console starts after executing the west debug command, you may now set breakpoints and perform other standard GDB debugging on the PSoC 6 CM4 core. Errata ====== +------------------------------------------------+----------------------------------------+ | Problem | Solution | +================================================+========================================+ | The GPIO_INT_TRIG_BOTH interrupt is not raised | This will be fixed in a future release.| | when the associated GPIO is asserted. | | +------------------------------------------------+----------------------------------------+ | GDB experiences a timeout error connecting to | This will be fixed in a future release.| | a server instance started by west debugserver. | | +------------------------------------------------+----------------------------------------+ .. _PSoC 62 MCU SoC Website: path_to_url .. _PSoC 62 MCU Datasheet: path_to_url .. _PSoC 62 MCU Architecture Reference Manual: path_to_url .. _PSoC 62 MCU Register Reference Manual: path_to_url .. _CY8CPROTO-062-4343W PSoC 6 Wi-Fi BT Website: path_to_url .. _CY8CPROTO-062-4343W PSoC 6 Wi-Fi BT User Guide: path_to_url#!?fileId=8ac78c8c7d0d8da4017d0f0118571844 .. _CY8CPROTO-062-4343W PSoC 6 Wi-Fi BT Schematics: path_to_url#!?fileId=8ac78c8c7d0d8da4017d0f01126b183f .. _Infineon OpenOCD: path_to_url ```
/content/code_sandbox/boards/infineon/cy8cproto_062_4343w/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,619
```unknown /* * * */ /dts-v1/; #include <infineon/cat3/xmc/xmc4700_F144x2048.dtsi> #include <infineon/cat3/xmc/xmc4700_F144x2048-intc.dtsi> #include <zephyr/dt-bindings/pwm/pwm.h> #include "xmc47_relax_kit-pinctrl.dtsi" #include "arduino_r3_connector.dtsi" / { model = "Infineon XMC4700 Relax Kit board"; compatible = "infineon,xmc4700", "infineon,xmc4xxx"; aliases { led0 = &led1; die-temp0 = &die_temp; pwm-led0 = &pwm_led1; watchdog0 = &wdt0; }; leds { compatible = "gpio-leds"; /* leds are labelled LED1 and LED2 in the relax kit documentation */ led1: led1 { gpios = <&gpio5 9 GPIO_ACTIVE_HIGH>; }; led2: led2 { gpios = <&gpio5 8 GPIO_ACTIVE_HIGH>; }; }; pwmleds { compatible = "pwm-leds"; pwm_led1: pwm_led1 { pwms = <&pwm_ccu80 4 PWM_SEC(1) PWM_POLARITY_NORMAL>; label = "PWM LED1"; }; pwm_led2: pwm_led2 { pwms = <&pwm_ccu80 0 PWM_SEC(1) PWM_POLARITY_NORMAL>; label = "PWM LED2"; }; }; chosen { zephyr,sram = &dsram_joined; zephyr,flash = &flash0; zephyr,console = &usic0ch0; zephyr,shell-uart = &usic0ch0; zephyr,flash-controller = &flash_controller; zephyr,code-partition = &code_partition; zephyr,canbus = &can_node1; }; }; &psram1 { compatible = "zephyr,memory-region", "mmio-sram"; zephyr,memory-region = "PSRAM1"; }; &cpu0 { clock-frequency = <144000000>; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; code_partition: partition@0 { reg = <0x0 0x80000>; read-only; }; storage_partition: partition@80000 { label = "storage"; reg = <0x80000 0x80000>; }; }; }; &usic0ch0 { compatible = "infineon,xmc4xxx-uart"; current-speed = <115200>; pinctrl-0 = <&uart_tx_p1_5_u0c0 &uart_rx_p1_4_u0c0>; pinctrl-names = "default"; input-src = "DX0B"; interrupts = <84 1 85 1>; interrupt-names = "tx", "rx"; fifo-start-offset = <0>; fifo-tx-size = <16>; fifo-rx-size = <16>; status = "okay"; }; &usic1ch0 { compatible = "infineon,xmc4xxx-uart"; current-speed = <115200>; pinctrl-0 = <&uart_tx_p2_14_u1c0 &uart_rx_p2_15_u1c0>; pinctrl-names = "default"; input-src = "DX0C"; interrupts = <92 1 93 1>; interrupt-names = "tx", "rx"; fifo-start-offset = <0>; fifo-tx-size = <0>; fifo-rx-size = <0>; status = "okay"; }; &usic2ch0 { compatible = "infineon,xmc4xxx-spi"; pinctrl-0 = <&spi_mosi_p3_8_u2c0 &spi_miso_p3_7_u2c0 &spi_sclk_p3_9_u2c0>; pinctrl-names = "default"; miso-src = "DX0C"; interrupts = <96 1 97 1>; interrupt-names = "tx", "rx"; status = "okay"; #address-cells = <1>; #size-cells = <0>; }; &usic1ch1 { compatible = "infineon,xmc4xxx-i2c"; status = "okay"; pinctrl-0 = <&i2c_scl_p0_13_u1c1 &i2c_sda_p3_15_u1c1>; pinctrl-names = "default"; scl-src = "DX1B"; sda-src = "DX0A"; interrupts = <94 1>; #address-cells = <1>; #size-cells = <0>; }; &adc0 { vref-internal-mv = <3300>; }; &adc1 { vref-internal-mv = <3300>; }; &adc2 { vref-internal-mv = <3300>; }; &adc3 { vref-internal-mv = <3300>; }; &gpio5 { status = "okay"; }; /* this example is not using the high-side/low-side signals of the same channel */ /* the PWM signals are only used for the blink led example */ &pwm_ccu80 { slice-prescaler = <15 15 15 15>; slice-deadtime-prescaler = <3 3 3 3>; channel-deadtime-high = <0 0 0 0 0 0 0 0>; channel-deadtime-low = <0 0 0 0 0 0 0 0>; pinctrl-0 = <&pwm_out_p5_9_ccu80_ch4_high &pwm_out_p5_8_ccu80_ch0_low>; pinctrl-names = "default"; }; &eth { status = "okay"; pinctrl-0 = <&eth_p2_4_rxer &eth_p2_2_rxd0 &eth_p2_3_rxd1 &eth_p15_8_clk_rmii &eth_p15_9_crs_dv &eth_p2_5_tx_en &eth_p2_8_txd0 &eth_p2_9_txd1>; pinctrl-names = "default"; rxer-port-ctrl = "P2_4"; rxd0-port-ctrl = "P2_2"; rxd1-port-ctrl = "P2_3"; rmii-rx-clk-port-ctrl = "P15_8"; crs-rx-dv-port-ctrl = "P15_9"; phy-connection-type = "rmii"; phy-handle = <&phy>; }; &mdio { status = "okay"; mdi-port-ctrl = "P2_0"; pinctrl-0 = <&eth_p2_0_mdo &eth_p2_7_mdc>; pinctrl-names = "default"; phy: ethernet-phy@0 { compatible = "ethernet-phy"; reg = <0>; }; }; &can { clock-prescaler = <6>; }; &can_node1 { status = "okay"; input-src = "RXDC"; pinctrl-0 = <&can_tx_p1_12_node1 &can_rx_p1_13_node1>; pinctrl-names = "default"; }; ```
/content/code_sandbox/boards/infineon/xmc47_relax_kit/xmc47_relax_kit.dts
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,680
```unknown # # Enable UART driver CONFIG_SERIAL=y # Enable console CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y CONFIG_USE_DT_CODE_PARTITION=y ```
/content/code_sandbox/boards/infineon/xmc47_relax_kit/xmc47_relax_kit_defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
31
```yaml board: name: xmc47_relax_kit vendor: infineon socs: - name: xmc4700 ```
/content/code_sandbox/boards/infineon/xmc47_relax_kit/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
34
```unknown # if BOARD_XMC47_RELAX_KIT if NETWORKING config NET_L2_ETHERNET default y config MDIO default y config TEST_RANDOM_GENERATOR default y endif # NETWORKING endif ```
/content/code_sandbox/boards/infineon/xmc47_relax_kit/Kconfig.defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
50
```yaml identifier: xmc47_relax_kit name: XMC47-RELAX-KIT type: mcu arch: arm toolchain: - zephyr - gnuarmemb supported: - adc - dma - gpio - i2c - spi - uart - arduino_spi - arduino_serial - watchdog - netif:eth ram: 352 flash: 2048 vendor: infineon ```
/content/code_sandbox/boards/infineon/xmc47_relax_kit/xmc47_relax_kit.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
115
```unknown /* */ #include <infineon/cat3/xmc/xmc4700_F144x2048-pinctrl.dtsi> &uart_tx_p1_5_u0c0 { drive-strength = "strong-soft-edge"; drive-push-pull; hwctrl = "disabled"; }; &uart_rx_p1_4_u0c0 { drive-strength = "strong-soft-edge"; hwctrl = "disabled"; }; &uart_tx_p2_14_u1c0 { drive-strength = "strong-soft-edge"; drive-push-pull; hwctrl = "disabled"; }; &uart_rx_p2_15_u1c0 { drive-strength = "strong-soft-edge"; hwctrl = "disabled"; }; &spi_mosi_p3_8_u2c0 { drive-strength = "strong-soft-edge"; drive-push-pull; hwctrl = "disabled"; }; &spi_miso_p3_7_u2c0 { drive-strength = "strong-soft-edge"; hwctrl = "disabled"; }; &spi_sclk_p3_9_u2c0 { drive-strength = "strong-soft-edge"; drive-push-pull; hwctrl = "disabled"; }; &pwm_out_p5_9_ccu80_ch4_high { drive-strength = "strong-medium-edge"; drive-push-pull; hwctrl = "disabled"; }; &pwm_out_p5_8_ccu80_ch0_low { drive-strength = "strong-medium-edge"; drive-push-pull; hwctrl = "disabled"; }; &i2c_scl_p0_13_u1c1 { drive-strength = "strong-sharp-edge"; drive-open-drain; hwctrl = "disabled"; }; &i2c_sda_p3_15_u1c1 { drive-strength = "strong-soft-edge"; drive-open-drain; hwctrl = "disabled"; }; &eth_p2_0_mdo { drive-strength = "strong-sharp-edge"; output-low; }; &eth_p2_7_mdc { drive-strength = "strong-medium-edge"; drive-push-pull; output-low; hwctrl = "disabled"; }; &eth_p2_5_tx_en { drive-strength = "strong-medium-edge"; drive-push-pull; output-low; hwctrl = "disabled"; }; &eth_p2_8_txd0 { drive-strength = "strong-medium-edge"; drive-push-pull; output-low; hwctrl = "disabled"; }; &eth_p2_9_txd1 { drive-strength = "strong-medium-edge"; drive-push-pull; output-low; hwctrl = "disabled"; }; &eth_p2_4_rxer { drive-strength = "strong-medium-edge"; hwctrl = "disabled"; }; &eth_p2_2_rxd0{ drive-strength = "strong-medium-edge"; hwctrl = "disabled"; }; &eth_p2_3_rxd1 { drive-strength = "strong-medium-edge"; hwctrl = "disabled"; }; &eth_p15_8_clk_rmii { drive-strength = "strong-medium-edge"; hwctrl = "disabled"; }; &eth_p15_9_crs_dv { drive-strength = "strong-medium-edge"; hwctrl = "disabled"; }; &can_tx_p1_12_node1 { drive-strength = "strong-soft-edge"; drive-push-pull; hwctrl = "disabled"; }; &can_rx_p1_13_node1 { drive-strength = "strong-soft-edge"; hwctrl = "disabled"; }; ```
/content/code_sandbox/boards/infineon/xmc47_relax_kit/xmc47_relax_kit-pinctrl.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
802
```unknown # config BOARD_XMC47_RELAX_KIT select SOC_XMC4700 select SOC_PART_NUMBER_F144X2048 ```
/content/code_sandbox/boards/infineon/xmc47_relax_kit/Kconfig.xmc47_relax_kit
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
29
```unknown * */ / { 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 &gpio14 0 0>, /* A0 */ <1 0 &gpio14 1 0>, /* A1 */ <2 0 &gpio14 2 0>, /* A2 */ <3 0 &gpio14 3 0>, /* A3 */ <4 0 &gpio14 4 0>, /* A4 */ <5 0 &gpio14 5 0>, /* A5 */ <6 0 &gpio2 15 0>, /* D0 */ <7 0 &gpio2 14 0>, /* D1 */ <8 0 &gpio1 0 0>, /* D2 */ <9 0 &gpio1 1 0>, /* D3 */ <10 0 &gpio1 8 0>, /* D4 */ <11 0 &gpio2 12 0>, /* D5 */ <12 0 &gpio2 11 0>, /* D6 */ <13 0 &gpio1 9 0>, /* D7 */ <14 0 &gpio1 10 0>, /* D8 */ <15 0 &gpio1 11 0>, /* D9 */ <16 0 &gpio3 10 0>, /* D10 */ <17 0 &gpio3 8 0>, /* D11 */ <18 0 &gpio3 7 0>, /* D12 */ <19 0 &gpio3 9 0>, /* D13 */ <20 0 &gpio3 15 0>, /* D14 */ <21 0 &gpio0 13 0>; /* D15 */ }; }; &gpio0 { status = "okay"; }; &gpio1 { status = "okay"; }; &gpio2 { status = "okay"; }; &gpio3 { status = "okay"; }; &gpio14 { status = "okay"; }; arduino_spi: &usic2ch0 {}; arduino_serial: &usic1ch0 {}; arduino_i2c: &usic1ch1 {}; ```
/content/code_sandbox/boards/infineon/xmc47_relax_kit/arduino_r3_connector.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
541
```unknown /* */ #include <infineon/cat3/xmc/xmc4500_F100x1024-pinctrl.dtsi> &uart_tx_p0_1_u1c1 { drive-strength = "strong-soft-edge"; drive-push-pull; hwctrl = "disabled"; }; &uart_rx_p0_0_u1c1 { drive-strength = "strong-soft-edge"; hwctrl = "disabled"; }; &pwm_out_p1_0_ccu40_ch3 { drive-strength = "strong-medium-edge"; drive-push-pull; hwctrl = "disabled"; }; &pwm_out_p1_1_ccu40_ch2 { drive-strength = "strong-medium-edge"; drive-push-pull; hwctrl = "disabled"; }; &eth_p2_0_mdo { drive-strength = "strong-sharp-edge"; output-low; }; &eth_p2_7_mdc { drive-strength = "strong-medium-edge"; drive-push-pull; output-low; hwctrl = "disabled"; }; &eth_p2_5_tx_en { drive-strength = "strong-medium-edge"; drive-push-pull; output-low; hwctrl = "disabled"; }; &eth_p2_8_txd0 { drive-strength = "strong-medium-edge"; drive-push-pull; output-low; hwctrl = "disabled"; }; &eth_p2_9_txd1 { drive-strength = "strong-medium-edge"; drive-push-pull; output-low; hwctrl = "disabled"; }; &eth_p2_4_rxer { drive-strength = "strong-medium-edge"; hwctrl = "disabled"; }; &eth_p2_2_rxd0{ drive-strength = "strong-medium-edge"; hwctrl = "disabled"; }; &eth_p2_3_rxd1 { drive-strength = "strong-medium-edge"; hwctrl = "disabled"; }; &eth_p15_8_clk_rmii { drive-strength = "strong-medium-edge"; hwctrl = "disabled"; }; &eth_p15_9_crs_dv { drive-strength = "strong-medium-edge"; hwctrl = "disabled"; }; ```
/content/code_sandbox/boards/infineon/xmc45_relax_kit/xmc45_relax_kit-pinctrl.dtsi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
480
```cmake # # Author: Parthiban Nallathambi <parthiban@linumiz.com> board_set_debugger_ifnset(jlink) board_set_flasher_ifnset(jlink) board_runner_args(jlink "--device=XMC4500-1024") board_runner_args(pyocd "--target=xmc4500") include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake) include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) ```
/content/code_sandbox/boards/infineon/xmc45_relax_kit/board.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
120
```restructuredtext .. _xmc47_relax_kit: INFINEON XMC47-RELAX-KIT ######################## Overview ******** The XMC4700 Relax Kit is designed to evaluate the capabilities of the XMC4700 Microcontroller. It is based on High performance ARM Cortex-M4F which can run up to 144MHz. .. image:: xmc47_relax_kit.jpg :align: center :alt: XMC47-RELAX-KIT Features: ========= * ARM Cortex-M4F XMC4700 * On-board Debug Probe with USB interface supporting SWD + SWO * Virtual COM Port via Debug Probe * USB (Micro USB Plug) * 32 Mbit Quad-SPI Flash * Ethernet PHY and RJ45 Jack * 32.768 kHz RTC Crystal * microSD Card Slot * CAN Transceiver * 2 pin header x1 and x2 with 80 pins * Two buttons and two LEDs for user interaction Details on the Relax Kit development board can be found in the `Relax Kit User Manual`_. Supported Features ================== The Relax Kit development board configuration supports the following hardware features: +-----------+------------+-----------------------+ | Interface | Controller | Driver/Component | +===========+============+=======================+ | NVIC | on-chip | nested vectored | | | | interrupt controller | +-----------+------------+-----------------------+ | SYSTICK | on-chip | system clock | +-----------+------------+-----------------------+ | UART | on-chip | serial port | +-----------+------------+-----------------------+ | SPI | on-chip | spi | +-----------+------------+-----------------------+ | GPIO | on-chip | gpio | +-----------+------------+-----------------------+ | FLASH | on-chip | flash | +-----------+------------+-----------------------+ | ADC | on-chip | adc | +-----------+------------+-----------------------+ | DMA | on-chip | dma | +-----------+------------+-----------------------+ | PWM | on-chip | pwm | +-----------+------------+-----------------------+ | WATCHDOG | on-chip | watchdog | +-----------+------------+-----------------------+ | MDIO | on-chip | mdio | +-----------+------------+-----------------------+ | ETHERNET | on-chip | ethernet | +-----------+------------+-----------------------+ | PTP | on-chip | ethernet | +-----------+------------+-----------------------+ More details about the supported peripherals are available in `XMC4700 TRM`_ Other hardware features are not currently supported by the Zephyr kernel. Building and Flashing ********************* Flashing ======== Here is an example for the :ref:`hello_world` application. .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: xmc47_relax_kit :goals: flash Debugging ========= Here is an example for the :ref:`hello_world` application. .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: xmc47_relax_kit :goals: debug Step through the application in your debugger. References ********** .. _Relax Kit User Manual: path_to_url .. _XMC4700 TRM: path_to_url ```
/content/code_sandbox/boards/infineon/xmc47_relax_kit/doc/index.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
750
```unknown # # Author: Parthiban Nallathambi <parthiban@linumiz.com> config BOARD_XMC45_RELAX_KIT select SOC_XMC4500 select SOC_PART_NUMBER_F100X1024 ```
/content/code_sandbox/boards/infineon/xmc45_relax_kit/Kconfig.xmc45_relax_kit
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
49
```yaml identifier: xmc45_relax_kit name: XMC45-RELAX-KIT type: mcu arch: arm toolchain: - zephyr - gnuarmemb - xtools supported: - adc - dma - gpio - spi - uart - watchdog - netif:eth ram: 160 flash: 1024 vendor: infineon ```
/content/code_sandbox/boards/infineon/xmc45_relax_kit/xmc45_relax_kit.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
102
```yaml board: name: xmc45_relax_kit vendor: infineon socs: - name: xmc4500 ```
/content/code_sandbox/boards/infineon/xmc45_relax_kit/board.yml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
34
```unknown # # Author: Parthiban Nallathambi <parthiban@linumiz.com> if BOARD_XMC45_RELAX_KIT if NETWORKING config NET_L2_ETHERNET default y config MDIO default y config TEST_RANDOM_GENERATOR default y endif # NETWORKING endif # BOARD_XMC45_RELAX_KIT ```
/content/code_sandbox/boards/infineon/xmc45_relax_kit/Kconfig.defconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
79