Skip to content

Commit f5ebf66

Browse files
boards: add stm32wle5jc to known boards
This adds the stm32wle5jc chip used in the seeed_studio_lora-E5-HF dev board to tockloader's known board list. Communication intended to occur using stlink over openocd.
1 parent e710fb5 commit f5ebf66

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

tockloader/board_interface.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,18 @@ class BoardInterface:
316316
"flush_command": "probe-rs download {binary} --binary-format bin --base-address 0x10000000 --chip CY8C624AAZI-S2D44",
317317
},
318318
},
319+
"stm32wle5jc": {
320+
"description": "Seeed Studio LoRa-E5 board based on the STM32WLE5JC SoC",
321+
"arch": "cortex-m4",
322+
"page_size": 2048,
323+
"no_attribute_table": True,
324+
"openocd": {
325+
"prefix": "source [find interface/stlink.cfg]; \
326+
transport select hla_swd; \
327+
source [find target/stm32wlx.cfg];",
328+
"address_maximum": 0x08040000,
329+
},
330+
},
319331
}
320332

321333
def __init__(self, args):

tockloader/openocd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def _list_emulators(self):
267267
("(mfg: 0x049 (Xilinx), part: 0x3631, ver: 0x1)", "arty"),
268268
("SWD DPIDR 0x2ba01477", "microbit_v2"),
269269
("stm32f4x.cpu", "stm32f4discovery"),
270-
("stm32wlx.cpu", "stm32wle5jc")
270+
("stm32wlx.cpu", "stm32wle5jc"),
271271
]
272272

273273
emulators = []

tockloader/tockloader.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ class TockLoader:
145145
"cy8cproto_62_4343_w": {
146146
"start_address": 0x10100000,
147147
},
148+
"stm32wle5jc": {
149+
"start_address": 0x8018000,
150+
},
148151
},
149152
}
150153

0 commit comments

Comments
 (0)