This commit is contained in:
William Henderson
2025-07-23 11:59:43 +01:00
parent 463fb482b3
commit 001014099f
13 changed files with 26 additions and 4 deletions
Binary file not shown.
@@ -28,7 +28,7 @@
"RelativeDocumentMoniker": "rp2040_Loader.py", "RelativeDocumentMoniker": "rp2040_Loader.py",
"ToolTip": "C:\\Users\\william\\Documents\\Git\\RP2040_UPS_Loader\\rp2040_Loader.py", "ToolTip": "C:\\Users\\william\\Documents\\Git\\RP2040_UPS_Loader\\rp2040_Loader.py",
"RelativeToolTip": "rp2040_Loader.py", "RelativeToolTip": "rp2040_Loader.py",
"ViewState": "AgIAAFAAAAAAAAAAAAAqwIAAAACAAAAAAAAAAA==", "ViewState": "AgIAAAAAAAAAAAAAAAAAAA8AAABNAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.002457|", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.002457|",
"WhenOpened": "2025-07-10T14:11:57.024Z", "WhenOpened": "2025-07-10T14:11:57.024Z",
"EditorCaption": "" "EditorCaption": ""
@@ -28,7 +28,7 @@
"RelativeDocumentMoniker": "rp2040_Loader.py", "RelativeDocumentMoniker": "rp2040_Loader.py",
"ToolTip": "C:\\Users\\william\\Documents\\Git\\RP2040_UPS_Loader\\rp2040_Loader.py", "ToolTip": "C:\\Users\\william\\Documents\\Git\\RP2040_UPS_Loader\\rp2040_Loader.py",
"RelativeToolTip": "rp2040_Loader.py", "RelativeToolTip": "rp2040_Loader.py",
"ViewState": "AgIAAFAAAAAAAAAAAAAqwG4AAAAaAAAAAAAAAA==", "ViewState": "AgIAAAAAAAAAAAAAAAAAAA8AAABNAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.002457|", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.002457|",
"WhenOpened": "2025-07-10T14:11:57.024Z", "WhenOpened": "2025-07-10T14:11:57.024Z",
"EditorCaption": "" "EditorCaption": ""
BIN
View File
Binary file not shown.
+19
View File
@@ -0,0 +1,19 @@
_____ _ _
/ ____| | | |
| | | |__ __ _ _ __ __ _ ___ | | ___ __ _
| | | '_ \ / _` | '_ \ / _` |/ _ \ | | / _ \ / _` |
| |____| | | | (_| | | | | (_| | __/ | |___| (_) | (_| |
\_____|_| |_|\__,_|_| |_|\__, |\___| |______\___/ \__, |
__/ | __/ |
|___/ |___/
RP2040 Loader V1.0.0 - 22/07/2025
- Initial release
RP2040 Loader V1.0.1 - 23/07/2025
Improvements:
- Integrated `mpremote` into the application package to support mp file uploads without requiring external installation
Binary file not shown.
+5 -2
View File
@@ -13,6 +13,8 @@ class RP2040UploaderApp:
self.folder_path = os.path.join(os.getcwd(), "Resources/RP2040") self.folder_path = os.path.join(os.getcwd(), "Resources/RP2040")
self.config_path = os.path.join(self.folder_path, "config.json") self.config_path = os.path.join(self.folder_path, "config.json")
self.mpremote_path = os.path.join(os.getcwd(), "Resources", "mpremote.exe")
self.label = tk.Label(master, text="Searching for RP2040...") self.label = tk.Label(master, text="Searching for RP2040...")
self.label.pack(pady=10) self.label.pack(pady=10)
@@ -93,10 +95,11 @@ class RP2040UploaderApp:
self.label.config(text=f"Uploading {filename}...") self.label.config(text=f"Uploading {filename}...")
self.master.update() self.master.update()
result = subprocess.run( result = subprocess.run(
["mpremote", "connect", self.port, "fs", "cp", full_path, f":{filename}"], [self.mpremote_path, "connect", self.port, "fs", "cp", full_path, f":{filename}"],
capture_output=True, capture_output=True,
text=True text=True
) )
if result.returncode != 0: if result.returncode != 0:
success = False success = False
messagebox.showerror("Upload Failed", f"Failed to upload {filename}:\n{result.stderr}") messagebox.showerror("Upload Failed", f"Failed to upload {filename}:\n{result.stderr}")
@@ -111,7 +114,7 @@ class RP2040UploaderApp:
if __name__ == "__main__": if __name__ == "__main__":
root = tk.Tk() root = tk.Tk()
app = RP2040UploaderApp(root) app = RP2040UploaderApp(root)
root.title("RP2040 Flasher V1.0.0") root.title("RP2040 Loader V1.0.1")
root.iconbitmap(r'Resources/icon1.ico') root.iconbitmap(r'Resources/icon1.ico')