Skip to content

Commit 8b502dc

Browse files
committed
Add Stella variant
1 parent 6e79acd commit 8b502dc

17 files changed

+1463
-1
lines changed

stella.variables

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export FLAVOUR="stella"
2-
export VARIANTS=("ARDUINO_NANO33BLE")
2+
export VARIANTS=("STELLA")
33
export FQBNS=("stella")
44
export LIBRARIES=("PDM SPI Wire MRI USBHID USBMIDI USBMSD ThreadDebug Scheduler SFU Nano33BLE_System SocketWrapper MLC")
55
export BOOTLOADERS=("nano33ble")

variants/STELLA/cflags.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
-c
2+
-std=gnu11
3+
-DAPPLICATION_ADDR=0x10000
4+
-DAPPLICATION_SIZE=0xf0000
5+
-DMBED_RAM_SIZE=0x40000
6+
-DMBED_RAM_START=0x20000000
7+
-DMBED_ROM_SIZE=0x100000
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+
-mcpu=cortex-m4
22+
-mfloat-abi=softfp
23+
-mfpu=fpv4-sp-d16
24+
-mthumb

variants/STELLA/conf/.mbedignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
mbed-os/connectivity/drivers/cellular/*
2+
mbed-os/connectivity/nanostack/*

variants/STELLA/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+
"NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS=8",
4+
"NRFX_WDT_ENABLED=1"
5+
],
6+
"target_overrides": {
7+
"*": {
8+
"target.printf_lib": "std",
9+
"platform.stdio-buffered-serial": false,
10+
"platform.stdio-baud-rate": 115200,
11+
"platform.default-serial-baud-rate": 115200,
12+
"platform.callback-nontrivial": true,
13+
"rtos.main-thread-stack-size": 32768,
14+
"cordio.max-connections": 5,
15+
"platform.all-stats-enabled": true,
16+
"target.mbed_app_start": "0x10000"
17+
}
18+
}
19+
}

variants/STELLA/cxxflags.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
-Wvla
2+
-c
3+
-fno-rtti
4+
-std=gnu++14
5+
-DAPPLICATION_ADDR=0x10000
6+
-DAPPLICATION_SIZE=0xf0000
7+
-DMBED_RAM_SIZE=0x40000
8+
-DMBED_RAM_START=0x20000000
9+
-DMBED_ROM_SIZE=0x100000
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+
-mcpu=cortex-m4
24+
-mfloat-abi=softfp
25+
-mfpu=fpv4-sp-d16
26+
-mthumb

variants/STELLA/defines.txt

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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+
-DDEVICE_WATCHDOG=1
32+
-DFEATURE_BLE=1
33+
-DFEATURE_CRYPTOCELL310=1
34+
-DFEATURE_STORAGE=1
35+
-D__FPU_PRESENT=1
36+
-D__MBED__=1
37+
-DMBED_BUILD_TIMESTAMP=1747135494.1730473
38+
-D__MBED_CMSIS_RTOS_CM
39+
-DMBED_MPU_CUSTOM
40+
-DMBED_TICKLESS
41+
-DMBEDTLS_CONFIG_HW_SUPPORT
42+
-DNRF52840_XXAA
43+
-DNRF52_PAN_20
44+
-DSWI_DISABLE0
45+
-DTARGET_ARDUINO_NANO33BLE
46+
-DTARGET_CORDIO
47+
-DTARGET_CORDIO_LL
48+
-DTARGET_CORTEX
49+
-DTARGET_CORTEX_M
50+
-DTARGET_LIKE_CORTEX_M4
51+
-DTARGET_LIKE_MBED
52+
-DTARGET_M4
53+
-DTARGET_MCU_NRF52840
54+
-DTARGET_NAME=ARDUINO_NANO33BLE
55+
-DTARGET_NORDIC
56+
-DTARGET_NORDIC_CORDIO
57+
-DTARGET_NRF52
58+
-DTARGET_NRF52840
59+
-DTARGET_NRF5x
60+
-DTARGET_RELEASE
61+
-DTARGET_RTOS_M4_M7
62+
-DTARGET_SDK_15_0
63+
-DTARGET_SOFTDEVICE_NONE
64+
-DTOOLCHAIN_GCC
65+
-DTOOLCHAIN_GCC_ARM
66+
-DWSF_MAX_HANDLERS=10
67+
-DMBED_NO_GLOBAL_USING_DIRECTIVE=1
68+
-DCORE_MAJOR=
69+
-DCORE_MINOR=
70+
-DCORE_PATCH=
71+
-DUSE_ARDUINO_PINOUT

variants/STELLA/includes.txt

Lines changed: 293 additions & 0 deletions
Large diffs are not rendered by default.

variants/STELLA/ldflags.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
-DMBED_APP_SIZE=0xf0000
2+
-DMBED_APP_START=0x10000
3+
-DMBED_BOOT_STACK_SIZE=1024
4+
-DMBED_RAM_SIZE=0x40000
5+
-DMBED_RAM_START=0x20000000
6+
-DMBED_ROM_SIZE=0x100000
7+
-DMBED_ROM_START=0x0
8+
-DXIP_ENABLE=0
9+
-Wl,--gc-sections
10+
-Wl,--wrap,_calloc_r
11+
-Wl,--wrap,_free_r
12+
-Wl,--wrap,_malloc_r
13+
-Wl,--wrap,_memalign_r
14+
-Wl,--wrap,_realloc_r
15+
-Wl,--wrap,atexit
16+
-Wl,--wrap,exit
17+
-Wl,--wrap,main
18+
-Wl,-n
19+
-mcpu=cortex-m4
20+
-mfloat-abi=softfp
21+
-mfpu=fpv4-sp-d16
22+
-mthumb

variants/STELLA/libs/libcc_310_core.a

222 KB
Binary file not shown.

variants/STELLA/libs/libcc_310_ext.a

11.9 KB
Binary file not shown.

variants/STELLA/libs/libcc_310_trng.a

2.76 KB
Binary file not shown.

variants/STELLA/libs/libmbed.a

5.97 MB
Binary file not shown.

variants/STELLA/linker_script.ld

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
MEMORY
2+
{
3+
FLASH (rx) : ORIGIN = 0x10000, LENGTH = 0xf0000
4+
RAM_NVIC (rwx) : ORIGIN = 0x20000000, LENGTH = 0x100
5+
RAM_CRASH_DATA (rwx) : ORIGIN = (0x20000000 + 0x100), LENGTH = 0x100
6+
RAM (rwx) : ORIGIN = ((0x20000000 + 0x100) + 0x100), LENGTH = (0x40000 - (0x100 + 0x100))
7+
}
8+
OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
9+
ENTRY(Reset_Handler)
10+
SECTIONS
11+
{
12+
.text :
13+
{
14+
KEEP(*(.Vectors))
15+
*(.text*)
16+
KEEP(*(.init))
17+
KEEP(*(.fini))
18+
*crtbegin.o(.ctors)
19+
*crtbegin?.o(.ctors)
20+
*(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
21+
*(SORT(.ctors.*))
22+
*(.ctors)
23+
*crtbegin.o(.dtors)
24+
*crtbegin?.o(.dtors)
25+
*(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
26+
*(SORT(.dtors.*))
27+
*(.dtors)
28+
*(.rodata*)
29+
KEEP(*(.eh_frame*))
30+
} > FLASH
31+
.sdh_soc_observers :
32+
{
33+
PROVIDE(__start_sdh_soc_observers = .);
34+
KEEP(*(SORT(.sdh_soc_observers*)))
35+
PROVIDE(__stop_sdh_soc_observers = .);
36+
} > FLASH
37+
.sdh_stack_observers :
38+
{
39+
PROVIDE(__start_sdh_stack_observers = .);
40+
KEEP(*(SORT(.sdh_stack_observers*)))
41+
PROVIDE(__stop_sdh_stack_observers = .);
42+
} > FLASH
43+
.sdh_req_observers :
44+
{
45+
PROVIDE(__start_sdh_req_observers = .);
46+
KEEP(*(SORT(.sdh_req_observers*)))
47+
PROVIDE(__stop_sdh_req_observers = .);
48+
} > FLASH
49+
.sdh_state_observers :
50+
{
51+
PROVIDE(__start_sdh_state_observers = .);
52+
KEEP(*(SORT(.sdh_state_observers*)))
53+
PROVIDE(__stop_sdh_state_observers = .);
54+
} > FLASH
55+
.sdh_ble_observers :
56+
{
57+
PROVIDE(__start_sdh_ble_observers = .);
58+
KEEP(*(SORT(.sdh_ble_observers*)))
59+
PROVIDE(__stop_sdh_ble_observers = .);
60+
} > FLASH
61+
.ARM.extab :
62+
{
63+
*(.ARM.extab* .gnu.linkonce.armextab.*)
64+
} > FLASH
65+
__exidx_start = .;
66+
.ARM.exidx :
67+
{
68+
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
69+
} > FLASH
70+
__exidx_end = .;
71+
__etext = .;
72+
.data : AT (__etext)
73+
{
74+
__data_start__ = .;
75+
*(vtable)
76+
*(.data*)
77+
. = ALIGN(8);
78+
PROVIDE_HIDDEN (__preinit_array_start = .);
79+
KEEP(*(.preinit_array))
80+
PROVIDE_HIDDEN (__preinit_array_end = .);
81+
. = ALIGN(8);
82+
PROVIDE_HIDDEN (__init_array_start = .);
83+
KEEP(*(SORT(.init_array.*)))
84+
KEEP(*(.init_array))
85+
PROVIDE_HIDDEN (__init_array_end = .);
86+
. = ALIGN(8);
87+
PROVIDE_HIDDEN (__fini_array_start = .);
88+
KEEP(*(SORT(.fini_array.*)))
89+
KEEP(*(.fini_array))
90+
PROVIDE_HIDDEN (__fini_array_end = .);
91+
. = ALIGN(8);
92+
PROVIDE(__start_fs_data = .);
93+
KEEP(*(.fs_data))
94+
PROVIDE(__stop_fs_data = .);
95+
*(.jcr)
96+
. = ALIGN(8);
97+
__data_end__ = .;
98+
} > RAM
99+
__edata = .;
100+
.nvictable (NOLOAD) :
101+
{
102+
PROVIDE(__start_nvictable = .);
103+
KEEP(*(.nvictable))
104+
PROVIDE(__stop_nvictable = .);
105+
} > RAM_NVIC
106+
.crash_data_ram :
107+
{
108+
. = ALIGN(8);
109+
__CRASH_DATA_RAM__ = .;
110+
__CRASH_DATA_RAM_START__ = .;
111+
KEEP(*(.keep.crash_data_ram))
112+
*(.m_crash_data_ram)
113+
. += 0x100;
114+
. = ALIGN(8);
115+
__CRASH_DATA_RAM_END__ = .;
116+
} > RAM_CRASH_DATA
117+
.noinit (NOLOAD) :
118+
{
119+
PROVIDE(__start_noinit = .);
120+
KEEP(*(.noinit))
121+
PROVIDE(__stop_noinit = .);
122+
} > RAM
123+
.bss :
124+
{
125+
. = ALIGN(8);
126+
__bss_start__ = .;
127+
*(.bss*)
128+
*(COMMON)
129+
. = ALIGN(8);
130+
__bss_end__ = .;
131+
} > RAM
132+
.heap (NOLOAD):
133+
{
134+
__end__ = .;
135+
end = __end__;
136+
*(.heap*);
137+
ASSERT(. <= (ORIGIN(RAM) + LENGTH(RAM) - 0x400), "heap region overflowed into stack");
138+
. = ORIGIN(RAM) + LENGTH(RAM) - 0x400;
139+
__HeapLimit = .;
140+
} > RAM
141+
PROVIDE(__heap_start = ADDR(.heap));
142+
PROVIDE(__heap_size = SIZEOF(.heap));
143+
PROVIDE(__mbed_sbrk_start = ADDR(.heap));
144+
PROVIDE(__mbed_krbs_start = ADDR(.heap) + SIZEOF(.heap));
145+
.stack (NOLOAD):
146+
{
147+
__StackLimit = .;
148+
*(.stack*)
149+
. = ORIGIN(RAM) + LENGTH(RAM);
150+
} > RAM
151+
__StackTop = ORIGIN(RAM) + LENGTH(RAM);
152+
__StackLimit = __StackTop - 0x400;
153+
PROVIDE(__stack = __StackTop);
154+
}

0 commit comments

Comments
 (0)