Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tockloader/board_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,17 @@ class BoardInterface:
"no_attribute_table": True,
"linkserver": {"device": "LPC55S69"},
},
"stm32wle5jc": {
"description": "Seeed Studio LoRa-E5 board based on the STM32WLE5JC SoC",
"arch": "cortex-m4",
"page_size": 2048,
"no_attribute_table": True,
"openocd": {
"prefix": "source [find interface/stlink.cfg]; \
transport select hla_swd; \
source [find target/stm32wlx.cfg];",
},
},
}

def __init__(self, args):
Expand Down
6 changes: 6 additions & 0 deletions tockloader/openocd.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ def _list_emulators(self):
openocd_cmd=self.openocd_cmd
)
)
openocd_commands.append(
'{openocd_cmd} -c "source [find interface/stlink.cfg]; transport select hla_swd; source [find target/stm32wlx.cfg]; init; exit;"'.format(
openocd_cmd=self.openocd_cmd
)
)

# These are the magic strings in the output of openocd we are looking
# for. If there is a better way to do this then we should change. But,
Expand All @@ -259,6 +264,7 @@ def _list_emulators(self):
("(mfg: 0x049 (Xilinx), part: 0x3631, ver: 0x1)", "arty"),
("SWD DPIDR 0x2ba01477", "microbit_v2"),
("stm32f4x.cpu", "stm32f4discovery"),
("stm32wlx.cpu", "stm32wle5jc"),
]

emulators = []
Expand Down
3 changes: 3 additions & 0 deletions tockloader/tockloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ class TockLoader:
"lpc55s69": {
"start_address": 0x20000,
},
"stm32wle5jc": {
"start_address": 0x8018000,
},
},
}

Expand Down
Loading