Skip to content

Commit

Permalink
Update to SoftDevice 7.3.0 for wio-sdk-wm1110 and wio-tracker-wm1110 (m…
Browse files Browse the repository at this point in the history
…eshtastic#4248)

* Update variant.h

* Update wio-tracker-wm1110.json

* Update wio-sdk-wm1110.json

* Update platformio.ini

* Update platformio.ini

* Add files via upload

* Add files via upload

* Update variant.h
  • Loading branch information
markbirss authored Jul 7, 2024
1 parent 86ca81b commit e1bf4c3
Show file tree
Hide file tree
Showing 42 changed files with 18,116 additions and 8 deletions.
6 changes: 3 additions & 3 deletions boards/wio-sdk-wm1110.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"arduino": {
"ldscript": "nrf52840_s140_v6.ld"
"ldscript": "nrf52840_s140_v7.ld"
},
"core": "nRF5",
"cpu": "cortex-m4",
Expand All @@ -15,8 +15,8 @@
"softdevice": {
"sd_flags": "-DS140",
"sd_name": "s140",
"sd_version": "6.1.1",
"sd_fwid": "0x00B6"
"sd_version": "7.3.0",
"sd_fwid": "0x0123"
},
"bootloader": {
"settings_addr": "0xFF000"
Expand Down
6 changes: 3 additions & 3 deletions boards/wio-tracker-wm1110.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"arduino": {
"ldscript": "nrf52840_s140_v6.ld"
"ldscript": "nrf52840_s140_v7.ld"
},
"core": "nRF5",
"cpu": "cortex-m4",
Expand All @@ -22,8 +22,8 @@
"softdevice": {
"sd_flags": "-DS140",
"sd_name": "s140",
"sd_version": "6.1.1",
"sd_fwid": "0x00B6"
"sd_version": "7.3.0",
"sd_fwid": "0x0123"
},
"bootloader": {
"settings_addr": "0xFF000"
Expand Down
38 changes: 38 additions & 0 deletions variants/wio-sdk-wm1110/nrf52840_s140_v7.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/* Linker script to configure memory regions. */

SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)

MEMORY
{
FLASH (rx) : ORIGIN = 0x27000, LENGTH = 0xED000 - 0x27000

/* SRAM required by Softdevice depend on
* - Attribute Table Size (Number of Services and Characteristics)
* - Vendor UUID count
* - Max ATT MTU
* - Concurrent connection peripheral + central + secure links
* - Event Len, HVN queue, Write CMD queue
*/
RAM (rwx) : ORIGIN = 0x20006000, LENGTH = 0x20040000 - 0x20006000
}

SECTIONS
{
. = ALIGN(4);
.svc_data :
{
PROVIDE(__start_svc_data = .);
KEEP(*(.svc_data))
PROVIDE(__stop_svc_data = .);
} > RAM

.fs_data :
{
PROVIDE(__start_fs_data = .);
KEEP(*(.fs_data))
PROVIDE(__stop_fs_data = .);
} > RAM
} INSERT AFTER .data;

INCLUDE "nrf52_common.ld"
3 changes: 2 additions & 1 deletion variants/wio-sdk-wm1110/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ board_level = extra
build_flags = ${nrf52840_base.build_flags} -Ivariants/wio-sdk-wm1110 -DWIO_WM1110
-L "${platformio.libdeps_dir}/${this.__env__}/bsec2/src/cortex-m4/fpv4-sp-d16-hard"
-DGPS_POWER_TOGGLE ; comment this line to disable triple press function on the user button to turn off gps entirely.
board_build.ldscript = variants/wio-sdk-wm1110/nrf52840_s140_v7.ld
build_src_filter = ${nrf52_base.build_src_filter} +<../variants/wio-sdk-wm1110>
lib_deps =
${nrf52840_base.lib_deps}
Expand All @@ -30,4 +31,4 @@ debug_extra_cmds =
echo Running .gdbinit script
commands 1
set useSoftDevice = false
end
end
Loading

0 comments on commit e1bf4c3

Please sign in to comment.