Skip to content

Commit ff56108

Browse files
committed
Use 0x10000 as base flash for NANO33BLE
1 parent bd7990a commit ff56108

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

mbed-os-to-arduino

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ echo -e "#include \"mbed.h\"\nint main() {Thread thd;}" > main.cpp
2929
echo -e "{\n\"macros\": [\n\"MBED_HEAP_STATS_ENABLED=1\",\n\"MBED_STACK_STATS_ENABLED=1\",\n\"MBED_MEM_TRACING_ENABLED=1\"\n],\n\"target_overrides\": {\n \"*\": {\n\"platform.stdio-buffered-serial\": true,\n\"platform.stdio-baud-rate\": 115200,\n\"platform.default-serial-baud-rate\": 115200\n}\n}\n}\n" > mbed_app.json
3030

3131
if [ $BOARDNAME == "ARDUINO_NANO33BLE" ]; then
32-
echo -e "{\n\"macros\": [\n\"MBED_HEAP_STATS_ENABLED=1\",\n\"MBED_STACK_STATS_ENABLED=1\",\n\"MBED_MEM_TRACING_ENABLED=1\"\n],\n\"target_overrides\": {\n \"*\": {\n\"platform.stdio-buffered-serial\": true,\n\"platform.stdio-baud-rate\": 115200,\n\"platform.default-serial-baud-rate\": 115200,\n\"target.mbed_app_start\": \"0x10200\"}\n}\n}\n" > mbed_app.json
32+
echo -e "{\n\"macros\": [\n\"MBED_HEAP_STATS_ENABLED=1\",\n\"MBED_STACK_STATS_ENABLED=1\",\n\"MBED_MEM_TRACING_ENABLED=1\"\n],\n\"target_overrides\": {\n \"*\": {\n\"platform.stdio-buffered-serial\": true,\n\"platform.stdio-baud-rate\": 115200,\n\"platform.default-serial-baud-rate\": 115200,\n\"target.mbed_app_start\": \"0x10000\"}\n}\n}\n" > mbed_app.json
3333
fi
3434

3535
rm -rf BUILD

variants/ARDUINO_NANO33BLE/cflags.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-std=gnu11
2-
-DAPPLICATION_ADDR=0x10200
3-
-DAPPLICATION_SIZE=0xefe00
2+
-DAPPLICATION_ADDR=0x10000
3+
-DAPPLICATION_SIZE=0xf0000
44
-DMBED_TRAP_ERRORS_ENABLED=1
55
-Os
66
-Wall

variants/ARDUINO_NANO33BLE/cxxflags.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
-Wvla
22
-fno-rtti
33
-std=gnu++14
4-
-DAPPLICATION_ADDR=0x10200
5-
-DAPPLICATION_SIZE=0xefe00
4+
-DAPPLICATION_ADDR=0x10000
5+
-DAPPLICATION_SIZE=0xf0000
66
-DMBED_TRAP_ERRORS_ENABLED=1
77
-Os
88
-Wall

variants/ARDUINO_NANO33BLE/ldflags.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
-DMBED_APP_SIZE=0xefe00
2-
-DMBED_APP_START=0x10200
1+
-DMBED_APP_SIZE=0xf0000
2+
-DMBED_APP_START=0x10000
33
-DMBED_BOOT_STACK_SIZE=2048
44
-Wl,--gc-sections
55
-Wl,--wrap,_calloc_r
0 Bytes
Binary file not shown.

variants/ARDUINO_NANO33BLE/linker_script.ld

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MEMORY
22
{
3-
FLASH (rx) : ORIGIN = 0x10200, LENGTH = 0xefe00
3+
FLASH (rx) : ORIGIN = 0x10000, LENGTH = 0xf0000
44
RAM_NVIC (rwx) : ORIGIN = 0x20000000, LENGTH = 0x100
55
RAM_CRASH_DATA (rwx) : ORIGIN = (0x20000000 + 0x100), LENGTH = 0x100
66
RAM (rwx) : ORIGIN = ((0x20000000 + 0x100) + 0x100), LENGTH = (0x40000 - (0x100 + 0x100))

0 commit comments

Comments
 (0)