Uploading Sketch to Maple mini from Arduino 1.6.9 [SOLVED]

Development environment specific, Arduino, Eclipse, VS2013,Em::Blocks etc
fredbox
Posts: 95
Joined: Tue Jul 07, 2015 4:44 pm

Re: Uploading Sketch to Maple mini from Arduino 1.6.9

Post by fredbox » Wed Aug 03, 2016 8:16 pm

Enter groups to see if you are a member of the dialout group.

Code: Select all

$ groups
fred adm tty dialout cdrom sudo dip plugdev lpadmin sambashare

zmemw16
Posts: 1484
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Uploading Sketch to Maple mini from Arduino 1.6.9

Post by zmemw16 » Thu Aug 04, 2016 12:25 am

i've edited the relevant udev rules file /etc/udev/rules.d/25-ARDUINO.rules in my case to set stephen as OWNER and
set it as wide open with 777.
i suspect i got tee'd with it not working, so as it's my laptop and i'm the sole user. ... ...
i know it's not the proper way, but i'm an old mech eng with a spanner/hammer as reqd. :)

stephen

navintiwari08
Posts: 16
Joined: Sat Aug 22, 2015 3:54 pm

Re: Uploading Sketch to Maple mini from Arduino 1.6.9

Post by navintiwari08 » Sun Aug 07, 2016 12:52 pm

yes, I'm the member of the group 'dialout'

Code: Select all

navin adm dialout cdrom sudo dip plugdev lpadmin sambashare
And my 45-maple.rules contains

Code: Select all

ATTRS{idProduct}=="1001", ATTRS{idVendor}=="0110", MODE="664", GROUP="plugdev"
ATTRS{idProduct}=="1002", ATTRS{idVendor}=="0110", MODE="664", GROUP="plugdev"
ATTRS{idProduct}=="0003", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="plugdev" SYMLINK+="maple"
ATTRS{idProduct}=="0004", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="plugdev" SYMLINK+="maple"

zmemw16
Posts: 1484
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Uploading Sketch to Maple mini from Arduino 1.6.9

Post by zmemw16 » Sun Aug 07, 2016 3:14 pm

navintiwari08 wrote:yes, I'm the member of the group 'dialout'

Code: Select all

navin adm dialout cdrom sudo dip plugdev lpadmin sambashare
And my 45-maple.rules contains

Code: Select all

ATTRS{idProduct}=="1001", ATTRS{idVendor}=="0110", MODE="664", GROUP="plugdev"
ATTRS{idProduct}=="1002", ATTRS{idVendor}=="0110", MODE="664", GROUP="plugdev"
ATTRS{idProduct}=="0003", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="plugdev" SYMLINK+="maple"
ATTRS{idProduct}=="0004", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="plugdev" SYMLINK+="maple"
the device will be in group 'plugdev', so it's good you're in that one as well
if you add "%n" to the maple string, it'll handle multiple boards, maple1 maple2 etc

useful if you're using one to produce test data as an input for the second.

stephen

navintiwari08
Posts: 16
Joined: Sat Aug 22, 2015 3:54 pm

Re: Uploading Sketch to Maple mini from Arduino 1.6.9

Post by navintiwari08 » Mon Aug 08, 2016 6:42 am

ok.. thanks for the info! I'm sure that will come handy.
But I still haven't gotten anywhere with my original question.
Do I have to put the board in perpetual boot loader mode before uploading a sketch?

zmemw16
Posts: 1484
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Uploading Sketch to Maple mini from Arduino 1.6.9

Post by zmemw16 » Mon Aug 08, 2016 12:07 pm

i seem to have to, using stlink download, serial never seems to work.
even after it's written to flash, i/o is problematic.

barest whiff of blue smoke, so bare i wasn't even sure i'd seen it.
one sd module and the 16GB card inserted. 2 different makes of module, one pinning gnd, 3v3,5v; t'other 5v gnd

not good :!: :( :(

stephen

ps. add a hub to the list
Last edited by zmemw16 on Mon Aug 08, 2016 1:28 pm, edited 1 time in total.

User avatar
mrburnette
Posts: 1877
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Uploading Sketch to Maple mini from Arduino 1.6.9

Post by mrburnette » Mon Aug 08, 2016 1:19 pm

Hi Mr. Burnette,

I've a maple mini clone from baite. I bought it on aliexpress.com.
I burnt the new bootloader 2.0 named "maple_mini_boot20.bin" via FTDI 232 USB to Serial.
When I tried to upload sketch from Arduino IDE, it gave errors about not able to find any DFU device.
Then I put the maple in perpetual boot loader mode and hit "upload" again in the IDE. This time it uploaded the code and runs flawlessly.

My question is, do I have to put the maple mini in perpetual boot loader mode every time I want to upload the code? Can't it be done with just hitting the upload button in IDE and not touching any buttons on maple mini? I'm using Arduino 1.6.9 on Ubuntu 14.04.
Specific to the Maple Mini (Baite) model: in my experience, 9 out of 10 times the COMx port will toggle the reset and put the Mini into DFU mode automatically. The other 10% it will not. My experience is with Win8.1 and Linux Mint 17.3 Other versions of OS's may give completely different results, but I know of no one that has achieved 100% upload via the IDE without having to occasionally resort to the forced DFU mode.

Remember, for Windows, there is the requirement to install the serial drivers... see the WiKi.

There are a large number of posts on the forum about this issue which is why I did not respond to your PM, things need to be posted to be searchable.
Out site is fully Google indexed, so next time try a site specific Google query like:
https://www.google.com/#q=serial+upload ... 2duino.com


Ray

fredbox
Posts: 95
Joined: Tue Jul 07, 2015 4:44 pm

Re: Uploading Sketch to Maple mini from Arduino 1.6.9

Post by fredbox » Mon Aug 08, 2016 2:15 pm

9 out of 10 times the COMx port will toggle the reset and put the Mini into DFU mode automatically
That matches my experience. I always put a Serial.begin statement in the setup section, even if I don't need it.

If uploading fails, I try again, pressing the reset and compile buttons at the same time. That usually lets it upload.

If your program uploads then crashes / locks up, then you may have to use the perpetual mode to recover.

I am using Mint 17.3, IDE 1.6.5, bootloader 2.0.

navintiwari08
Posts: 16
Joined: Sat Aug 22, 2015 3:54 pm

Re: Uploading Sketch to Maple mini from Arduino 1.6.9

Post by navintiwari08 » Tue Aug 09, 2016 1:57 pm

Thanks Mr. Bunette for the info.
Its not uploading even once without PBM on Ubuntu 14.04.
I guess I'll have to use it this way only.

-Navin

devan
Posts: 50
Joined: Sat May 14, 2016 1:45 am

Re: Uploading Sketch to Maple mini from Arduino 1.6.9

Post by devan » Wed Aug 10, 2016 4:03 am

One possibility is that the modem manager thinks that the Maple serial port (which technically advertises itself as a stripped down modem) is a real modem and it's trying to use it as such, preventing you from accessing it to reset it.

You can add a udev rule to prevent that:

Code: Select all

ATTRS{idVendor}=="1eaf" ATTRS{idProduct}=="0004", ENV{ID_MM_DEVICE_IGNORE}="1"

Post Reply