-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Simple upload test with maple board not working #9
Comments
@ubis is this our issue? |
These '1' and '2' are actually revisions of dfu bootloader. Mostly all generic boards use newer ('2') bootloader so yeah, I kept it. However, some Maple boards still use an older bootloader ('1'). As for port, I think it should work with full path(with /dev/....), but just in case: could you try to change revision(that 2 to 1) and nothing else, also leave full upload port path and try to upload? If that won't work, /dev/... path could be removed before upload. |
That's in fact how I found that I needed to change that too. If I use the full path of the port it does not work. In my linux machine (ubuntu) it complains that it failed to open the serial device. |
Sorry guys, wrong button. I did not mean to close the isse :( |
I've added ability to change Maple bootloader revision, see Pull #12. As for path fix, i'm not sure how to do that. I can't see where I can change it, when port is automatically selected. And looking at bootloader script file for linux, it seems like it adds "/dev/" prefix for serial port. I could remove it there. |
@ubis @albertoferna , I'll fix that. Tell me please, we should use "port name" without full path for all OS? |
For Linux and OS X. Since Windows don't use /dev, yeah thats for all OS. |
Thanks for the info. I'll resolve this issue later |
I've just pushed new 1.3.0-alpha1 development version of this platform. Please re-test.
CC @ubis, @albertoferna, @fabriciopk, @justgook, @vshymanskyy, @skabashnyuk |
I have run some test on that development version. I still have problem uploading. Right now, I have some boards with the original firmware (olimex) and some with the STM32Duino bootloader 1.0 |
@albertoferna what is your board? How about to have |
@ivankravets my board is an Olimexino-STM32 |
@albertoferna Strange... Do you use P.S: " I tried to do something similar (dfu_1) but for some reason I could not get it to work" - I've not implemented it yet. That was a proposition. |
I understood. I meant that I try to modify the code myself to work that way but I could not get it to work. I don't know enough of the ins and outs of the system |
I mean that you don't use the latest version of this dev platform. Please repeat these steps #9 (comment) where all should work from a box without any extra settings in
Build output of
|
With this version and firmware stm32duino (revision 2 as we have been calling it) the upload works nicely. |
May I close this issue and make an official release? |
Yes from my point of view regarding this issue. |
Thanks! |
with last develop version
|
Could you try with Arduino IDE? Does it work? |
that works with: |
@ivankravets |
The source code of this script is Where @justgook has used Sorry, I don't have this board and can't test it. Should be the one solution that works all time. |
Parameter |
so |
@justgook that is strange! |
yup - serial is by default - and now it works.. (just downloaded last version via )
|
but have no clue how to setup env for |
Please ignore these posts with |
waiting for official releas |
The platform has been released yesterday :) Try |
I have just switched to 3.1.0 and I can upload a simple sketch using the maple bootloader.
Looking at the command, and comparing it to a working version of the same I see a couple of differences.
Standard platformio install upload command for maple:
/maple_upload /dev/ttyACM0 2 0x1EAF:0x0003 /firmware.bin
working command:
/maple_upload ttyACM0 1 0x1EAF:0x0003 /firmware.bin
I can change 2 to 1 in main.py (usbid = '1 %s:%s' % (usbids[0][0], usbids[0][1])) but that seems hard coded and I don't know what effects that could have.
Also, I can set upload_port = ttyACM0 in platformio.ini, but that seems like a work around as it would change depending of what has been plugged in the system.
Is there a better way to do it without breaking future updates?
The text was updated successfully, but these errors were encountered: