Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
- fqbn: electroniccats:mbed:bastble
- fqbn: electroniccats:mbed:bast_frontier
- fqbn: electroniccats:mbed:rak_wistrio5010
- fqbn: electroniccats:mbed:wisblock_rak4631

# compile only the examples compatible with each board
include:
Expand All @@ -48,6 +49,9 @@ jobs:
- board:
fqbn: electroniccats:mbed:rak_wistrio5010
additional-sketch-paths: '"libraries/ThreadDebug"'
- board:
fqbn: electroniccats:mbed:wisblock_rak4631
additional-sketch-paths: '"libraries/ThreadDebug"'

steps:
- name: Checkout repository
Expand Down
44 changes: 44 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,47 @@ rak_wistrio5010.bootloader.extra_action.preflash=echo INFO:removed_mass-erase
rak_wistrio5010.bootloader.config=-f target/nrf52.cfg
rak_wistrio5010.bootloader.programmer=-f interface/cmsis-dap.cfg
rak_wistrio5010.bootloader.file=bast_frontier/bast_frontier_bootloader-0.3.2.hex

##############################################################
# WISBLOCK RAK4631

wisblock_rak4631.name=WisBlock RAK4631
wisblock_rak4631.build.core=arduino
wisblock_rak4631.build.crossprefix=arm-none-eabi-
wisblock_rak4631.build.compiler_path={runtime.tools.arm-none-eabi-gcc.path}/bin/

wisblock_rak4631.build.variant=RAK4631
wisblock_rak4631.build.mcu=cortex-m4
wisblock_rak4631.build.extra_flags=
wisblock_rak4631.build.architecture=cortex-m4
wisblock_rak4631.build.fpu=fpv4-sp-d16
wisblock_rak4631.build.float-abi=softfp
wisblock_rak4631.build.board=RAK4631
wisblock_rak4631.build.ldscript=linker_script.ld
wisblock_rak4631.compiler.mbed.arch.define=-DARDUINO_ARCH_NRF52840
wisblock_rak4631.compiler.mbed.defines={build.variant.path}/defines.txt
wisblock_rak4631.compiler.mbed.ldflags={build.variant.path}/ldflags.txt
wisblock_rak4631.compiler.mbed.cflags={build.variant.path}/cflags.txt
wisblock_rak4631.compiler.mbed.cxxflags={build.variant.path}/cxxflags.txt
wisblock_rak4631.compiler.mbed.includes={build.variant.path}/includes.txt
wisblock_rak4631.compiler.mbed.extra_ldflags=-lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
wisblock_rak4631.compiler.mbed="{build.variant.path}/libs/libmbed.a" "{build.variant.path}/libs/libcc_310_core.a" "{build.variant.path}/libs/libcc_310_ext.a" "{build.variant.path}/libs/libcc_310_trng.a"
wisblock_rak4631.vid.0=0x239A
wisblock_rak4631.pid.0=0x8029
wisblock_rak4631.vid.1=0x239A
wisblock_rak4631.pid.1=0x8029

# Upload
wisblock_rak4631.bootloader.tool=bootburn
wisblock_rak4631.upload.tool=nrfutil
wisblock_rak4631.upload.protocol=nrfutil
wisblock_rak4631.upload.use_1200bps_touch=true
wisblock_rak4631.upload.wait_for_upload_port=true
wisblock_rak4631.upload.maximum_size=983040
wisblock_rak4631.upload.maximum_data_size=262144

wisblock_rak4631.bootloader.tool=openocd
wisblock_rak4631.bootloader.extra_action.preflash=echo INFO:removed_mass-erase
wisblock_rak4631.bootloader.config=-f target/nrf52.cfg
wisblock_rak4631.bootloader.programmer=-f interface/cmsis-dap.cfg
wisblock_rak4631.bootloader.file=wisblock_rak4631/wisblock_rak4631_bootloader-0.3.2.hex
25 changes: 25 additions & 0 deletions variants/RAK4631/cflags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
-c
-std=gnu11
-DAPPLICATION_ADDR=0x000000
-DAPPLICATION_SIZE=0x01000
-DMBED_RAM_SIZE=0x20000008
-DMBED_RAM_START=0x20000000
-DMBED_ROM_SIZE=0x800
-DMBED_ROM_START=0x0
-DMBED_TRAP_ERRORS_ENABLED=1
-Os
-Wall
-Wextra
-Wno-missing-field-initializers
-Wno-unused-parameter
-fdata-sections
-ffunction-sections
-fmessage-length=0
-fno-exceptions
-fomit-frame-pointer
-funsigned-char
-g
-mcpu=cortex-m4
-mfloat-abi=softfp
-mfpu=fpv4-sp-d16
-mthumb
19 changes: 19 additions & 0 deletions variants/RAK4631/conf/mbed_app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"macros": [
"MBED_HEAP_STATS_ENABLED=1",
"MBED_STACK_STATS_ENABLED=1",
"MBED_MEM_TRACING_ENABLED=1",
"NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS=8"
],
"target_overrides": {
"*": {
"target.printf_lib": "std",
"platform.stdio-buffered-serial": true,
"platform.stdio-baud-rate": 115200,
"platform.default-serial-baud-rate": 115200,
"platform.callback-nontrivial": true,
"rtos.main-thread-stack-size": 32768,
"target.mbed_app_start": "0x10000"
}
}
}
27 changes: 27 additions & 0 deletions variants/RAK4631/cxxflags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-Wvla
-c
-fno-rtti
-std=gnu++14
-DAPPLICATION_ADDR=0x000000
-DAPPLICATION_SIZE=0x01000
-DMBED_RAM_SIZE=0x20000008
-DMBED_RAM_START=0x20000000
-DMBED_ROM_SIZE=0x800
-DMBED_ROM_START=0x0
-DMBED_TRAP_ERRORS_ENABLED=1
-Os
-Wall
-Wextra
-Wno-missing-field-initializers
-Wno-unused-parameter
-fdata-sections
-ffunction-sections
-fmessage-length=0
-fno-exceptions
-fomit-frame-pointer
-funsigned-char
-g
-mcpu=cortex-m4
-mfloat-abi=softfp
-mfpu=fpv4-sp-d16
-mthumb
67 changes: 67 additions & 0 deletions variants/RAK4631/defines.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@

-DARM_MATH_CM4
-DBOARD_PCA10056
-D__CMSIS_RTOS
-DCMSIS_VECTAB_VIRTUAL
-DCMSIS_VECTAB_VIRTUAL_HEADER_FILE=\"cmsis_nvic.h\"
-DCOMPONENT_FLASHIAP=1
-DCONFIG_GPIO_AS_PINRESET
-D__CORTEX_M4
-DDEVICE_ANALOGIN=1
-DDEVICE_FLASH=1
-DDEVICE_I2C=1
-DDEVICE_I2C_ASYNCH=1
-DDEVICE_I2CSLAVE=1
-DDEVICE_INTERRUPTIN=1
-DDEVICE_LPTICKER=1
-DDEVICE_PORTIN=1
-DDEVICE_PORTINOUT=1
-DDEVICE_PORTOUT=1
-DDEVICE_PWMOUT=1
-DDEVICE_SERIAL=1
-DDEVICE_SERIAL_ASYNCH=1
-DDEVICE_SERIAL_FC=1
-DDEVICE_SLEEP=1
-DDEVICE_SPI=1
-DDEVICE_SPI_ASYNCH=1
-DDEVICE_SYSTICK_CLK_OFF_DURING_SLEEP=1
-DDEVICE_TRNG=1
-DDEVICE_USBDEVICE=1
-DDEVICE_USTICKER=1
-DFEATURE_BLE=1
-DFEATURE_CRYPTOCELL310=1
-DFEATURE_STORAGE=1
-D__FPU_PRESENT=1
-D__MBED__=1
-DMBED_BUILD_TIMESTAMP=1595839671.5680196
-D__MBED_CMSIS_RTOS_CM
-DMBED_MPU_CUSTOM
-DMBED_TICKLESS
-DMBEDTLS_CONFIG_HW_SUPPORT
-DNRF52840_XXAA
-DNRF52_PAN_20
-DSWI_DISABLE0
-DTARGET_BAST_FRONTIER
-DTARGET_CORDIO
-DTARGET_CORDIO_LL
-DTARGET_CORTEX
-DTARGET_CORTEX_M
-DTARGET_LIKE_CORTEX_M4
-DTARGET_LIKE_MBED
-DTARGET_M4
-DTARGET_MCU_NRF52840
-DTARGET_NAME=BAST_FRONTIER
-DTARGET_NORDIC
-DTARGET_NORDIC_CORDIO
-DTARGET_NRF52
-DTARGET_NRF52840
-DTARGET_NRF5x
-DTARGET_RELEASE
-DTARGET_RTOS_M4_M7
-DTARGET_SDK_15_0
-DTARGET_SOFTDEVICE_NONE
-DTOOLCHAIN_GCC
-DTOOLCHAIN_GCC_ARM
-DWSF_MAX_HANDLERS=10
-DMBED_NO_GLOBAL_USING_DIRECTIVE=1
-DUSE_ARDUINO_PINOUT
Loading