aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets
diff options
context:
space:
mode:
authorKenneth Bell <[email protected]>2022-01-09 17:03:04 +0000
committerRon Evans <[email protected]>2022-01-13 07:56:08 +0100
commit14ce531498cf8b936dd159cb4875ff3d8ea6094b (patch)
tree4f37b2aad4e53961f865cfdf5caff29971443921 /targets
parent21c76c0cb0cedadece76a2626c61c951b8d1681d (diff)
downloadtinygo-14ce531498cf8b936dd159cb4875ff3d8ea6094b.tar.gz
tinygo-14ce531498cf8b936dd159cb4875ff3d8ea6094b.zip
stm32: add blues wireless swan
Diffstat (limited to 'targets')
-rw-r--r--targets/stm32l4x5.ld10
-rw-r--r--targets/swan.json13
2 files changed, 23 insertions, 0 deletions
diff --git a/targets/stm32l4x5.ld b/targets/stm32l4x5.ld
new file mode 100644
index 000000000..ccd474867
--- /dev/null
+++ b/targets/stm32l4x5.ld
@@ -0,0 +1,10 @@
+
+MEMORY
+{
+ FLASH_TEXT (rx) : ORIGIN = 0x08000000, LENGTH = 2048K
+ RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 640K
+}
+
+_stack_size = 4K;
+
+INCLUDE "targets/arm.ld" \ No newline at end of file
diff --git a/targets/swan.json b/targets/swan.json
new file mode 100644
index 000000000..fbb46a556
--- /dev/null
+++ b/targets/swan.json
@@ -0,0 +1,13 @@
+{
+ "inherits": ["cortex-m4"],
+ "build-tags": ["swan", "stm32l4r5", "stm32l4x5", "stm32l4", "stm32"],
+ "serial": "uart",
+ "linkerscript": "targets/stm32l4x5.ld",
+ "extra-files": [
+ "src/device/stm32/stm32l4x5.s"
+ ],
+ "flash-method": "command",
+ "flash-command": "dfu-util --alt 0 --dfuse-address 0x08000000 --download {bin}",
+ "openocd-interface": "stlink",
+ "openocd-target": "stm32l4x"
+ } \ No newline at end of file