micropython-stubber 1.24.1__py3-none-any.whl → 1.24.4__py3-none-any.whl
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.
- {micropython_stubber-1.24.1.dist-info → micropython_stubber-1.24.4.dist-info}/METADATA +9 -29
- micropython_stubber-1.24.4.dist-info/RECORD +107 -0
- {micropython_stubber-1.24.1.dist-info → micropython_stubber-1.24.4.dist-info}/WHEEL +1 -1
- stubber/__init__.py +1 -1
- stubber/board/createstubs.py +44 -38
- stubber/board/createstubs_db.py +17 -12
- stubber/board/createstubs_db_min.py +63 -63
- stubber/board/createstubs_db_mpy.mpy +0 -0
- stubber/board/createstubs_mem.py +17 -12
- stubber/board/createstubs_mem_min.py +99 -99
- stubber/board/createstubs_mem_mpy.mpy +0 -0
- stubber/board/createstubs_min.py +111 -112
- stubber/board/createstubs_mpy.mpy +0 -0
- stubber/board/modulelist.txt +27 -27
- stubber/codemod/board.py +1 -1
- stubber/codemod/enrich.py +13 -13
- stubber/codemod/merge_docstub.py +83 -53
- stubber/codemod/visitors/type_helpers.py +143 -41
- stubber/commands/enrich_folder_cmd.py +17 -17
- stubber/commands/get_docstubs_cmd.py +27 -9
- stubber/commands/get_frozen_cmd.py +1 -0
- stubber/commands/merge_cmd.py +2 -4
- stubber/merge_config.py +5 -36
- stubber/minify.py +3 -3
- stubber/modcat.py +118 -0
- stubber/publish/merge_docstubs.py +22 -5
- stubber/publish/stubpackage.py +33 -28
- stubber/rst/lookup.py +6 -23
- stubber/rst/reader.py +8 -13
- stubber/stubs_from_docs.py +2 -1
- stubber/tools/manifestfile.py +2 -1
- stubber/{cst_transformer.py → typing_collector.py} +36 -4
- micropython_stubber-1.24.1.dist-info/RECORD +0 -161
- mpflash/README.md +0 -220
- mpflash/libusb_flash.ipynb +0 -203
- mpflash/mpflash/__init__.py +0 -0
- mpflash/mpflash/add_firmware.py +0 -98
- mpflash/mpflash/ask_input.py +0 -236
- mpflash/mpflash/basicgit.py +0 -324
- mpflash/mpflash/bootloader/__init__.py +0 -2
- mpflash/mpflash/bootloader/activate.py +0 -60
- mpflash/mpflash/bootloader/detect.py +0 -82
- mpflash/mpflash/bootloader/manual.py +0 -101
- mpflash/mpflash/bootloader/micropython.py +0 -12
- mpflash/mpflash/bootloader/touch1200.py +0 -36
- mpflash/mpflash/cli_download.py +0 -129
- mpflash/mpflash/cli_flash.py +0 -224
- mpflash/mpflash/cli_group.py +0 -111
- mpflash/mpflash/cli_list.py +0 -87
- mpflash/mpflash/cli_main.py +0 -39
- mpflash/mpflash/common.py +0 -217
- mpflash/mpflash/config.py +0 -44
- mpflash/mpflash/connected.py +0 -96
- mpflash/mpflash/download.py +0 -364
- mpflash/mpflash/downloaded.py +0 -138
- mpflash/mpflash/errors.py +0 -9
- mpflash/mpflash/flash/__init__.py +0 -55
- mpflash/mpflash/flash/esp.py +0 -59
- mpflash/mpflash/flash/stm32.py +0 -19
- mpflash/mpflash/flash/stm32_dfu.py +0 -104
- mpflash/mpflash/flash/uf2/__init__.py +0 -88
- mpflash/mpflash/flash/uf2/boardid.py +0 -15
- mpflash/mpflash/flash/uf2/linux.py +0 -136
- mpflash/mpflash/flash/uf2/macos.py +0 -42
- mpflash/mpflash/flash/uf2/uf2disk.py +0 -12
- mpflash/mpflash/flash/uf2/windows.py +0 -43
- mpflash/mpflash/flash/worklist.py +0 -170
- mpflash/mpflash/list.py +0 -106
- mpflash/mpflash/logger.py +0 -41
- mpflash/mpflash/mpboard_id/__init__.py +0 -98
- mpflash/mpflash/mpboard_id/add_boards.py +0 -262
- mpflash/mpflash/mpboard_id/board.py +0 -37
- mpflash/mpflash/mpboard_id/board_id.py +0 -90
- mpflash/mpflash/mpboard_id/board_info.zip +0 -0
- mpflash/mpflash/mpboard_id/store.py +0 -48
- mpflash/mpflash/mpremoteboard/__init__.py +0 -271
- mpflash/mpflash/mpremoteboard/mpy_fw_info.py +0 -152
- mpflash/mpflash/mpremoteboard/runner.py +0 -140
- mpflash/mpflash/vendor/board_database.py +0 -185
- mpflash/mpflash/vendor/click_aliases.py +0 -91
- mpflash/mpflash/vendor/dfu.py +0 -165
- mpflash/mpflash/vendor/pydfu.py +0 -605
- mpflash/mpflash/vendor/readme.md +0 -12
- mpflash/mpflash/versions.py +0 -123
- mpflash/poetry.lock +0 -2603
- mpflash/pyproject.toml +0 -66
- mpflash/stm32_udev_rules.md +0 -63
- stubber/codemod/test_enrich.py +0 -87
- {micropython_stubber-1.24.1.dist-info → micropython_stubber-1.24.4.dist-info}/LICENSE +0 -0
- {micropython_stubber-1.24.1.dist-info → micropython_stubber-1.24.4.dist-info}/entry_points.txt +0 -0
@@ -1,161 +0,0 @@
|
|
1
|
-
mpflash/libusb_flash.ipynb,sha256=7RGtGg1mPPMWrfJOobOfYYwAAhsFpykpTJtfNwevY9o,6631
|
2
|
-
mpflash/mpflash/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
-
mpflash/mpflash/add_firmware.py,sha256=1h0HsA-EVi3HXLmoEvzwY_a-GuWYzPwulTYHHBB8THg,3428
|
4
|
-
mpflash/mpflash/ask_input.py,sha256=RJHGGrhYniSu-bdoKnKptE3DtpiCREJGRTZmFazvG-E,8946
|
5
|
-
mpflash/mpflash/basicgit.py,sha256=NO27JTPUsnMWQ2bKI_zsIFsFTfCZO3QKbvQ23kIehxU,10734
|
6
|
-
mpflash/mpflash/bootloader/__init__.py,sha256=Qy3E6tETPnzMga9LgD5UgOvJ0zZIBEqhtEVb4v8CTWQ,107
|
7
|
-
mpflash/mpflash/bootloader/activate.py,sha256=FlO4XQlKyoOuvmDdj_0u_mjNPhjGwB_K17jQ-8nSXRA,2361
|
8
|
-
mpflash/mpflash/bootloader/detect.py,sha256=fBrILi7-ICRaregqms3PYqwiQVAJC0rXVhpyzDkoPQI,2690
|
9
|
-
mpflash/mpflash/bootloader/manual.py,sha256=2IfxrTFRso78FezVMTOrXMEojamFDDTXrAM9g1SbjNA,3170
|
10
|
-
mpflash/mpflash/bootloader/micropython.py,sha256=v_kZkvg0uWZDbMrT78gmiYHbD83QLdnrctvEClI8iRg,529
|
11
|
-
mpflash/mpflash/bootloader/touch1200.py,sha256=hQ2Ng2zkvnCnQ4A7Sir4SuW3nlSu1ojUfHCLbIiDjrE,1119
|
12
|
-
mpflash/mpflash/cli_download.py,sha256=6p83u0Iqyq-V6zS_zQbngSgnCnE0thNPR02r_12_d_Y,3660
|
13
|
-
mpflash/mpflash/cli_flash.py,sha256=pVqEsDocDT3KmIMTpXdym-ZlzThLSIp6oVtYib65dys,7595
|
14
|
-
mpflash/mpflash/cli_group.py,sha256=VWwYHiPVV19sQEr5lL8LlcPyZ-A6Gs79eMDJy8LLt90,2615
|
15
|
-
mpflash/mpflash/cli_list.py,sha256=ja21AZ4yghGTtOHkEtV1EOmT6EYxOiU2gzJc-mZaDto,2427
|
16
|
-
mpflash/mpflash/cli_main.py,sha256=5EkvzsqOUDXvNaW814oSUcPWeNhnwh78Sg0MteDv_fk,1133
|
17
|
-
mpflash/mpflash/common.py,sha256=umTouKs5Wb7Q2zOaaoO9nqmlpHIaiDBRIGYIkZMBVO8,7558
|
18
|
-
mpflash/mpflash/config.py,sha256=tdpvAvAlpco1GfeG2evn5tAKYluLEanqwrrvkir7QcQ,1073
|
19
|
-
mpflash/mpflash/connected.py,sha256=woYhuXoWpfzRMDUpBLVQZbVTGtMsKWNd5z1rsR1ELXA,3578
|
20
|
-
mpflash/mpflash/download.py,sha256=wE4uBSFFMAKOBH4jwHweL0wVYh4vi74t1673ku_IeoA,14305
|
21
|
-
mpflash/mpflash/downloaded.py,sha256=nxTWU4lvhcthqvVmzpYHnXCnjD8wJv0KFq2KtaoTO1A,5160
|
22
|
-
mpflash/mpflash/errors.py,sha256=IAidY3qkZsXy6Pm1rdmVFmGyg81ywHhse3itaPctA2w,247
|
23
|
-
mpflash/mpflash/flash/__init__.py,sha256=g4Fp8MiquaDZXIvRJwYRkkll1MMyRud7x6qmwCk9Lgo,2096
|
24
|
-
mpflash/mpflash/flash/esp.py,sha256=CRF8sfIyuDZoYC1luBy92zLm6Qz3dnBBWjuJ3A4_crE,2284
|
25
|
-
mpflash/mpflash/flash/stm32.py,sha256=dqp9BZ4Vr-6GlQcF12TSmRf-5TXkov9qvCpMgeUJc7Y,574
|
26
|
-
mpflash/mpflash/flash/stm32_dfu.py,sha256=W-3JsRQyf3DduoIRXDmGZ35RogqtjQgcJnk-GOtQoLE,3090
|
27
|
-
mpflash/mpflash/flash/uf2/__init__.py,sha256=ucTg1pg7TruwPjecCPWYRpCwWPz-rngv7UYaQ_bMzww,2854
|
28
|
-
mpflash/mpflash/flash/uf2/boardid.py,sha256=U5wGM8VA3wEpUxQCMtuXpMZZomdVH8J_Zd5_GekUMuU,423
|
29
|
-
mpflash/mpflash/flash/uf2/linux.py,sha256=UgoF_GhJdxA2NvfcFNV69YuDg3v4ueLM0epsDzmfKK0,4440
|
30
|
-
mpflash/mpflash/flash/uf2/macos.py,sha256=TGGijlnMJy3RDhdPS3WsPOE2lWFOQbqC3xn4cxLu8GA,1229
|
31
|
-
mpflash/mpflash/flash/uf2/uf2disk.py,sha256=4_P2l-kedM7VSliA2u706LQLxvu3xWSod1-lj-xjZis,298
|
32
|
-
mpflash/mpflash/flash/uf2/windows.py,sha256=v89eXA3QwZxilCazi3Z--yY8UNtZ94trNEJ6U7XUuXA,1333
|
33
|
-
mpflash/mpflash/flash/worklist.py,sha256=owS3xJbWC-SzbK9z6jQER0Kat3OIV09IxnV-f-tjGlY,5998
|
34
|
-
mpflash/mpflash/list.py,sha256=lP_S5xbC0Men9HsXcIxOsP0bFRlCYh5CynMLFJx8cEE,3607
|
35
|
-
mpflash/mpflash/logger.py,sha256=dI_H_a7EOdQJyvoeRHQuYeZuTKYVUS3DUPTLhE9rkdM,1098
|
36
|
-
mpflash/mpflash/mpboard_id/__init__.py,sha256=b9PJiKFqmfyYgfi0-pbWGp2mrljdgvO6DNy0ABS8izU,3898
|
37
|
-
mpflash/mpflash/mpboard_id/add_boards.py,sha256=Bc83FctlVl4u4j0xeKTfEkuQj0WWIqxtdUF1P5RTAvY,9900
|
38
|
-
mpflash/mpflash/mpboard_id/board.py,sha256=JKb4T67HmK7widW-4c1PgilvywMbZYToLk9Fyokm-6Q,1163
|
39
|
-
mpflash/mpflash/mpboard_id/board_id.py,sha256=MnDWPqp0OqCkWD3E1Mhg-g20qASgPVHdROOCdr5TpOU,3249
|
40
|
-
mpflash/mpflash/mpboard_id/board_info.zip,sha256=DC_yHwL8A8IC0YsA2ZXjlRLZkLKiw03k4FR2HSTfBXw,21328
|
41
|
-
mpflash/mpflash/mpboard_id/store.py,sha256=n85vnUAxGKv1C23wkm22ZFAFGK6AZZiCFvc1lGJJjis,1703
|
42
|
-
mpflash/mpflash/mpremoteboard/__init__.py,sha256=Vydc7jZai32lrGTUjwylZT9U8yulsgLIk39mnuI_k9I,9666
|
43
|
-
mpflash/mpflash/mpremoteboard/mpy_fw_info.py,sha256=eRjhqN7MpmYE9TiS4iukquZZs3QE_lD5zv_vOPSjNrk,4821
|
44
|
-
mpflash/mpflash/mpremoteboard/runner.py,sha256=-PgzAeBGbyXaAUlwyiw4mcINsP2U1XRRjP1_QdBrxpg,4786
|
45
|
-
mpflash/mpflash/vendor/board_database.py,sha256=QE3oXj96oTAsx94gNfHMYWu_RgBTHW1v9Wp5dq_Dt-Q,5253
|
46
|
-
mpflash/mpflash/vendor/click_aliases.py,sha256=c853EHSlkE2DvFqeFvFpwXKuJj3_jsXDP7iotVOKaAw,3156
|
47
|
-
mpflash/mpflash/vendor/dfu.py,sha256=ZXMcE6aH4-43Wh4tbQT4U-q-BU3RUiL3JAxmP_QAK2s,5755
|
48
|
-
mpflash/mpflash/vendor/pydfu.py,sha256=_MdBRo1EeNeKDqFPSTB5tNL1jGSBJgsVeVjE5e7Pb8s,20542
|
49
|
-
mpflash/mpflash/vendor/readme.md,sha256=KcCbOVb_-9V6Cwwd0J01Avx4LuZphe9UJ40Gs-Hocf4,327
|
50
|
-
mpflash/mpflash/versions.py,sha256=qGkE2LTzQ1QDyHc9-wzsHsRrN7PWK69xt0Vq3EVojms,4452
|
51
|
-
mpflash/poetry.lock,sha256=h9PjfKhgsKMhwVkecxegCs2A85IKJOihQMez9KEhChU,198917
|
52
|
-
mpflash/pyproject.toml,sha256=Cowj0SqNAu6Elc9WuYZiSa6QJVCNxQfiDW0ePV_d2Ak,1779
|
53
|
-
mpflash/README.md,sha256=ogIHXiV_8H4g9KiWPdb5DVih5D3-H6wihC0G1SLYB5U,16045
|
54
|
-
mpflash/stm32_udev_rules.md,sha256=uxvC8FvU7K0R1QQUqCIvVfW9yfWYlIHhIVtirAjQVHE,2684
|
55
|
-
stubber/__init__.py,sha256=4nWBb6MXbNFcvjay3e-iWpKCCrPXSMBb6DEARyFVfOw,49
|
56
|
-
stubber/board/board_info.csv,sha256=K2VSmfR013fN-oJWkQUmiQ19w09dVwJHDquPy6QmMhY,8627
|
57
|
-
stubber/board/boot.py,sha256=XjWlKErU5nI1HJSugXIP_3hlwgRQboE6sJrpcbSygnk,1120
|
58
|
-
stubber/board/createstubs.py,sha256=h4S7Ng8bdK6jTH8E53T9b08whCPOwaHKb8t9aRYIz4U,34022
|
59
|
-
stubber/board/createstubs_db.py,sha256=Vo7lEctHVBAHtjj9NM3VrU0dA5CahcsDoEnoc6C5Cw8,30821
|
60
|
-
stubber/board/createstubs_db_min.py,sha256=_dVETGA9aGBy209AUnKchbV4FNjlXhaBqR4hSVgQ7t0,11754
|
61
|
-
stubber/board/createstubs_db_mpy.mpy,sha256=VEYnF75gUFpBpbdrRKC2hiIBlgf7_oUZy0mKGIbWv2I,9801
|
62
|
-
stubber/board/createstubs_lvgl.py,sha256=CTe7eq1ACRK_JJxavaqDD8znn29nSWJiHHTZ_ps6EhM,27217
|
63
|
-
stubber/board/createstubs_lvgl_min.py,sha256=jLkWYmeboI2A8feMC7pT7cYWttLejQTuX7WAEZCylhw,27207
|
64
|
-
stubber/board/createstubs_lvgl_mpy.mpy,sha256=ex-nlq2V5e8anQBJvRWEEc-FzU7nlwg5NSrZ8vOadIA,9267
|
65
|
-
stubber/board/createstubs_mem.py,sha256=2-K0inLm3niauu7se9RptYYfba4XDteJhNydj06tTXs,29157
|
66
|
-
stubber/board/createstubs_mem_min.py,sha256=jXiAsirAJLBjCt5n5pHoGTgDDMPUQoxeIyulWxW-3ZY,11300
|
67
|
-
stubber/board/createstubs_mem_mpy.mpy,sha256=sU_Jd0AYhoOv6iq3z9hED0cjXCzcNzV0ZkLKV_JfEQE,9380
|
68
|
-
stubber/board/createstubs_min.py,sha256=oluEUcUvjV22Lb91foK3osa4A-LZZuvotQQE8qm-d5U,14132
|
69
|
-
stubber/board/createstubs_mpy.mpy,sha256=BTF2FWCuMZJGyzCjIgtbZmCJgLK7TRytUOCm6cK4YIE,12832
|
70
|
-
stubber/board/fw_info.py,sha256=6AQbN3jtQgllqWQYl4e-63KeEtV08EXk8_JnM6XBkvo,4554
|
71
|
-
stubber/board/info.py,sha256=b7SOPZHVsVhaayKCwVkFZlYu0BW-UFI7LuG1Eop9480,5629
|
72
|
-
stubber/board/main.py,sha256=f6V3tdt6sPZVLuwemT-NLuK9GySfW2c2J6PJMOOWQQw,413
|
73
|
-
stubber/board/modulelist.txt,sha256=zSWH7b9Tgy3f8NBmJddI0cwvlNsAty_opGNQM6OfQZM,3037
|
74
|
-
stubber/board/pyrightconfig.json,sha256=6oHS4aDOfwKBAFeUPsCGJzEXpUgBZsPaF0M4P-N26D4,1376
|
75
|
-
stubber/bulk/mcu_stubber.py,sha256=_DLUf0SlYZRIAPRsHInIbQYwTmWF9U9-nFfWQ9D3k3w,15731
|
76
|
-
stubber/codemod/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
77
|
-
stubber/codemod/_partials/__init__.py,sha256=LVJ-QkEKlc5IqOZ-bYrNXWRd9J5eolsTR_kRTyS9p6w,1430
|
78
|
-
stubber/codemod/_partials/db_main.py,sha256=ZKzxV0LOEyHu1zcsBr4xRf9i1a4Jyh808sdbmcmkrWE,4003
|
79
|
-
stubber/codemod/_partials/lvgl_main.py,sha256=9BAJP6P1R2SQVbNya2ujes35eATa56D_Ri2_PjeRBq0,1964
|
80
|
-
stubber/codemod/_partials/modules_reader.py,sha256=dJj-H0ncUWVtilSyohQ-dyiUZOjQObds_-llwy_LkYU,2046
|
81
|
-
stubber/codemod/add_comment.py,sha256=CZMjtKO9aarZo1E60QXo80CLJAH05z_ylK6Vvjvb0ls,1965
|
82
|
-
stubber/codemod/add_method.py,sha256=fZH-RGi_pzFpi3tF_0AMDbA9A94dlgXMrc3ItpY3Ylw,2609
|
83
|
-
stubber/codemod/board.py,sha256=HDNS8saQIdoPH74MNG9mte0MRBqCOcy3d6f_I0H9J2I,11881
|
84
|
-
stubber/codemod/enrich.py,sha256=mrnhPLgjYQZvxaeMPAcZ_459-XC5rw_SAKsFxLtlMYo,12788
|
85
|
-
stubber/codemod/merge_docstub.py,sha256=fgi0PVRhN9gGzcOfCUW0ni-C54oGYUKwc5Yk2FsCS3U,22081
|
86
|
-
stubber/codemod/modify_list.py,sha256=xrpFBKug273D9E02owUheZD418BvsIHIZCFj4YDjTxU,2118
|
87
|
-
stubber/codemod/test_enrich.py,sha256=ckJtwo4PsXckcnZGk_2gxRRLQkfKI650pVmdByw_pVo,2820
|
88
|
-
stubber/codemod/utils.py,sha256=3hk7pwyS4KZxewrWLwbOrdA5ympbum-kfL0ZN-M7rlo,2459
|
89
|
-
stubber/codemod/visitors/type_helpers.py,sha256=FBV6wwPtBiWwZTqEpdhVw-Jghi-gxyMVZE4SyGn7uRU,6812
|
90
|
-
stubber/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
91
|
-
stubber/commands/build_cmd.py,sha256=Zseci4EHxJuiiy7YS-ucmMokDrVLe4j6fPs-PSbwq1k,2813
|
92
|
-
stubber/commands/cli.py,sha256=HY4CqB0PPTmzew2sABNsHeNKDPblcGzzbmvtF46oVsU,1556
|
93
|
-
stubber/commands/clone_cmd.py,sha256=QyKnU3calhVx-rhlfzbeZbqgBFFTzfoYeKHNH9qmfgM,2781
|
94
|
-
stubber/commands/config_cmd.py,sha256=e8heX27MXfazLxMVtgjK4dsLCWhsoCfdeYGVoH3rqtA,1211
|
95
|
-
stubber/commands/enrich_folder_cmd.py,sha256=UfJFYdxmGVN0Bcu2Jb_Q36BiX5kzzK-bvfz26zq1eG4,2276
|
96
|
-
stubber/commands/get_core_cmd.py,sha256=Ua_10gdwOX9ceHY4SLV36esdTWbCwGtQ593A-qR_pgg,2323
|
97
|
-
stubber/commands/get_docstubs_cmd.py,sha256=KFbuRgoLtBa_aPE3vp1WJypQ1lGrL3nA9kUpFa-_2Jk,4723
|
98
|
-
stubber/commands/get_frozen_cmd.py,sha256=lhR6ylm_GL8VdXklN8T0liMtUK3nr1Xx7v8qsnxea6w,4216
|
99
|
-
stubber/commands/get_mcu_cmd.py,sha256=CTQVIoGqBx6gwUp1aH1gOysVFEZbeqMvpPb2WJA4EVQ,2807
|
100
|
-
stubber/commands/merge_cmd.py,sha256=Iy_gwW35Ob6G_W9nMLT4rHyZXknT_YvypHd3owH93QI,1683
|
101
|
-
stubber/commands/publish_cmd.py,sha256=eo052T3k0YW6m0gJJ3hoZbchd0whMr74z3MudHKthIQ,3275
|
102
|
-
stubber/commands/stub_cmd.py,sha256=eqhZJ2cyt1-jPxSaywUP8Sn4hPbdCnMQp5TSnZji6gk,1216
|
103
|
-
stubber/commands/switch_cmd.py,sha256=yeK9rNkIl8WicheUGHnK5u7YrV5iR1KBEILVUfbOQtA,1866
|
104
|
-
stubber/commands/variants_cmd.py,sha256=Q7DjPElEfSHhDxAlvtiGHWv9e47QPSLYMIs0ScfI7AA,1296
|
105
|
-
stubber/cst_transformer.py,sha256=xcarTUQMrC0x4InFEgixWvfvA9hEupiw_AUfPFXPxS4,7997
|
106
|
-
stubber/data/board_info.csv,sha256=K2VSmfR013fN-oJWkQUmiQ19w09dVwJHDquPy6QmMhY,8627
|
107
|
-
stubber/data/board_info.json,sha256=jyvBN5seoxx7Z7B3UpvMn7H8xWCpmG4VtFSPb8PjmZI,58939
|
108
|
-
stubber/data/micropython_tags.csv,sha256=HQnzPN7jLmgKX3QvobsPMZa-xMb0exglriFziBjaRz8,1909
|
109
|
-
stubber/data/requirements-core-micropython.txt,sha256=6RQWWbLh8YVcD_l1-hjg6wX_Fm1LmNEwy5NExKJIkeg,1317
|
110
|
-
stubber/data/requirements-core-pycopy.txt,sha256=tW71l6FIuoQY1tuxkDgeN4Uw8IIp0YrlhhaaqSGSOA8,1051
|
111
|
-
stubber/downloader.py,sha256=L0ZgXv-0JfPgPpzDqP66q8Guu0QiN_vgWuB_t_lKmRA,1206
|
112
|
-
stubber/freeze/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
113
|
-
stubber/freeze/common.py,sha256=GA8DaEBsWLTNvVCWZMmtI9i9Ih5aVzK5DfNWMoCbFa4,3306
|
114
|
-
stubber/freeze/freeze_folder.py,sha256=49rSh6LHbVweDM6QCoe8Pku0gyEOzz7nOtaivyJ56LE,2490
|
115
|
-
stubber/freeze/freeze_manifest_2.py,sha256=BNjjw30WhdI8I_L3rBRRGyoCDCk8O3-MZcM0AScSZBI,4455
|
116
|
-
stubber/freeze/get_frozen.py,sha256=ojxUO-Fiy-Tn49Tv_puQrBtZ0dxQEmWj2HfWmHmGODQ,5355
|
117
|
-
stubber/get_cpython.py,sha256=Qnug4TlytwrqBRXCNGnRIMGW63zVcQL_8Ua93eTbrc8,3885
|
118
|
-
stubber/get_lobo.py,sha256=jyysWbeEwNuZZtkTudJP1QbyVvh-TwFom5cE7iCi9lE,1776
|
119
|
-
stubber/merge_config.py,sha256=9utehqu0X8CHKKrNdDrfQU3U-zD6a8SGx27bGtI8uqs,3829
|
120
|
-
stubber/minify.py,sha256=DBVwAJdzEA0Xkx5ZJlyCdFgQuxYeM62GZqtdEd1sAUU,15084
|
121
|
-
stubber/publish/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
122
|
-
stubber/publish/bump.py,sha256=qSb1DpaIxgyoH3YcPU1XKyDKgqkomxSm0WWf1sAVh0Y,3262
|
123
|
-
stubber/publish/candidates.py,sha256=w_OzjVU9euaWGf1lC3p5FuwpP1YDXjjGoczFE41QAik,10820
|
124
|
-
stubber/publish/database.py,sha256=8wCr19i_6x00spvHlfzlz5nRcfhTgEPeNUnHHRZ967Q,1851
|
125
|
-
stubber/publish/defaults.py,sha256=naAyHN_k8OFQfqRnXlPU3HNA0IZll-NA5GuJEvDEG_k,1532
|
126
|
-
stubber/publish/enums.py,sha256=Z_x798ArtxyjQIRRY43GDGNB9BD4uPfpeGsXYdj31w0,780
|
127
|
-
stubber/publish/helpers.py,sha256=909umfKUHBMBoVnAanop1vKx8loCrWntlfiiG6z89lY,716
|
128
|
-
stubber/publish/merge_docstubs.py,sha256=-E8wkTDgeFzpxQNiiuzSpQ50HrjP_jaf2QfRbnn50Po,5825
|
129
|
-
stubber/publish/package.py,sha256=XbPRw5aTgS53ptPmSpGlEsiIGHKWloG2-cgN2PxSaw8,5374
|
130
|
-
stubber/publish/pathnames.py,sha256=vORgygaOJJAjlI3cLhNTHfowdewSDsv7zck5evPe1cY,1803
|
131
|
-
stubber/publish/publish.py,sha256=fG95ANcdZibwWW_ZoqjhPpolswb17IOi-gTIpNPwjKc,3989
|
132
|
-
stubber/publish/pypi.py,sha256=LdvwLfjkkSFBTI4MHyl7Ko_ZWn1SflWxJ9uo2mtPKtc,1272
|
133
|
-
stubber/publish/stubpackage.py,sha256=J0c3H2ZRoqaol63V1ZA3RXtpSXq8oUtkNJ0nqsOnvOg,47647
|
134
|
-
stubber/rst/__init__.py,sha256=5VcbDCotIICa2xnJDs_gw2sFXpjjGOZZbwCrNKXy1OE,293
|
135
|
-
stubber/rst/classsort.py,sha256=-Uji6LzBbX6voKmiXSuexJXyoQ3fmSDQ7Fuz4j1Kk8E,2655
|
136
|
-
stubber/rst/lookup.py,sha256=qrFdxMiG7D3iC9ECrJ0JKYKL-tDRbMIFnlJrHi1hEXU,26169
|
137
|
-
stubber/rst/output_dict.py,sha256=cpBXRtUD-uh0EgjWIBiRrMLBmIAEXjoJFSOAg-qJQiU,14755
|
138
|
-
stubber/rst/reader.py,sha256=CEPtp_9fmYqAtKMFdyW0UgPMshuNFfqRyU2K6jRnvhs,35197
|
139
|
-
stubber/rst/report_return.py,sha256=p0JfJs_WTWTtRZREcQeqUgDW-_TP2VuuX7k7-c49y5E,3024
|
140
|
-
stubber/rst/rst_utils.py,sha256=-F6J09-WQBzI5419ItzOlm4gUKxF4BMru2OyXx-M6ko,18314
|
141
|
-
stubber/stubber.py,sha256=GxLfHIzDyfFvgiTqMj9DB3tq7I3EnEUNbdoCtYr8gHM,1640
|
142
|
-
stubber/stubs_from_docs.py,sha256=pYrw8gkXbDcOtmrJnxEuzxrLmMWzclrDJEeszKPEZnU,3535
|
143
|
-
stubber/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
144
|
-
stubber/tools/manifestfile.py,sha256=j8ug2gtM52j-eMORLszSyqUPdcfRUrhdaaFIGSbLnaM,25751
|
145
|
-
stubber/tools/readme.md,sha256=uI0higcFUtjSLKobn7NK2LoqZ0BqcbftXSDgNjbsnzo,284
|
146
|
-
stubber/update_fallback.py,sha256=mFxFvcLWl-5IX9BdRuo_WMa538Wtomo2sE14jKbW7-0,4913
|
147
|
-
stubber/update_module_list.py,sha256=OEAOnFxB8Ywakw0pxiiTrIplWmoJ9r3Cdn07EpVDmNY,4038
|
148
|
-
stubber/utils/__init__.py,sha256=73LiuTInDABhDhnDixU8ojlkVUjR5e3Uv8QNaeBMG0E,234
|
149
|
-
stubber/utils/config.py,sha256=wPmSSut9PWjLFzr_8jj7IwkrVsL4mq17X8DGOeRqXGw,5544
|
150
|
-
stubber/utils/makeversionhdr.py,sha256=dO8sWLAY_ifT1IJJ1-JJ2z_thvfqJnK3c1_bHF_UI28,1953
|
151
|
-
stubber/utils/manifest.py,sha256=KEeFwVCke2XlUv8-g9S10DaoHzISZDxZn0G4LrHn2vA,3239
|
152
|
-
stubber/utils/post.py,sha256=lHGPO_q-ZQgx03P0vEwZDVr0pCNt5-gY-DXW62DBeQM,2926
|
153
|
-
stubber/utils/repos.py,sha256=piUZwtHBXXJ-XPhvw_qXYqO-fy1ktZsb9-7CAwNo2YQ,5896
|
154
|
-
stubber/utils/stubmaker.py,sha256=pO8Bo9JuHo6eeJGJz4hO2PzVJojNYFdJPdVtlgjKkBI,5236
|
155
|
-
stubber/utils/typed_config_toml.py,sha256=ZR7eo-whyL4nhFXj6xs7E121sLuE-ivlUDevII4K2xg,2653
|
156
|
-
stubber/variants.py,sha256=NnwUP-aiGUPAn15BeRRFcBWQUOzAFFnN2oL4u9zio-s,3792
|
157
|
-
micropython_stubber-1.24.1.dist-info/entry_points.txt,sha256=JoR8NWh8t6pbDyn0WOMCIfRfDQAOGxqbOgJWuxv3Cxw,116
|
158
|
-
micropython_stubber-1.24.1.dist-info/LICENSE,sha256=Fx9qrL45ayRXgH6QzttboqZEjKXms0w1t_b_nkOqYCU,1572
|
159
|
-
micropython_stubber-1.24.1.dist-info/METADATA,sha256=6Gnlh9EeIuyneLSALgsqwbQFFeQxhvM1cjrOyza-vHs,25020
|
160
|
-
micropython_stubber-1.24.1.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
161
|
-
micropython_stubber-1.24.1.dist-info/RECORD,,
|
mpflash/README.md
DELETED
@@ -1,220 +0,0 @@
|
|
1
|
-
# MPFLASH
|
2
|
-
[](https://pypi.org/project/mpflash/)
|
3
|
-
[](https://badgen.net/pypi/python/mpflash)
|
4
|
-
[](https://pepy.tech/project/mpflash)
|
5
|
-
|
6
|
-
|
7
|
-
`mpflash` is a command-line tool for working with MicroPython firmware. It provides features to help you flash and update Micropython on one or more .
|
8
|
-
|
9
|
-
This tool was initially created to be used in a CI/CD pipeline to automate the process of downloading and flashing MicroPython firmware to multiple boards, but it has been extend with a TUI to be used for manual downloadig, flashing and development.
|
10
|
-
|
11
|
-
`mpflash` has been tested on:
|
12
|
-
- OS: Windows x64, Linux X64, and macOS.
|
13
|
-
- Micropython (hardware) ports:
|
14
|
-
- `rp2`, using `.uf2`, using filecopy
|
15
|
-
- `samd`, using ` .uf2`, using filecopy
|
16
|
-
- `esp32`, using `.bin`, using esptool,
|
17
|
-
- `esp8266`, using `.bin`, using esptool
|
18
|
-
- `stm32`, using ` .dfu`, using pydfu
|
19
|
-
|
20
|
-
Not yet implemented: `nrf`, `cc3200`, `mimxrt`, `renesas`
|
21
|
-
|
22
|
-
## Features
|
23
|
-
1. List the connected boards including their firmware details, in a tabular or json format
|
24
|
-
2. Download MicroPython firmware for versions, and matching a specified board or matches your current attached board.
|
25
|
-
3. Flash one or all connected MicroPython boards with a specific firmware or version.
|
26
|
-
|
27
|
-
## Installation
|
28
|
-
To install mpflash, you can use: `pipx install mpflash` or `pip install mpflash`
|
29
|
-
|
30
|
-
## Basic usage
|
31
|
-
You can use mpflash to perform various operations on your MicroPython boards. Here is an example of basic usage:
|
32
|
-
|
33
|
-
| Command | Description |
|
34
|
-
|---------|-------------|
|
35
|
-
| `mpflash list` | List the connected board(s) including their firmware details |
|
36
|
-
| `mpflash download` | Download the MicroPython firmware(s) for the connected board(s) |
|
37
|
-
| `mpflash flash` | Flash the latest stable firmware to the connected board(s) |
|
38
|
-
|
39
|
-
## selecting or ignoring specific serial ports
|
40
|
-
|
41
|
-
You can use the `--serial` option to select a specific serial port to flash, or the `--ignore` option to ignore a specific serial port.
|
42
|
-
both options can be specified multiple times
|
43
|
-
Both can be globs (e.g. COM*) or exact port names (e.g. COM1)
|
44
|
-
in addition there is a --bluetooth option to simplify ignoring bluetooth ports
|
45
|
-
|
46
|
-
```
|
47
|
-
--serial,--serial-port -s SERIALPORT Serial port(s) (or globs) to list. [default: *] > > --ignore -i SERIALPORT Serial port(s) (or globs) to ignore. Defaults to MPFLASH_IGNORE. │
|
48
|
-
--bluetooth/--no-bluetooth -b/-nb Include bluetooth ports in the list [default: no-bluetooth]
|
49
|
-
```
|
50
|
-
|
51
|
-
## Distinguishing similar boards
|
52
|
-
The `mpflash list` command will list all connected boards, but sometimes you have multiple boards of the same type connected.
|
53
|
-
To help you identify the boards, you can add a board_info.toml file to the top/default folder for the board.
|
54
|
-
This file can contain a description of the board, which will be shown in the list and json output.
|
55
|
-
```toml
|
56
|
-
description = "Blue Norwegian actuator"
|
57
|
-
```
|
58
|
-
|
59
|
-
If you want the board to be ignored by mpflash, you can add the following to the board_info.toml file:
|
60
|
-
```toml
|
61
|
-
[mpflash]
|
62
|
-
ignore = true
|
63
|
-
```
|
64
|
-
|
65
|
-
|
66
|
-
## Linux permissions to access usb devices
|
67
|
-
In order to flash the firmware to the board, you need to have the correct permissions to access the USB devices.
|
68
|
-
On Windows this will not be an issue, but on Linux you can use udev rules to give non-root users access to the USB devices.
|
69
|
-
[See the stm32_permissions documentation](./stm32_udev_rules.md) for more information.
|
70
|
-
|
71
|
-
|
72
|
-
## Detailed usage
|
73
|
-
You can list the connected boards using the following command:
|
74
|
-
```bash
|
75
|
-
$> mpflash list
|
76
|
-
Connected boards
|
77
|
-
┏━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━┓
|
78
|
-
┃ Serial ┃Family ┃Port ┃Board ┃CPU ┃Version ┃build ┃
|
79
|
-
┡━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━┩
|
80
|
-
│ COM21 │micropython │rp2 │RPI_PICO │RP2040 │v1.23.0-preview │ 236 │
|
81
|
-
│ │ │ │Raspberry Pi Pico with RP2040 │ │ │ │
|
82
|
-
│ COM23 │micropython │rp2 │RPI_PICO_W │RP2040 │v1.23.0-preview │ 176 │
|
83
|
-
│ │ │ │Raspberry Pi Pico W with RP2040 │ │ │ │
|
84
|
-
│ COM9 │micropython │rp2 │ARDUINO_NANO_RP2040_CONNECT │RP2040 │v1.23.0-preview │ 341 │
|
85
|
-
│ │ │ │Arduino Nano RP2040 Connect with RP2040 │ │ │ │
|
86
|
-
└─────────┴─────────────┴──────┴───────────────────────────────────────────┴────────┴─────────────────┴──────┘
|
87
|
-
```
|
88
|
-
## Download the firmware
|
89
|
-
|
90
|
-
To download the MicroPython firmware for some boards, use the following command:
|
91
|
-
- `mpflash download` download the latest stable firmware for all connected boards
|
92
|
-
- `mpflash download --version preview` download the current preview for all connected boards
|
93
|
-
- `mpflash download --board ESP8266_GENERIC --board SEEED_WIO_TERMINAL` download these specific boards
|
94
|
-
- `mpflash download --version ? --board ?` prompt to select a specific version and board to download
|
95
|
-
|
96
|
-
These will try to download the prebuilt MicroPython firmware for the boards from https://micropython.org/download/ and save it in your downloads folder in the `firmware` directory.
|
97
|
-
The stable version (default) is determined based on the most recent published release,
|
98
|
-
other options are `--version stable`, `--version preview` and `--version x.y.z` to download the latest stable, preview or version x.y.z respectively.
|
99
|
-
|
100
|
-
By default the firmware will be downloaded to your OS's preferred `Downloads/firmware` folder, but you can speciy a different directory using the `--dir` option.
|
101
|
-
|
102
|
-
The directory structure will be something like this:
|
103
|
-
|
104
|
-
``` text
|
105
|
-
Downloads/firmware
|
106
|
-
| firmware.jsonl
|
107
|
-
+---esp8266
|
108
|
-
| ESP8266_GENERIC-FLASH_1M-v1.22.2.bin
|
109
|
-
| ESP8266_GENERIC-FLASH_512K-v1.22.2.bin
|
110
|
-
| ESP8266_GENERIC-OTA-v1.22.2.bin
|
111
|
-
| ESP8266_GENERIC-v1.22.2.bin
|
112
|
-
\---samd
|
113
|
-
SEEED_WIO_TERMINAL-v1.22.2.uf2
|
114
|
-
```
|
115
|
-
|
116
|
-
## Flashing the firmware
|
117
|
-
After you have downloaded a firmware you can flash the firmware to a board using the following command: `mpflash flash`
|
118
|
-
This will (try to) autodetect the connected boards, and determine the correct firmware to flash to each board.
|
119
|
-
|
120
|
-
- `mpflash flash` will flash the latest stable firmware to all connected boards.
|
121
|
-
If you have a board withouth a running micropython version, you will need to specify the board and the serial port to flash.
|
122
|
-
- `mpflash flash --serial ? --board ?` will prompt to select a specific serial port and board to flash. (the firmware must be dowloaded earlier)
|
123
|
-
|
124
|
-
In order to flash the firmware some boards need to be put in bootloader mode, this is done automatically by mpflash where possible and supported by the boards hardware and current bootloader.
|
125
|
-
The supported `--bootloader` options are:
|
126
|
-
|
127
|
-
- `touch1200` bootloader is activated by connecting to the board at 1200 baud
|
128
|
-
- `mpy` using micropython to enter the bootloader
|
129
|
-
- `manual` manual intervention is needed to enter the bootloader
|
130
|
-
- `none` mpflash assumes the board is ready to flash
|
131
|
-
|
132
|
-
For ESP32 and ESP8266 boards the `esptool` is used to flash the firmware, and this includes activating the bootloader.
|
133
|
-
|
134
|
-
### Flashing all connected boards with the latest stable firmware
|
135
|
-
```bash
|
136
|
-
> mpflash flash
|
137
|
-
22:15:55 | ℹ️ - Using latest stable version: v1.22.2
|
138
|
-
Connected boards
|
139
|
-
┏━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━┓
|
140
|
-
┃ Serial ┃ Family ┃ Port ┃ Board ┃ CPU ┃ Version ┃ build ┃
|
141
|
-
┡━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━┩
|
142
|
-
│ COM11 │ micropython │ rp2 │ RPI_PICO_W │ RP2040 │ 1.20.0 │ │
|
143
|
-
│ COM12 │ micropython │ esp8266 │ ESP8266_GENERIC │ ESP8266 │ 1.22.2 │ │
|
144
|
-
│ COM18 │ micropython │ rp2 │ RPI_PICO_W │ RP2040 │ 1.23.0-preview │ 155 │
|
145
|
-
│ COM3 │ micropython │ samd │ SEEED_WIO_TERMINAL │ SAMD51P19A │ 1.23.0-preview │ 155 │
|
146
|
-
│ COM5 │ micropython │ stm32 │ PYBV11 │ STM32F405RG │ 1.23.0-preview │ 166 │
|
147
|
-
│ COM8 │ micropython │ esp32 │ ESP32_GENERIC_S3 │ ESP32S3 │ 1.23.0-preview │ 155 │
|
148
|
-
└────────┴─────────────┴─────────┴────────────────────┴─────────────┴────────────────┴───────┘
|
149
|
-
22:15:58 | ℹ️ - Found v1.22.2 firmware rp2\RPI_PICO_W-v1.22.2.uf2 for RPI_PICO_W on COM11.
|
150
|
-
22:15:58 | ℹ️ - Found v1.22.2 firmware esp8266\ESP8266_GENERIC-v1.22.2.bin for ESP8266_GENERIC on COM12.
|
151
|
-
22:15:58 | ℹ️ - Found v1.22.2 firmware rp2\RPI_PICO_W-v1.22.2.uf2 for RPI_PICO_W on COM18.
|
152
|
-
22:15:58 | ℹ️ - Found v1.22.2 firmware samd\SEEED_WIO_TERMINAL-v1.22.2.uf2 for SEEED_WIO_TERMINAL on COM3.
|
153
|
-
22:15:58 | ⚠️ - Trying to find a firmware for the board PYBV11
|
154
|
-
22:15:58 | ❌ - No v1.22.2 firmware found for PYBV11 on COM5.
|
155
|
-
22:15:58 | ⚠️ - Trying to find a firmware for the board ESP32-GENERIC-S3
|
156
|
-
22:15:58 | ❌ - No v1.22.2 firmware found for ESP32_GENERIC_S3 on COM8.
|
157
|
-
22:15:58 | ℹ️ - Updating RPI_PICO_W on COM11 to 1.22.2
|
158
|
-
22:15:58 | ℹ️ - Erasing not yet implemented for UF2 flashing.
|
159
|
-
22:15:58 | ℹ️ - Entering UF2 bootloader on RPI_PICO_W on COM11
|
160
|
-
22:15:58 | ℹ️ - Waiting for mcu to mount as a drive : 10 seconds left
|
161
|
-
22:15:59 | ℹ️ - Waiting for mcu to mount as a drive : 9 seconds left
|
162
|
-
22:16:00 | ℹ️ - Board is in bootloader mode
|
163
|
-
22:16:00 | ℹ️ - Copying firmware\rp2\RPI_PICO_W-v1.22.2.uf2 to F:
|
164
|
-
22:16:13 | ✅ - Done copying, resetting the board and wait for it to restart
|
165
|
-
22:16:23 | ℹ️ - Updating ESP8266_GENERIC on COM12 to 1.22.2
|
166
|
-
22:16:23 | ℹ️ - Flashing firmware\esp8266\ESP8266_GENERIC-v1.22.2.bin on ESP8266_GENERIC on COM12
|
167
|
-
22:16:23 | ℹ️ - Running esptool --chip ESP8266 --port COM12 erase_flash
|
168
|
-
esptool.py v4.7.0
|
169
|
-
Serial port COM12
|
170
|
-
Connecting....
|
171
|
-
...
|
172
|
-
Chip erase completed successfully in 6.5s
|
173
|
-
Hard resetting via RTS pin...
|
174
|
-
22:16:31 | ℹ️ - Running esptool --chip ESP8266 --port COM12 -b 460800 write_flash --flash_size=detect 0x0 firmware\esp8266\ESP8266_GENERIC-v1.22.2.bin
|
175
|
-
esptool.py v4.7.0
|
176
|
-
Serial port COM12
|
177
|
-
Connecting....
|
178
|
-
...
|
179
|
-
Leaving...
|
180
|
-
Hard resetting via RTS pin...
|
181
|
-
22:16:43 | ℹ️ - Done flashing, resetting the board and wait for it to restart
|
182
|
-
22:16:49 | ✅ - Flashed 1.22.2 to ESP8266_GENERIC on COM12 done
|
183
|
-
22:16:49 | ℹ️ - Updating RPI_PICO_W on COM18 to 1.22.2
|
184
|
-
22:16:49 | ℹ️ - Erasing not yet implemented for UF2 flashing.
|
185
|
-
22:16:49 | ℹ️ - Entering UF2 bootloader on RPI_PICO_W on COM18
|
186
|
-
22:16:49 | ℹ️ - Waiting for mcu to mount as a drive : 10 seconds left
|
187
|
-
22:16:50 | ℹ️ - Waiting for mcu to mount as a drive : 9 seconds left
|
188
|
-
22:16:51 | ℹ️ - Board is in bootloader mode
|
189
|
-
22:16:51 | ℹ️ - Copying firmware\rp2\RPI_PICO_W-v1.22.2.uf2 to F:[/bold]
|
190
|
-
22:17:02 | ✅ - Done copying, resetting the board and wait for it to restart
|
191
|
-
22:17:12 | ℹ️ - Updating SEEED_WIO_TERMINAL on COM3 to 1.22.2
|
192
|
-
22:17:12 | ℹ️ - Erasing not yet implemented for UF2 flashing.
|
193
|
-
22:17:12 | ℹ️ - Entering UF2 bootloader on SEEED_WIO_TERMINAL on COM3
|
194
|
-
22:17:12 | ℹ️ - Waiting for mcu to mount as a drive : 10 seconds left
|
195
|
-
22:17:13 | ℹ️ - Waiting for mcu to mount as a drive : 9 seconds left
|
196
|
-
22:17:14 | ℹ️ - Board is in bootloader mode
|
197
|
-
22:17:14 | ℹ️ - Copying firmware\samd\SEEED_WIO_TERMINAL-v1.22.2.uf2 to F:[/bold]
|
198
|
-
22:17:17 | ✅ - Done copying, resetting the board and wait for it to restart
|
199
|
-
22:17:27 | ℹ️ - Flashed 4 boards
|
200
|
-
Connected boards after flashing
|
201
|
-
┏━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━┓
|
202
|
-
┃ Serial ┃ Family ┃ Port ┃ Board ┃ CPU ┃ Version ┃ build ┃
|
203
|
-
┡━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━┩
|
204
|
-
│ COM11 │ micropython │ rp2 │ RPI_PICO_W │ RP2040 │ 1.22.2 │ │
|
205
|
-
│ COM12 │ micropython │ esp8266 │ ESP8266_GENERIC │ ESP8266 │ 1.22.2 │ │
|
206
|
-
│ COM18 │ micropython │ rp2 │ RPI_PICO_W │ RP2040 │ 1.22.2 │ │
|
207
|
-
│ COM3 │ micropython │ samd │ SEEED_WIO_TERMINAL │ SAMD51P19A │ 1.22.2 │ │
|
208
|
-
│ COM5 │ micropython │ stm32 │ PYBV11 │ STM32F405RG │ 1.23.0-preview │ 166 │
|
209
|
-
│ COM8 │ micropython │ esp32 │ ESP32_GENERIC_S3 │ ESP32S3 │ 1.23.0-preview │ 155 │
|
210
|
-
└────────┴─────────────┴─────────┴────────────────────┴─────────────┴────────────────┴───────┘
|
211
|
-
```
|
212
|
-
Note that if no matching firmware can be found for a board, it will be skipped.
|
213
|
-
(For example, the PYBV11 and ESP32_GENERIC_S3 boards in the example above.)
|
214
|
-
|
215
|
-
## Issues and bug reports
|
216
|
-
mpflash is currently co-located in the [micropython-stubber](https://github.com/Josverl/micropython-stubber) repository.
|
217
|
-
Please report any issues or bugs in the [issue tracker](https://github.com/Josverl/micropython-stubber/issues) using the MPflash feedback template.
|
218
|
-
|
219
|
-
## License
|
220
|
-
mpflash is licensed under the MIT license. See the LICENSE file for more details.
|
mpflash/libusb_flash.ipynb
DELETED
@@ -1,203 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"cells": [
|
3
|
-
{
|
4
|
-
"cell_type": "code",
|
5
|
-
"execution_count": 3,
|
6
|
-
"metadata": {},
|
7
|
-
"outputs": [
|
8
|
-
{
|
9
|
-
"data": {
|
10
|
-
"text/plain": [
|
11
|
-
"[<DEVICE ID 0a05:7211 on Bus 002 Address 054>,\n",
|
12
|
-
" <DEVICE ID 0a05:7211 on Bus 002 Address 032>,\n",
|
13
|
-
" <DEVICE ID 045e:0c1e on Bus 002 Address 002>,\n",
|
14
|
-
" <DEVICE ID 045e:07b2 on Bus 002 Address 028>,\n",
|
15
|
-
" <DEVICE ID 045e:0904 on Bus 002 Address 015>,\n",
|
16
|
-
" <DEVICE ID 043e:9a39 on Bus 002 Address 057>,\n",
|
17
|
-
" <DEVICE ID 045e:0901 on Bus 002 Address 006>,\n",
|
18
|
-
" <DEVICE ID 05e3:0610 on Bus 002 Address 010>,\n",
|
19
|
-
" <DEVICE ID 2109:0817 on Bus 001 Address 001>,\n",
|
20
|
-
" <DEVICE ID 045e:0902 on Bus 002 Address 008>,\n",
|
21
|
-
" <DEVICE ID 1000:2000 on Bus 002 Address 016>,\n",
|
22
|
-
" <DEVICE ID 1189:8890 on Bus 002 Address 027>,\n",
|
23
|
-
" <DEVICE ID 2109:0817 on Bus 001 Address 002>,\n",
|
24
|
-
" <DEVICE ID 2109:2812 on Bus 002 Address 025>,\n",
|
25
|
-
" <DEVICE ID 046d:085e on Bus 002 Address 017>,\n",
|
26
|
-
" <DEVICE ID 045e:07c6 on Bus 002 Address 056>,\n",
|
27
|
-
" <DEVICE ID 0bda:5401 on Bus 002 Address 009>,\n",
|
28
|
-
" <DEVICE ID 10c4:ea60 on Bus 002 Address 055>,\n",
|
29
|
-
" <DEVICE ID 2109:2817 on Bus 002 Address 004>,\n",
|
30
|
-
" <DEVICE ID 0bda:5411 on Bus 002 Address 005>,\n",
|
31
|
-
" <DEVICE ID 045e:0900 on Bus 002 Address 003>,\n",
|
32
|
-
" <DEVICE ID 04e8:61f5 on Bus 002 Address 023>,\n",
|
33
|
-
" <DEVICE ID 045e:0903 on Bus 002 Address 020>,\n",
|
34
|
-
" <DEVICE ID 2109:2812 on Bus 002 Address 026>,\n",
|
35
|
-
" <DEVICE ID 8086:a0ed on Bus 002 Address 000>,\n",
|
36
|
-
" <DEVICE ID 2109:2817 on Bus 002 Address 013>,\n",
|
37
|
-
" <DEVICE ID 8087:0029 on Bus 002 Address 001>,\n",
|
38
|
-
" <DEVICE ID 8086:9a13 on Bus 001 Address 000>]"
|
39
|
-
]
|
40
|
-
},
|
41
|
-
"execution_count": 3,
|
42
|
-
"metadata": {},
|
43
|
-
"output_type": "execute_result"
|
44
|
-
}
|
45
|
-
],
|
46
|
-
"source": [
|
47
|
-
"import usb.core\n",
|
48
|
-
"import usb.util\n",
|
49
|
-
"import usb.backend.libusb1 as libusb1\n",
|
50
|
-
"from usb.core import USBError, Device\n",
|
51
|
-
"\n",
|
52
|
-
"from pathlib import Path\n",
|
53
|
-
"import platform\n",
|
54
|
-
"\n",
|
55
|
-
"if platform.system() == \"Windows\":\n",
|
56
|
-
" # on windows you need to use the libusb1 backend\n",
|
57
|
-
" import libusb\n",
|
58
|
-
"\n",
|
59
|
-
" arch = \"x64\" if platform.architecture()[0] == \"64bit\" else \"x86\"\n",
|
60
|
-
" libusb1_dll = Path(libusb.__file__).parent / f\"_platform\\\\_windows\\\\{arch}\\\\libusb-1.0.dll\"\n",
|
61
|
-
"\n",
|
62
|
-
" backend = libusb1.get_backend(find_library=lambda x: libusb1_dll.as_posix())\n",
|
63
|
-
"usb_devices = usb.core.find(backend=backend, find_all=True)\n",
|
64
|
-
"\n",
|
65
|
-
"list(usb_devices)"
|
66
|
-
]
|
67
|
-
},
|
68
|
-
{
|
69
|
-
"cell_type": "code",
|
70
|
-
"execution_count": null,
|
71
|
-
"metadata": {},
|
72
|
-
"outputs": [],
|
73
|
-
"source": [
|
74
|
-
"for d in usb.core.find(backend=backend, find_all=True):\n",
|
75
|
-
" print(f\"Device {d.idVendor:04x}:{d.idProduct:04x}\")\n",
|
76
|
-
" print(f\"{d.iManufacturer=}\")\n",
|
77
|
-
" print(f\"{d.iProduct=}\")\n",
|
78
|
-
" print(f\"{d.bDeviceClass=}\")\n",
|
79
|
-
" print(f\"{d.bDescriptorType=}\")\n",
|
80
|
-
" print(f\"{d.bcdDevice=}\")\n",
|
81
|
-
" print(f\"{d.bcdUSB=}\")\n",
|
82
|
-
" # print(dir(d))\n",
|
83
|
-
" # print(f\" Manufacturer: {usb.util.get_string(dev, dev.iManufacturer)}\")\n",
|
84
|
-
"\n",
|
85
|
-
" print()"
|
86
|
-
]
|
87
|
-
},
|
88
|
-
{
|
89
|
-
"cell_type": "code",
|
90
|
-
"execution_count": null,
|
91
|
-
"metadata": {},
|
92
|
-
"outputs": [],
|
93
|
-
"source": [
|
94
|
-
"import serial.tools.list_ports\n",
|
95
|
-
"\n",
|
96
|
-
"ports = serial.tools.list_ports.comports()\n",
|
97
|
-
"\n",
|
98
|
-
"for port in ports:\n",
|
99
|
-
" print(f\"Port: {port.device}\")\n",
|
100
|
-
" print(f\"Description: {port.description}\")\n",
|
101
|
-
" print(f\"Hardware ID: {port.hwid}\")\n",
|
102
|
-
" print()"
|
103
|
-
]
|
104
|
-
},
|
105
|
-
{
|
106
|
-
"cell_type": "code",
|
107
|
-
"execution_count": null,
|
108
|
-
"metadata": {},
|
109
|
-
"outputs": [],
|
110
|
-
"source": [
|
111
|
-
"from mpflash.vendor import pydfu as pydfu\n",
|
112
|
-
"\n",
|
113
|
-
"try:\n",
|
114
|
-
" pydfu.list_dfu_devices()\n",
|
115
|
-
"except SystemExit:\n",
|
116
|
-
" print(\"No DFU devices found\")"
|
117
|
-
]
|
118
|
-
},
|
119
|
-
{
|
120
|
-
"cell_type": "code",
|
121
|
-
"execution_count": null,
|
122
|
-
"metadata": {},
|
123
|
-
"outputs": [],
|
124
|
-
"source": [
|
125
|
-
"pydfu.init()"
|
126
|
-
]
|
127
|
-
},
|
128
|
-
{
|
129
|
-
"cell_type": "code",
|
130
|
-
"execution_count": null,
|
131
|
-
"metadata": {},
|
132
|
-
"outputs": [],
|
133
|
-
"source": [
|
134
|
-
"dfu_file = Path(\"C:\\\\Users\\\\josverl\\\\Downloads\\\\firmware\\\\stm32\\\\PYBV11-THREAD-v1.23.0-preview.203.dfu\")\n",
|
135
|
-
"\n",
|
136
|
-
"print(\"Read DFU file...\")\n",
|
137
|
-
"elements = pydfu.read_dfu_file(dfu_file)\n",
|
138
|
-
"if not elements:\n",
|
139
|
-
" print(\"No data in dfu file\")"
|
140
|
-
]
|
141
|
-
},
|
142
|
-
{
|
143
|
-
"cell_type": "code",
|
144
|
-
"execution_count": 1,
|
145
|
-
"metadata": {},
|
146
|
-
"outputs": [
|
147
|
-
{
|
148
|
-
"name": "stdout",
|
149
|
-
"output_type": "stream",
|
150
|
-
"text": [
|
151
|
-
"Writing memory...\n"
|
152
|
-
]
|
153
|
-
},
|
154
|
-
{
|
155
|
-
"ename": "NameError",
|
156
|
-
"evalue": "name 'pydfu' is not defined",
|
157
|
-
"output_type": "error",
|
158
|
-
"traceback": [
|
159
|
-
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
|
160
|
-
"\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)",
|
161
|
-
"Cell \u001b[1;32mIn[1], line 2\u001b[0m\n\u001b[0;32m 1\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mWriting memory...\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n\u001b[1;32m----> 2\u001b[0m \u001b[43mpydfu\u001b[49m\u001b[38;5;241m.\u001b[39mwrite_elements(elements, \u001b[38;5;28;01mFalse\u001b[39;00m, progress\u001b[38;5;241m=\u001b[39mpydfu\u001b[38;5;241m.\u001b[39mcli_progress)\n",
|
162
|
-
"\u001b[1;31mNameError\u001b[0m: name 'pydfu' is not defined"
|
163
|
-
]
|
164
|
-
}
|
165
|
-
],
|
166
|
-
"source": [
|
167
|
-
"print(\"Writing memory...\")\n",
|
168
|
-
"pydfu.write_elements(elements, False, progress=pydfu.cli_progress)"
|
169
|
-
]
|
170
|
-
},
|
171
|
-
{
|
172
|
-
"cell_type": "code",
|
173
|
-
"execution_count": null,
|
174
|
-
"metadata": {},
|
175
|
-
"outputs": [],
|
176
|
-
"source": [
|
177
|
-
"print(\"Exiting DFU...\")\n",
|
178
|
-
"pydfu.exit_dfu()"
|
179
|
-
]
|
180
|
-
}
|
181
|
-
],
|
182
|
-
"metadata": {
|
183
|
-
"kernelspec": {
|
184
|
-
"display_name": ".venv",
|
185
|
-
"language": "python",
|
186
|
-
"name": "python3"
|
187
|
-
},
|
188
|
-
"language_info": {
|
189
|
-
"codemirror_mode": {
|
190
|
-
"name": "ipython",
|
191
|
-
"version": 3
|
192
|
-
},
|
193
|
-
"file_extension": ".py",
|
194
|
-
"mimetype": "text/x-python",
|
195
|
-
"name": "python",
|
196
|
-
"nbconvert_exporter": "python",
|
197
|
-
"pygments_lexer": "ipython3",
|
198
|
-
"version": "3.11.7"
|
199
|
-
}
|
200
|
-
},
|
201
|
-
"nbformat": 4,
|
202
|
-
"nbformat_minor": 2
|
203
|
-
}
|
mpflash/mpflash/__init__.py
DELETED
File without changes
|