Skip to content

Commit

Permalink
nrf/boards: Rename all nRF boards to use uppercase.
Browse files Browse the repository at this point in the history
This is to match all the other ports.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
  • Loading branch information
jimmo committed Aug 23, 2023
1 parent 2919a9f commit f007d0a
Show file tree
Hide file tree
Showing 124 changed files with 42 additions and 42 deletions.
4 changes: 2 additions & 2 deletions ports/nrf/Makefile
Expand Up @@ -4,8 +4,8 @@ ifdef BOARD_DIR
# the path as the board name.
BOARD ?= $(notdir $(BOARD_DIR:/=))
else
# If not given on the command line, then default to pca10040.
BOARD ?= pca10040
# If not given on the command line, then default to PCA10040.
BOARD ?= PCA10040
BOARD_DIR ?= boards/$(BOARD)
endif

Expand Down
62 changes: 31 additions & 31 deletions ports/nrf/README.md
Expand Up @@ -41,7 +41,7 @@ This is a port of MicroPython to the Nordic Semiconductor nRF series of chips.
* [PCA10056](http://www.nordicsemi.com/eng/Products/nRF52840-Preview-DK)
* [PCA10059](https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52840-Dongle)
* [Particle Xenon](https://docs.particle.io/xenon/)
* [nRF52840 MDK USB Dongle](boards/nrf52840-mdk-usb-dongle/README.md)
* [nRF52840 MDK USB Dongle](boards/NRF52840_MDK_USB_DONGLE/README.md)
* nRF9160
* [PCA10090](https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF9160-DK)
* [Actinius Icarus](https://www.actinius.com/icarus)
Expand All @@ -63,8 +63,8 @@ By default, the PCA10040 (nrf52832) is used as compile target. To build and flas
Alternatively the target board could be defined:

make submodules
make BOARD=pca10040
make BOARD=pca10040 deploy
make BOARD=PCA10040
make BOARD=PCA10040 deploy

## Compile without LTO enabled

Expand All @@ -73,7 +73,7 @@ targets in the nrf-port. The `-flto` linker flag can be toggled easily by using
the argument LTO when building. The example below shows how to disable LTO for
the compilation:

make BOARD=pca10040 LTO=0
make BOARD=PCA10040 LTO=0

**Note**: There have been several issues with use of LTO in conjunction with
GNU ARM Embedded Toolchain 7.2.1/4Q17. It's recommended to use a toolchain after
Expand All @@ -88,11 +88,11 @@ First prepare the bluetooth folder by downloading Bluetooth LE stacks and header

If the Bluetooth stacks has been downloaded, compile the target with the following command:

make BOARD=pca10040 SD=s132
make BOARD=PCA10040 SD=s132

The **make sd** will trigger a flash of the bluetooth stack before that application is flashed. Note that **make sd** will perform a full erase of the chip, which could cause 3rd party bootloaders to also be wiped.

make BOARD=pca10040 SD=s132 sd
make BOARD=PCA10040 SD=s132 sd

Note: further tuning of features to include in bluetooth or even setting up the device to use REPL over Bluetooth can be configured in the `bluetooth_conf.h`.

Expand All @@ -104,7 +104,7 @@ it in the specific target board's `mpconfigboard.mk`.

For example:

make BOARD=pca10040 FROZEN_MANIFEST=path/to/manifest.py
make BOARD=PCA10040 FROZEN_MANIFEST=path/to/manifest.py

In case of using the target board's makefile, add a line similar to this:

Expand All @@ -117,7 +117,7 @@ As the `oofatfs` module is not having header guards that can exclude the impleme

For example:

make BOARD=pca10040 MICROPY_VFS_FAT=1
make BOARD=PCA10040 MICROPY_VFS_FAT=1

## Enable MICROPY_VFS_LFS1 or MICROPY_VFS_LFS2

Expand All @@ -127,7 +127,7 @@ or `MICROPY_VFS_LFS2` can be set. This will be in addition of setting

For example:

make BOARD=pca10056 MICROPY_VFS_LFS2=1
make BOARD=PCA10056 MICROPY_VFS_LFS2=1

## Set file system size

Expand All @@ -141,7 +141,7 @@ linker script syntax as it is passed directly.
For example, if we want to override the default file system size set by the
linker scripts to use 256K:

make BOARD=pca10056 MICROPY_VFS_LFS2=1 FS_SIZE=256K
make BOARD=PCA10056 MICROPY_VFS_LFS2=1 FS_SIZE=256K

Also note that changing this size between builds might cause loss of files
present from a previous firmware as it will format the file system due to a new
Expand All @@ -151,25 +151,25 @@ location.

Target Board (BOARD) | Bluetooth Stack (SD) | Bluetooth Support | Bootloader | Default Flash Util
---------------------|-------------------------|------------------------|----------------|-------------------
microbit | s110 | Peripheral | | [PyOCD](#pyocdopenocd-targets)
pca10000 | s110 | Peripheral | | [Segger](#segger-targets)
pca10001 | s110 | Peripheral | | [Segger](#segger-targets)
pca10028 | s110 | Peripheral | | [Segger](#segger-targets)
pca10031 | s110 | Peripheral | | [Segger](#segger-targets)
wt51822_s4at | s110 | Peripheral | | Manual, see [datasheet](https://4tronix.co.uk/picobot2/WT51822-S4AT.pdf) for pinout
pca10040 | s132 | Peripheral and Central | | [Segger](#segger-targets)
feather52 | s132 | Peripheral and Central | | Manual, SWDIO and SWCLK solder points on the bottom side of the board
arduino_primo | s132 | Peripheral and Central | | [PyOCD](#pyocdopenocd-targets)
ibk_blyst_nano | s132 | Peripheral and Central | | [IDAP](#idap-midap-link-targets)
idk_blyst_nano | s132 | Peripheral and Central | | [IDAP](#idap-midap-link-targets)
blueio_tag_evim | s132 | Peripheral and Central | | [IDAP](#idap-midap-link-targets)
evk_nina_b1 | s132 | Peripheral and Central | | [Segger](#segger-targets)
pca10056 | s140 | Peripheral and Central | | [Segger](#segger-targets)
pca10059 | s140 | Peripheral and Central | OpenBootloader | [nrfutil](#nrfutil-targets)
particle_xenon | s140 | Peripheral and Central | | [Black Magic Probe](#black-magic-probe-targets)
nrf52840-mdk-usb-dongle | s140 | Peripheral and Central | OpenBootloader | [nrfutil](#nrfutil-targets)
pca10090 | None (bsdlib.a) | None (LTE/GNSS) | | [Segger](#segger-targets)
actinius_icarus | None (bsdlib.a) | None (LTE/GNSS) | | [Segger](#segger-targets)
MICROBIT | s110 | Peripheral | | [PyOCD](#pyocdopenocd-targets)
PCA10000 | s110 | Peripheral | | [Segger](#segger-targets)
PCA10001 | s110 | Peripheral | | [Segger](#segger-targets)
PCA10028 | s110 | Peripheral | | [Segger](#segger-targets)
PCA10031 | s110 | Peripheral | | [Segger](#segger-targets)
WT51822_S4AT | s110 | Peripheral | | Manual, see [datasheet](https://4tronix.co.uk/picobot2/WT51822-S4AT.pdf) for pinout
PCA10040 | s132 | Peripheral and Central | | [Segger](#segger-targets)
FEATHER52 | s132 | Peripheral and Central | | Manual, SWDIO and SWCLK solder points on the bottom side of the board
ARDUINO_PRIMO | s132 | Peripheral and Central | | [PyOCD](#pyocdopenocd-targets)
IBK_BLYST_NANO | s132 | Peripheral and Central | | [IDAP](#idap-midap-link-targets)
IDK_BLYST_NANO | s132 | Peripheral and Central | | [IDAP](#idap-midap-link-targets)
BLUEIO_TAG_EVIM | s132 | Peripheral and Central | | [IDAP](#idap-midap-link-targets)
EVK_NINA_B1 | s132 | Peripheral and Central | | [Segger](#segger-targets)
PCA10056 | s140 | Peripheral and Central | | [Segger](#segger-targets)
PCA10059 | s140 | Peripheral and Central | OpenBootloader | [nrfutil](#nrfutil-targets)
PARTICLE_XENON | s140 | Peripheral and Central | | [Black Magic Probe](#black-magic-probe-targets)
NRF52840_MDK_USB_DONGLE | s140 | Peripheral and Central | OpenBootloader | [nrfutil](#nrfutil-targets)
PCA10090 | None (bsdlib.a) | None (LTE/GNSS) | | [Segger](#segger-targets)
ACTINIUS_ICARUS | None (bsdlib.a) | None (LTE/GNSS) | | [Segger](#segger-targets)

## IDAP-M/IDAP-Link Targets

Expand Down Expand Up @@ -218,7 +218,7 @@ to trim of the MBR in case SoftDevice flashing is requested.
`nrfutil` as flashing backend also requires a serial port parameter to be defined
in addition to the `deploy` target of make. For example:

make BOARD=nrf52840-mdk-usb-dongle NRFUTIL_PORT=/dev/ttyACM0 deploy
make BOARD=NRF52840_MDK_USB_DONGLE NRFUTIL_PORT=/dev/ttyACM0 deploy

If the target device is connected to `/dev/ttyACM0` serial port, the
`NRFUTIL_PORT` parameter to make can be elided as it is the default serial
Expand All @@ -228,7 +228,7 @@ When enabling Bluetooth LE, as with the other flash utils, the SoftDevice
needs to be flashed in the first firmware update. This can be done by issuing
the `sd` target instead of `deploy`. For example:

make BOARD=nrf52840-mdk-usb-dongle SD=s140 NRFUTIL_PORT=/dev/ttyACM0 sd
make BOARD=NRF52840_MDK_USB_DONGLE SD=s140 NRFUTIL_PORT=/dev/ttyACM0 sd

## Bluetooth LE REPL

Expand Down
File renamed without changes.
File renamed without changes.
Expand Up @@ -4,7 +4,7 @@ MCU_SUB_VARIANT = nrf52840
SOFTDEV_VERSION = 6.1.1
SD=s140

LD_FILES += boards/arduino_nano_33_ble_sense/nano_bootloader.ld boards/nrf52840_1M_256k.ld
LD_FILES += boards/ARDUINO_NANO_33_BLE_SENSE/nano_bootloader.ld boards/nrf52840_1M_256k.ld

NRF_DEFINES += -DNRF52840_XXAA

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,4 +1,4 @@
BOARD_MICROBIT_DIR = boards/microbit/modules
BOARD_MICROBIT_DIR = boards/MICROBIT/modules

INC += -I./$(BOARD_MICROBIT_DIR)
CFLAGS += -DBOARD_SPECIFIC_MODULES
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -4,7 +4,7 @@ MCU_SUB_VARIANT = nrf51822
SOFTDEV_VERSION = 8.0.0

ifneq ($(SD),)
LD_FILES += boards/microbit/custom_nrf51822_s110_microbit.ld
LD_FILES += boards/MICROBIT/custom_nrf51822_s110_microbit.ld
FROZEN_MANIFEST ?=
else
MICROPY_VFS_LFS2 = 1
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,4 +1,4 @@
BOARD_PCA10059_DIR = boards/pca10059/modules
BOARD_PCA10059_DIR = boards/PCA10059/modules

INC += -I./$(BOARD_PCA10059_DIR)
CFLAGS += -DBOARD_SPECIFIC_MODULES
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -3,7 +3,7 @@ MCU_VARIANT = nrf52
MCU_SUB_VARIANT = nrf52840
SOFTDEV_VERSION = 7.3.0
SD=s140
LD_FILES += boards/seeed_xiao_nrf52/XIAO_bootloader.ld boards/nrf52840_1M_256k.ld
LD_FILES += boards/SEEED_XIAO_NRF52/XIAO_bootloader.ld boards/nrf52840_1M_256k.ld

NRF_DEFINES += -DNRF52840_XXAA

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions tools/ci.sh
Expand Up @@ -204,10 +204,10 @@ function ci_nrf_build {
ports/nrf/drivers/bluetooth/download_ble_stack.sh s140_nrf52_6_1_1
make ${MAKEOPTS} -C mpy-cross
make ${MAKEOPTS} -C ports/nrf submodules
make ${MAKEOPTS} -C ports/nrf BOARD=pca10040
make ${MAKEOPTS} -C ports/nrf BOARD=microbit
make ${MAKEOPTS} -C ports/nrf BOARD=pca10056 SD=s140
make ${MAKEOPTS} -C ports/nrf BOARD=pca10090
make ${MAKEOPTS} -C ports/nrf BOARD=PCA10040
make ${MAKEOPTS} -C ports/nrf BOARD=MICROBIT
make ${MAKEOPTS} -C ports/nrf BOARD=PCA10056 SD=s140
make ${MAKEOPTS} -C ports/nrf BOARD=PCA10090
}

########################################################################################
Expand Down

0 comments on commit f007d0a

Please sign in to comment.