tinyocd 1.1.0__tar.gz → 1.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tinyocd-1.2.0/LICENSE +21 -0
- {tinyocd-1.1.0 → tinyocd-1.2.0}/PKG-INFO +25 -1
- {tinyocd-1.1.0 → tinyocd-1.2.0}/pyproject.toml +1 -1
- {tinyocd-1.1.0 → tinyocd-1.2.0}/tinyocd/tinyocd.py +15 -9
- {tinyocd-1.1.0 → tinyocd-1.2.0}/tinyocd.egg-info/PKG-INFO +25 -1
- {tinyocd-1.1.0 → tinyocd-1.2.0}/tinyocd.egg-info/SOURCES.txt +1 -0
- {tinyocd-1.1.0 → tinyocd-1.2.0}/README.md +0 -0
- {tinyocd-1.1.0 → tinyocd-1.2.0}/setup.cfg +0 -0
- {tinyocd-1.1.0 → tinyocd-1.2.0}/tinyocd.egg-info/dependency_links.txt +0 -0
- {tinyocd-1.1.0 → tinyocd-1.2.0}/tinyocd.egg-info/entry_points.txt +0 -0
- {tinyocd-1.1.0 → tinyocd-1.2.0}/tinyocd.egg-info/requires.txt +0 -0
- {tinyocd-1.1.0 → tinyocd-1.2.0}/tinyocd.egg-info/top_level.txt +0 -0
tinyocd-1.2.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Stefan Wagner
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tinyocd
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: Programming Tool for STM32, PY32 and SAMD Microcontrollers via CMSIS-DAP, ST-Link or J-Link
|
|
5
5
|
Author-email: Stefan Wagner <wagiminator@web.de>
|
|
6
6
|
Maintainer-email: Stefan Wagner <wagiminator@web.de>
|
|
7
|
+
License: MIT License
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2026 Stefan Wagner
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
in the Software without restriction, including without limitation the rights
|
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions:
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in all
|
|
19
|
+
copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
|
28
|
+
|
|
7
29
|
Project-URL: Homepage, https://wagiminator.github.io/
|
|
8
30
|
Project-URL: Repository, https://github.com/wagiminator/MCU-Flash-Tools
|
|
9
31
|
Project-URL: Issues, https://github.com/wagiminator/MCU-Flash-Tools/issues
|
|
@@ -16,10 +38,12 @@ Classifier: Intended Audience :: Developers
|
|
|
16
38
|
Classifier: Topic :: Software Development :: Embedded Systems
|
|
17
39
|
Requires-Python: >=3.8
|
|
18
40
|
Description-Content-Type: text/markdown
|
|
41
|
+
License-File: LICENSE
|
|
19
42
|
Requires-Dist: pyusb
|
|
20
43
|
Requires-Dist: libusb-package; platform_system == "Windows"
|
|
21
44
|
Provides-Extra: hid
|
|
22
45
|
Requires-Dist: hidapi; extra == "hid"
|
|
46
|
+
Dynamic: license-file
|
|
23
47
|
|
|
24
48
|
# Programming Tool for STM32, PY32 and SAMD Microcontrollers via CMSIS-DAP, ST-Link or J-Link
|
|
25
49
|
## Description
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tinyocd"
|
|
7
|
-
version = "1.
|
|
7
|
+
version = "1.2.0"
|
|
8
8
|
description = "Programming Tool for STM32, PY32 and SAMD Microcontrollers via CMSIS-DAP, ST-Link or J-Link"
|
|
9
9
|
keywords = ["SWD", "ARM", "Cortex-M", "STM32", "PY32", "PUYA", "SAMD", "ATSAMD21", "CMSIS-DAP", "DAPLink", "ST-Link", "J-Link", "microcontroller"]
|
|
10
10
|
dependencies = ["pyusb", "libusb-package; platform_system == 'Windows'"]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# ===================================================================================
|
|
3
3
|
# Project: tinyOCD - Programming Tool for STM32, PY32 and SAMD Microcontrollers
|
|
4
4
|
# via CMSIS-DAP (DAPLink), ST-Link or J-Link
|
|
5
|
-
# Version: v1.
|
|
5
|
+
# Version: v1.2
|
|
6
6
|
# Year: 2026
|
|
7
7
|
# Author: Stefan Wagner
|
|
8
8
|
# Github: https://github.com/wagiminator
|
|
@@ -2414,6 +2414,10 @@ def stm32_chip(target, part, devid, dev):
|
|
|
2414
2414
|
lock = False
|
|
2415
2415
|
return Chip(name, drv, base, size, 0x20000000, ramkb * 1024, regions, bootpin, nrst, lock)
|
|
2416
2416
|
|
|
2417
|
+
# DBGMCU_IDCODE DEV_ID of PY32F0 devices (the PY32F07x has its own IDCODE):
|
|
2418
|
+
# 0x000: PY32F002A/F003/F030 and early PY32F002B, 0x064: production PY32F002B
|
|
2419
|
+
PY32_DEV_IDS = (0x000, 0x064)
|
|
2420
|
+
|
|
2417
2421
|
def py32_chip(target, idcode):
|
|
2418
2422
|
if idcode is None:
|
|
2419
2423
|
return None
|
|
@@ -2424,15 +2428,17 @@ def py32_chip(target, idcode):
|
|
|
2424
2428
|
flash = ((v & 7) + 1) << 14 # 16 KB units (max. 128 KB)
|
|
2425
2429
|
return Chip('PY32F07x', PY32Flash(target, 'f07x'), 0x08000000, flash, 0x20000000, 0x2000,
|
|
2426
2430
|
bootpin='option', nrst=True)
|
|
2427
|
-
|
|
2431
|
+
devid = idcode & 0xFFF
|
|
2432
|
+
if devid not in PY32_DEV_IDS or idcode in (0, 0xFFFFFFFF):
|
|
2428
2433
|
return None
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2434
|
+
if devid == 0x000: # PY32F002A/F003/F030 (DEV_ID 0)
|
|
2435
|
+
v = target.try_read32(0x1FFF0FFC)
|
|
2436
|
+
t = target.try_read32(0x1FFF0F1C)
|
|
2437
|
+
if v not in (None, 0, 0xFFFFFFFF) and t not in (None, 0, 0xFFFFFFFF):
|
|
2438
|
+
flash, ram = ((v & 7) + 1) << 13, (((v >> 4) & 3) + 1) << 11
|
|
2439
|
+
return Chip('PY32F002A/F003/F030', PY32Flash(target, 'f0xx'), 0x08000000, flash, 0x20000000, ram,
|
|
2440
|
+
bootpin='option', nrst=True)
|
|
2441
|
+
t = target.try_read32(0x1FFF011C) # PY32F002B (DEV_ID 0 or 0x064)
|
|
2436
2442
|
if t not in (None, 0, 0xFFFFFFFF):
|
|
2437
2443
|
return Chip('PY32F002B', PY32Flash(target, 'f002b'), 0x08000000, 0x6000, 0x20000000, 0xC00,
|
|
2438
2444
|
bootpin=None, nrst=True, lock=False)
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tinyocd
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: Programming Tool for STM32, PY32 and SAMD Microcontrollers via CMSIS-DAP, ST-Link or J-Link
|
|
5
5
|
Author-email: Stefan Wagner <wagiminator@web.de>
|
|
6
6
|
Maintainer-email: Stefan Wagner <wagiminator@web.de>
|
|
7
|
+
License: MIT License
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2026 Stefan Wagner
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
in the Software without restriction, including without limitation the rights
|
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions:
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in all
|
|
19
|
+
copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
|
28
|
+
|
|
7
29
|
Project-URL: Homepage, https://wagiminator.github.io/
|
|
8
30
|
Project-URL: Repository, https://github.com/wagiminator/MCU-Flash-Tools
|
|
9
31
|
Project-URL: Issues, https://github.com/wagiminator/MCU-Flash-Tools/issues
|
|
@@ -16,10 +38,12 @@ Classifier: Intended Audience :: Developers
|
|
|
16
38
|
Classifier: Topic :: Software Development :: Embedded Systems
|
|
17
39
|
Requires-Python: >=3.8
|
|
18
40
|
Description-Content-Type: text/markdown
|
|
41
|
+
License-File: LICENSE
|
|
19
42
|
Requires-Dist: pyusb
|
|
20
43
|
Requires-Dist: libusb-package; platform_system == "Windows"
|
|
21
44
|
Provides-Extra: hid
|
|
22
45
|
Requires-Dist: hidapi; extra == "hid"
|
|
46
|
+
Dynamic: license-file
|
|
23
47
|
|
|
24
48
|
# Programming Tool for STM32, PY32 and SAMD Microcontrollers via CMSIS-DAP, ST-Link or J-Link
|
|
25
49
|
## Description
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|