Skip to content

Commit 11a841f

Browse files
authored
Merge pull request #11 from ElectronicCats/Add_RAK5010
Add support RAK5010
2 parents 03c23ce + e292885 commit 11a841f

17 files changed

+1562
-4
lines changed

.github/workflows/compile-examples.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ jobs:
2424

2525
env:
2626
# sketch paths to compile (recursive) compatible with all boards
27-
UNIVERSAL_SKETCH_PATHS: '"libraries/Scheduler"'
27+
UNIVERSAL_SKETCH_PATHS: |
28+
- libraries/Scheduler
29+
SKETCHES_REPORTS_PATH: sketches-reports
2830

2931
strategy:
3032
fail-fast: false
@@ -33,6 +35,7 @@ jobs:
3335
board:
3436
- fqbn: electroniccats:mbed:bastble
3537
- fqbn: electroniccats:mbed:bast_frontier
38+
- fqbn: electroniccats:mbed:rak_wistrio5010
3639

3740
# compile only the examples compatible with each board
3841
include:
@@ -42,6 +45,9 @@ jobs:
4245
- board:
4346
fqbn: electroniccats:mbed:bast_frontier
4447
additional-sketch-paths: '"libraries/PDM" "libraries/ThreadDebug"'
48+
- board:
49+
fqbn: electroniccats:mbed:rak_wistrio5010
50+
additional-sketch-paths: '"libraries/ThreadDebug"'
4551

4652
steps:
4753
- name: Checkout repository
@@ -61,10 +67,11 @@ jobs:
6167
sketch-paths: "${{ matrix.additional-sketch-paths }}"
6268
verbose: 'false'
6369
enable-deltas-report: true
70+
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
6471

6572
- name: Save memory usage change report as artifact
6673
if: github.event_name == 'pull_request'
67-
uses: actions/upload-artifact@v1
74+
uses: actions/upload-artifact@v2
6875
with:
69-
name: size-deltas-reports
70-
path: size-deltas-reports
76+
path: ${{ env.SKETCHES_REPORTS_PATH }}
77+
name: ${{ env.SKETCHES_REPORTS_PATH }}

boards.txt

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,47 @@ bast_frontier.bootloader.extra_action.preflash=echo INFO:removed_mass-erase
8484
bast_frontier.bootloader.config=-f target/nrf52.cfg
8585
bast_frontier.bootloader.programmer=-f interface/cmsis-dap.cfg
8686
bast_frontier.bootloader.file=bast_frontier/bast_frontier_bootloader-0.3.2.hex
87+
88+
##############################################################
89+
# WisTrio RAK5010 V2
90+
91+
rak_wistrio5010.name=WisTrio RAK5010 V2
92+
rak_wistrio5010.build.core=arduino
93+
rak_wistrio5010.build.crossprefix=arm-none-eabi-
94+
rak_wistrio5010.build.compiler_path={runtime.tools.arm-none-eabi-gcc.path}/bin/
95+
96+
rak_wistrio5010.build.variant=RAK5010
97+
rak_wistrio5010.build.mcu=cortex-m4
98+
rak_wistrio5010.build.extra_flags=
99+
rak_wistrio5010.build.architecture=cortex-m4
100+
rak_wistrio5010.build.fpu=fpv4-sp-d16
101+
rak_wistrio5010.build.float-abi=softfp
102+
rak_wistrio5010.build.board=RAK5010
103+
rak_wistrio5010.build.ldscript=linker_script.ld
104+
rak_wistrio5010.compiler.mbed.arch.define=-DARDUINO_ARCH_NRF52840
105+
rak_wistrio5010.compiler.mbed.defines={build.variant.path}/defines.txt
106+
rak_wistrio5010.compiler.mbed.ldflags={build.variant.path}/ldflags.txt
107+
rak_wistrio5010.compiler.mbed.cflags={build.variant.path}/cflags.txt
108+
rak_wistrio5010.compiler.mbed.cxxflags={build.variant.path}/cxxflags.txt
109+
rak_wistrio5010.compiler.mbed.includes={build.variant.path}/includes.txt
110+
rak_wistrio5010.compiler.mbed.extra_ldflags=-lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
111+
rak_wistrio5010.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"
112+
rak_wistrio5010.vid.0=0x1209
113+
rak_wistrio5010.pid.0=0x805b
114+
rak_wistrio5010.vid.1=0x1209
115+
rak_wistrio5010.pid.1=0x805b
116+
117+
# Upload
118+
rak_wistrio5010.bootloader.tool=bootburn
119+
rak_wistrio5010.upload.tool=nrfutil
120+
rak_wistrio5010.upload.protocol=nrfutil
121+
rak_wistrio5010.upload.use_1200bps_touch=true
122+
rak_wistrio5010.upload.wait_for_upload_port=true
123+
rak_wistrio5010.upload.maximum_size=983040
124+
rak_wistrio5010.upload.maximum_data_size=262144
125+
126+
rak_wistrio5010.bootloader.tool=openocd
127+
rak_wistrio5010.bootloader.extra_action.preflash=echo INFO:removed_mass-erase
128+
rak_wistrio5010.bootloader.config=-f target/nrf52.cfg
129+
rak_wistrio5010.bootloader.programmer=-f interface/cmsis-dap.cfg
130+
rak_wistrio5010.bootloader.file=bast_frontier/bast_frontier_bootloader-0.3.2.hex

variants/RAK5010/cflags.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
-c
2+
-std=gnu11
3+
-DAPPLICATION_ADDR=0x000000
4+
-DAPPLICATION_SIZE=0x01000
5+
-DMBED_RAM_SIZE=0x20000008
6+
-DMBED_RAM_START=0x20000000
7+
-DMBED_ROM_SIZE=0x800
8+
-DMBED_ROM_START=0x0
9+
-DMBED_TRAP_ERRORS_ENABLED=1
10+
-Os
11+
-Wall
12+
-Wextra
13+
-Wno-missing-field-initializers
14+
-Wno-unused-parameter
15+
-fdata-sections
16+
-ffunction-sections
17+
-fmessage-length=0
18+
-fno-exceptions
19+
-fomit-frame-pointer
20+
-funsigned-char
21+
-g
22+
-mcpu=cortex-m4
23+
-mfloat-abi=softfp
24+
-mfpu=fpv4-sp-d16
25+
-mthumb

variants/RAK5010/conf/mbed_app.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"macros": [
3+
"MBED_HEAP_STATS_ENABLED=1",
4+
"MBED_STACK_STATS_ENABLED=1",
5+
"MBED_MEM_TRACING_ENABLED=1",
6+
"NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS=8"
7+
],
8+
"target_overrides": {
9+
"*": {
10+
"target.printf_lib": "std",
11+
"platform.stdio-buffered-serial": true,
12+
"platform.stdio-baud-rate": 115200,
13+
"platform.default-serial-baud-rate": 115200,
14+
"platform.callback-nontrivial": true,
15+
"rtos.main-thread-stack-size": 32768,
16+
"target.mbed_app_start": "0x10000"
17+
}
18+
}
19+
}

variants/RAK5010/cxxflags.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
-Wvla
2+
-c
3+
-fno-rtti
4+
-std=gnu++14
5+
-DAPPLICATION_ADDR=0x000000
6+
-DAPPLICATION_SIZE=0x01000
7+
-DMBED_RAM_SIZE=0x20000008
8+
-DMBED_RAM_START=0x20000000
9+
-DMBED_ROM_SIZE=0x800
10+
-DMBED_ROM_START=0x0
11+
-DMBED_TRAP_ERRORS_ENABLED=1
12+
-Os
13+
-Wall
14+
-Wextra
15+
-Wno-missing-field-initializers
16+
-Wno-unused-parameter
17+
-fdata-sections
18+
-ffunction-sections
19+
-fmessage-length=0
20+
-fno-exceptions
21+
-fomit-frame-pointer
22+
-funsigned-char
23+
-g
24+
-mcpu=cortex-m4
25+
-mfloat-abi=softfp
26+
-mfpu=fpv4-sp-d16
27+
-mthumb

variants/RAK5010/defines.txt

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
2+
-DARM_MATH_CM4
3+
-DBOARD_PCA10056
4+
-D__CMSIS_RTOS
5+
-DCMSIS_VECTAB_VIRTUAL
6+
-DCMSIS_VECTAB_VIRTUAL_HEADER_FILE=\"cmsis_nvic.h\"
7+
-DCOMPONENT_FLASHIAP=1
8+
-DCONFIG_GPIO_AS_PINRESET
9+
-D__CORTEX_M4
10+
-DDEVICE_ANALOGIN=1
11+
-DDEVICE_FLASH=1
12+
-DDEVICE_I2C=1
13+
-DDEVICE_I2C_ASYNCH=1
14+
-DDEVICE_I2CSLAVE=1
15+
-DDEVICE_INTERRUPTIN=1
16+
-DDEVICE_LPTICKER=1
17+
-DDEVICE_PORTIN=1
18+
-DDEVICE_PORTINOUT=1
19+
-DDEVICE_PORTOUT=1
20+
-DDEVICE_PWMOUT=1
21+
-DDEVICE_SERIAL=1
22+
-DDEVICE_SERIAL_ASYNCH=1
23+
-DDEVICE_SERIAL_FC=1
24+
-DDEVICE_SLEEP=1
25+
-DDEVICE_SPI=1
26+
-DDEVICE_SPI_ASYNCH=1
27+
-DDEVICE_SYSTICK_CLK_OFF_DURING_SLEEP=1
28+
-DDEVICE_TRNG=1
29+
-DDEVICE_USBDEVICE=1
30+
-DDEVICE_USTICKER=1
31+
-DFEATURE_BLE=1
32+
-DFEATURE_CRYPTOCELL310=1
33+
-DFEATURE_STORAGE=1
34+
-D__FPU_PRESENT=1
35+
-D__MBED__=1
36+
-DMBED_BUILD_TIMESTAMP=1595839671.5680196
37+
-D__MBED_CMSIS_RTOS_CM
38+
-DMBED_MPU_CUSTOM
39+
-DMBED_TICKLESS
40+
-DMBEDTLS_CONFIG_HW_SUPPORT
41+
-DNRF52840_XXAA
42+
-DNRF52_PAN_20
43+
-DSWI_DISABLE0
44+
-DTARGET_BAST_FRONTIER
45+
-DTARGET_CORDIO
46+
-DTARGET_CORDIO_LL
47+
-DTARGET_CORTEX
48+
-DTARGET_CORTEX_M
49+
-DTARGET_LIKE_CORTEX_M4
50+
-DTARGET_LIKE_MBED
51+
-DTARGET_M4
52+
-DTARGET_MCU_NRF52840
53+
-DTARGET_NAME=BAST_FRONTIER
54+
-DTARGET_NORDIC
55+
-DTARGET_NORDIC_CORDIO
56+
-DTARGET_NRF52
57+
-DTARGET_NRF52840
58+
-DTARGET_NRF5x
59+
-DTARGET_RELEASE
60+
-DTARGET_RTOS_M4_M7
61+
-DTARGET_SDK_15_0
62+
-DTARGET_SOFTDEVICE_NONE
63+
-DTOOLCHAIN_GCC
64+
-DTOOLCHAIN_GCC_ARM
65+
-DWSF_MAX_HANDLERS=10
66+
-DMBED_NO_GLOBAL_USING_DIRECTIVE=1
67+
-DUSE_ARDUINO_PINOUT

0 commit comments

Comments
 (0)