Commit 0c391396 authored by Camille BAUD's avatar Camille BAUD Committed by Benjamin Cabé
Browse files

boards: others: Introduce Pro Micro nRF52840 type



This introduces the pro micro nrf52840 board type,
commonly available as the cheapest nrf52840 development board,
and is based on the Nice!Nano

Signed-off-by: default avatarCamille BAUD <mail@massdriver.space>
parent 7bb5210e
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
# Copyright (c) 2024 MASSDRIVER EI (massdriver.space)
# SPDX-License-Identifier: Apache-2.0

if BOARD_PROMICRO_NRF52840

config BOARD_HAS_NRF5_BOOTLOADER
	bool "Board has nRF5 bootloader"
	default y
	help
	  If selected, applications are linked so that they can be loaded by Nordic
	  nRF5 bootloader.

endif # BOARD_PROMICRO_NRF52840
+29 −0
Original line number Diff line number Diff line
# Copyright (c) 2024 MASSDRIVER EI (massdriver.space)
# Copyright (c) 2018-2023 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: Apache-2.0

if BOARD_PROMICRO_NRF52840

source "boards/common/usb/Kconfig.cdc_acm_serial.defconfig"

# To let the nRF5 bootloader load an application, the application
# must be linked after Nordic MBR, that is factory-programmed on the board.

# Nordic nRF5 bootloader exists outside of the partitions specified in the
# DTS file, so we manually override FLASH_LOAD_OFFSET to link the application
# correctly, after Nordic MBR.

# When building MCUBoot, MCUBoot itself will select USE_DT_CODE_PARTITION
# which will make it link into the correct partition specified in DTS file,
# the offset is applied here so that the full partition size can be used when
# the bootloader Kconfig option has been disabled.

config FLASH_LOAD_OFFSET
	default 0x1000
	depends on BOARD_HAS_NRF5_BOOTLOADER && (MCUBOOT || !USE_DT_CODE_PARTITION)

config BT_CTLR
	default BT

endif # BOARD_PROMICRO_NRF52840
+5 −0
Original line number Diff line number Diff line
# Copyright (c) 2024 MASSDRIVER EI (massdriver.space)
# SPDX-License-Identifier: Apache-2.0

config BOARD_PROMICRO_NRF52840
	select SOC_NRF52840_QIAA
+9 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

board_runner_args(jlink "--device=nRF52840_xxAA" "--speed=4000")
board_runner_args(pyocd "--target=nrf52840" "--frequency=4000000")
if(CONFIG_BUILD_OUTPUT_UF2)
  include(${ZEPHYR_BASE}/boards/common/uf2.board.cmake)
endif()
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
+8 −0
Original line number Diff line number Diff line
board:
  name: promicro_nrf52840
  full_name: Pro Micro nRF52840
  vendor: others
  socs:
  - name: nrf52840
    variants:
    - name: uf2
Loading