Skip to content

feat: unified maple_upload and dfu_util scripts (remove maple_loader.jar usage) #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 20, 2023

Conversation

fpistm
Copy link
Member

@fpistm fpistm commented Feb 14, 2023

Fixes #67

On windows, maple_loader.jar is replaced by small binary based on http://sigrok.org/wiki/Libserialport.
Then dfu-utils is used.
This unified all host OS maple upload management as same scripts used for all.

Some fix made to scripts.

Tested:

Host \ IDE 1.8.19 2.0.3
windows ✔️ ✔️
Linux ✔️ ✔️
Mac ✔️ ✔️
STMicroelectronics\tools\STM32Tools\2.1.1/win/busybox.exe sh STMicroelectronics\tools\STM32Tools\2.1.1/maple_upload.sh COM35 2 1EAF:0003 arduino_build_624395/Blink.ino.bin 
Looking for port COM35.
Port name: COM35
Description: USB Serial Device (COM35)
Opening port.
dfu-util - (C) 2007-2008 by OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY

Opening USB Device 0x1eaf:0x0003...
Found Runtime: [0x1eaf:0x0003] devnum=1, cfg=0, intf=0, alt=2, name="STM32duino bootloader v1.0  Upload to Flash 0x8002000"
Setting Configuration 1...
Claiming USB DFU Interface...
Setting Alternate Setting ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
Transfer Size = 0x0400
bytes_per_hash=474
Starting download: [#################################################error resetting after download: usb_reset: could not reset device, win error: A device which does not exist was specified.


#] finished!
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime mode
Waiting for COM35 serial..... Done.

image

@fpistm fpistm added Bug enhancement New feature or request labels Feb 14, 2023
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this pull request Feb 14, 2023
@fpistm fpistm added this to the 2.2.0 milestone Feb 14, 2023
@fpistm fpistm merged commit 6388636 into stm32duino:main Feb 20, 2023
fpistm added a commit to stm32duino/Arduino_Core_STM32 that referenced this pull request Feb 20, 2023
@fpistm fpistm deleted the maple_upload branch February 20, 2023 13:09
@fpistm fpistm mentioned this pull request Aug 1, 2023
fpistm referenced this pull request in rogerclarkmelbourne/Arduino_STM32 Oct 10, 2023
Merge pull request #814 from dadul96/Fix_Java_PATH_problem_Windows
@fpistm fpistm added bug 🐛 Something isn't working fix 🩹 Bug fix and removed Bug labels Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working enhancement New feature or request fix 🩹 Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Windows] remove maple_loader.jar usage
1 participant