Skip to content

Commit 0814d08

Browse files
committed
Added LoRa Thing Plus for 2.0.2 Core
- Generated mbed resources for variant
1 parent e051352 commit 0814d08

30 files changed

+833
-3482
lines changed

boards.txt

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -315,39 +315,46 @@ sfe_artemis_module.menu.loader.option_asb.build.ldscript={runtime.platform.path}
315315
sfe_artemis_module.menu.loader.option_svl.upload.tool=svl
316316
sfe_artemis_module.menu.loader.option_svl.build.ldscript={runtime.platform.path}/tools/uploaders/svl/0x10000.ld
317317

318+
318319
###############################################################
319320

320321
lora_thing_plus.name=LoRa Thing Plus expLoRaBLE
321-
lora_thing_plus.build.variant=expLoRaBLE
322-
lora_thing_plus.build.board=expLoRaBLE
323-
lora_thing_plus.upload.maximum_size=960000
322+
lora_thing_plus.build.core=arduino
323+
lora_thing_plus.build.variant=LoRa_THING_PLUS_expLoRaBLE
324+
lora_thing_plus.build.board=LoRa_THING_PLUS_expLoRaBLE
325+
lora_thing_plus.upload.maximum_size=983040
326+
lora_thing_plus.upload.maximum_data_size=393216
327+
lora_thing_plus.build.export_format=bin
324328
lora_thing_plus.upload.sbl_baud=115200
325329
lora_thing_plus.build.arch=APOLLO3
326330
lora_thing_plus.build.mcu=cortex-m4
327331
lora_thing_plus.build.f_cpu=48000000L
328-
lora_thing_plus.build.core=arduino
329-
lora_thing_plus.build.includes="-I{build.variant.path}/config" "-I{build.variant.path}/bsp"
330-
lora_thing_plus.build.extra_flags=-DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3
331-
lora_thing_plus.build.ldscript={build.variant.path}/linker_scripts/gcc/artemis_sbl_svl_app.ld
332+
lora_thing_plus.build.includes=
333+
lora_thing_plus.build.defines=
332334
lora_thing_plus.build.preferred_export_format=bin
333335
lora_thing_plus.build.defs=
334336
lora_thing_plus.build.libs=
337+
338+
335339
lora_thing_plus.menu.svl_baud.921600=921600
336340
lora_thing_plus.menu.svl_baud.460800=460800
337341
lora_thing_plus.menu.svl_baud.230400=230400
338342
lora_thing_plus.menu.svl_baud.115200=115200
339343
lora_thing_plus.menu.svl_baud.57600=57600
340-
lora_thing_plus.menu.loader.sparkfun_svl=SparkFun Variable Loader (Recommended)
341-
lora_thing_plus.menu.loader.ambiq_sbl=Ambiq Secure Bootloader (Advanced)
344+
lora_thing_plus.menu.loader.option_asb=Ambiq Secure Bootloader (Recommended)
345+
lora_thing_plus.menu.loader.option_svl=SparkFun Variable Loader (Out of Order)
342346

343347
lora_thing_plus.menu.svl_baud.57600.upload.svl_baud=57600
344348
lora_thing_plus.menu.svl_baud.115200.upload.svl_baud=115200
345349
lora_thing_plus.menu.svl_baud.230400.upload.svl_baud=230400
346350
lora_thing_plus.menu.svl_baud.460800.upload.svl_baud=460800
347351
lora_thing_plus.menu.svl_baud.921600.upload.svl_baud=921600
348352

349-
lora_thing_plus.menu.loader.ambiq_sbl.upload.tool=ambiq_bin2board
350-
lora_thing_plus.menu.loader.ambiq_sbl.build.ldscript={build.variant.path}/linker_scripts/gcc/ambiq_sbl_app.ld
353+
lora_thing_plus.upload.asb_baud=115200
354+
355+
356+
lora_thing_plus.menu.loader.option_asb.upload.tool=asb
357+
lora_thing_plus.menu.loader.option_asb.build.ldscript={runtime.platform.path}/tools/uploaders/asb/0xC000.ld
351358

352-
lora_thing_plus.menu.loader.sparkfun_svl.upload.tool=artemis_svl
353-
lora_thing_plus.menu.loader.sparkfun_svl.build.ldscript={build.variant.path}/linker_scripts/gcc/artemis_sbl_svl_app.ld
359+
lora_thing_plus.menu.loader.option_svl.upload.tool=svl
360+
lora_thing_plus.menu.loader.option_svl.build.ldscript={runtime.platform.path}/tools/uploaders/svl/0x10000.ld
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
// This file is subject to the terms and conditions defined in
3+
// file 'LICENSE.md', which is part of this source code package.
4+
*/
5+
6+
#include "bridge/pins.h"
7+
8+
const pin_size_t variantPinCount = 25;
9+
10+
PinState variantPinStates[variantPinCount] = {
11+
{D0, 0, NULL, /*NULL, NULL, NULL,*/ NULL},
12+
{D1, 1, NULL, /*NULL, NULL, NULL,*/ NULL},
13+
{D2, 2, NULL, /*NULL, NULL, NULL,*/ NULL},
14+
{D3, 3, NULL, /*NULL, NULL, NULL,*/ NULL},
15+
{D4, 4, NULL, /*NULL, NULL, NULL,*/ NULL},
16+
{D5, 5, NULL, /*NULL, NULL, NULL,*/ NULL},
17+
{D6, 6, NULL, /*NULL, NULL, NULL,*/ NULL},
18+
{D7, 7, NULL, /*NULL, NULL, NULL,*/ NULL},
19+
{D8, 8, NULL, /*NULL, NULL, NULL,*/ NULL},
20+
{D9, 9, NULL, /*NULL, NULL, NULL,*/ NULL},
21+
{D10, 10, NULL, /*NULL, NULL, NULL,*/ NULL},
22+
{D11, 11, NULL, /*NULL, NULL, NULL,*/ NULL},
23+
{D12, 12, NULL, /*NULL, NULL, NULL,*/ NULL},
24+
{D13, 13, NULL, /*NULL, NULL, NULL,*/ NULL},
25+
{D14, 14, NULL, /*NULL, NULL, NULL,*/ NULL},
26+
{D15, 15, NULL, /*NULL, NULL, NULL,*/ NULL},
27+
{D16, 16, NULL, /*NULL, NULL, NULL,*/ NULL},
28+
{D17, 17, NULL, /*NULL, NULL, NULL,*/ NULL},
29+
{D18, 18, NULL, /*NULL, NULL, NULL,*/ NULL},
30+
{D19, 19, NULL, /*NULL, NULL, NULL,*/ NULL},
31+
{D20, 20, NULL, /*NULL, NULL, NULL,*/ NULL},
32+
{D21, 21, NULL, /*NULL, NULL, NULL,*/ NULL},
33+
{D22, 22, NULL, /*NULL, NULL, NULL,*/ NULL},
34+
{D23, 23, NULL, /*NULL, NULL, NULL,*/ NULL},
35+
{D24, 24, NULL, /*NULL, NULL, NULL,*/ NULL},
36+
37+
//{D36, 36, NULL, /*NULL, NULL, NULL,*/ NULL},
38+
//{D38, 38, NULL, /*NULL, NULL, NULL,*/ NULL},
39+
//{D39, 39, NULL, /*NULL, NULL, NULL,*/ NULL},
40+
//{D42, 42, NULL, /*NULL, NULL, NULL,*/ NULL},
41+
//{D43, 43, NULL, /*NULL, NULL, NULL,*/ NULL},
42+
//{D44, 44, NULL, /*NULL, NULL, NULL,*/ NULL},
43+
//{D47, 47, NULL, /*NULL, NULL, NULL,*/ NULL},
44+
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
// This file is subject to the terms and conditions defined in
3+
// file 'LICENSE.md', which is part of this source code package.
4+
*/
5+
6+
#ifndef _VARIANT_PINS_H_
7+
#define _VARIANT_PINS_H_
8+
9+
#define LED_BUILTIN pinNumberByName(LED1)
10+
11+
#endif // _VARIANT_PINS_H_
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-c -x assembler-with-cpp

variants/LoRa_THING_PLUS_expLoRaBLE/mbed/.asm-macros

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-DAM_PACKAGE_BGA -DARM_MATH_CM4 -DCORDIO_ZERO_COPY_HCI -DUSE_AMBIQ_DRIVER -D__CMSIS_RTOS -D__CORTEX_M4 -D__FPU_PRESENT=1 -D__MBED_CMSIS_RTOS_CM
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-c -std=gnu11 -DMBED_MINIMAL_PRINTF -DMBED_TRAP_ERRORS_ENABLED=1 -MMD -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

variants/LoRa_THING_PLUS_expLoRaBLE/mbed/.c-macros

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-DAM_PACKAGE_BGA -DARM_MATH_CM4 -DCOMPONENT_FLASHIAP=1 -DCORDIO_ZERO_COPY_HCI -DDEVICE_FLASH=1 -DDEVICE_I2C=1 -DDEVICE_INTERRUPTIN=1 -DDEVICE_LPTICKER=1 -DDEVICE_MPU=1 -DDEVICE_SERIAL=1 -DDEVICE_SPI=1 -DDEVICE_STDIO_MESSAGES=1 -DDEVICE_USTICKER=1 -DFEATURE_BLE=1 -DTARGET_AMA3B1KK -DTARGET_Ambiq_Micro -DTARGET_Apollo3 -DTARGET_CORDIO -DTARGET_CORTEX -DTARGET_CORTEX_M -DTARGET_FAMILY_Apollo3 -DTARGET_LIKE_CORTEX_M4 -DTARGET_LIKE_MBED -DTARGET_LoRa_THING_PLUS_expLoRaBLE -DTARGET_M4 -DTARGET_NAME=LoRa_THING_PLUS_expLoRaBLE -DTARGET_RELEASE -DTARGET_RTOS_M4_M7 -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DUSE_AMBIQ_DRIVER -D__CMSIS_RTOS -D__CORTEX_M4 -D__FPU_PRESENT=1 -D__MBED_CMSIS_RTOS_CM -D__MBED__=1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-Wvla -c -fno-rtti -std=gnu++14 -DMBED_MINIMAL_PRINTF -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

0 commit comments

Comments
 (0)