Auto reset with OS X El Capitan

Apple Mac OSX
Post Reply
MCUdude
Posts: 1
Joined: Tue Dec 22, 2015 9:37 am

Auto reset with OS X El Capitan

Post by MCUdude » Tue Dec 22, 2015 9:51 am

Hi!
I did a clean install yesterday, and Installed the Arduino IDE 1.6.5r5 along with the STM32 core. I got a Maple Mini running boot loader v2.0. When uploading I got an error saying that I was missing libusb, so I downloaded and installed libusb. Now the code uploads, but I get an error at the bottom, and I'll have to manually reset the Maple Mini to get the code running. Here are the output:

Code: Select all

Sketch uses 12,316 bytes (10%) of program storage space. Maximum is 122,880 bytes.
Global variables use 2,560 bytes of dynamic memory.
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Deducing device DFU version from functional descriptor length
Opening DFU capable USB device...
ID 1eaf:0003
Run-time device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Setting #2 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 0110
Device returned transfer size 1024
Copying data from PC to DFU device

Download	[                         ]   0%            0 bytes
Download	[=                        ]   7%         1024 bytes
Download	[===                      ]  15%         2048 bytes
Download	[=====                    ]  23%         3072 bytes
Download	[=======                  ]  30%         4096 bytes
Download	[=========                ]  38%         5120 bytes
Download	[===========              ]  46%         6144 bytes
Download	[=============            ]  53%         7168 bytes
Download	[===============          ]  61%         8192 bytes
Download	[=================        ]  69%         9216 bytes
Download	[===================      ]  76%        10240 bytes
Download	[=====================    ]  84%        11264 bytes
Download	[=======================  ]  92%        12288 bytes
Download	[======================== ]  99%        12316 bytes
Download	[=========================] 100%        12316 bytes
Download done.
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime mode
Here are the output of 'dfu-util -l' after uploading the sketch, before manually resetting the Maple Mini:

Code: Select all

dfu-util -l
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Deducing device DFU version from functional descriptor length
Found DFU: [1eaf:0003] ver=0201, devnum=3, cfg=1, intf=0, alt=2, name="Bootloader 2.0.rc1 Upload to Flash address 0x8002000 (Maple-mini)", serial="LLM 003"
Found DFU: [1eaf:0003] ver=0201, devnum=3, cfg=1, intf=0, alt=1, name="Bootloader 2.0.rc1 Upload to Flash address 0x8005000 (Maple-mini)", serial="LLM 003"
Found DFU: [1eaf:0003] ver=0201, devnum=3, cfg=1, intf=0, alt=0, name="Bootloader 2.0.rc1 ERROR. Upload to RAM is not supported. (Maple-mini)", serial="LLM 003"
Found Runtime: [05ac:8213] ver=0208, devnum=2, cfg=1, intf=3, alt=0, name="UNKNOWN", serial="0025005DDA50"
Here are the output of 'dfu-util -l' after uploading the sketch, after manually resetting the Maple Mini:

Code: Select all

dfu-util -l
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Deducing device DFU version from functional descriptor length
Found Runtime: [05ac:8213] ver=0208, devnum=2, cfg=1, intf=3, alt=0, name="UNKNOWN", serial="0025005DDA50"
I haven't tried with the original Maple bootloader yet (where can I find it? Should have been included in the core), but the bootloadervV2.0 was working perfectly on OS X 10.9. How can I enable auto reset on the Maple Mini?

User avatar
RogerClark
Posts: 7174
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Auto reset with OS X El Capitan

Post by RogerClark » Tue Dec 22, 2015 9:09 pm

At the moment, things dont work with El Capitan.

There is a thread about this.

I think the problems are related to the new security stuff Apple has added, which I dont think you can selectively turn off.

Basically it prevents unknown USB devices from being used, and this includes Serial USB, and we use Serial USB to reset prior to upload.

You can try disabling the new security stuff if you like ( see the other thread), at your own risk.

I think there must be a way to tell OSX to accept specific USB VID PID id codes, but I have not had time to investigate, and as El Capitan is quite new, I have not see any postings about selectively disabling it etc

Post Reply