I received my Maple Mini a few days ago as a Christmas gift, however I haven't had much luck trying to get it to work. I've been able to run the Maple IDE v0.0.12 in both Windows 8 64-bit and Ubuntu 12.10 32-bit. I have tried putting the board in perpetual bootloader mode as well to no avail. The serial port is never found. I can confirm that Ubuntu finds it listed in USB devices as 1eaf:0004. What am I missing?
Grayed Out Serial Port
(13 posts) (3 voices)-
Posted 3 years ago #
-
Chrome - if you have got the Maple into perpetual bootloader mode, it is a USB DFU device, not a serial device.
http://forums.leaflabs.com/topic.php?id=1221#post-7384
Maple IDE upload needs the Maple to be a DFU device, so it should work.
(Full disclosure: I am not A member of LeafLabs staff)
Posted 3 years ago # -
I've got it to recognize the DFU device but the IDE resets the board and then it's dead again. Here's the print out from the IDE.
Binary sketch size is reported above. Check it against a 108000 byte maximum.
Loading via dfu-util
Resetting to bootloader via DTR pulseReset via USB Serial Failed! Did you select the serial right serial port?
Assuming the board is in perpetual bootloader mode and continuing to attempt dfu programming...Searching for DFU device [1EAF:0003]...
Found it!Opening USB Device 0x1eaf:0x0003...
Found Runtime: [0x1eaf:0x0003] devnum=66, cfg=0, intf=0, alt=1, name="DFU Program FLASH 0x08005000"
Claiming USB DFU Interface...
Setting Alternate Setting ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
Transfer Size = 0x0400
bytes_per_hash=254
Starting download: [##################################################] finished!
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime modePosted 3 years ago # -
Are you setting the board to "Leaflabs Maple Mini Rev 2 to Flash"? If not, then put the board into perpetual bootloader mode again and reupload with the correct board selected.
What OS did the above output come from?
Posted 3 years ago # -
Yes it is set to "Leaflabs Maple Mini Rev 2 to Flash"
The output came from Ubuntu 12.10 32-bit. Upon trying to upload after the initial output I get an output like this:Binary sketch size is reported above. Check it against a 108000 byte maximum.
Loading via dfu-util
Resetting to bootloader via DTR pulseReset via USB Serial Failed! Did you select the serial right serial port?
Assuming the board is in perpetual bootloader mode and continuing to attempt dfu programming...Searching for DFU device [1EAF:0003]...
dfu-util - (C) 2007 by OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTYCouldn't find the DFU device: [1EAF:0003]
Posted 3 years ago # -
Chrome - when you go through the instructions to get into perpetual bootloader mode
Do you get the fast blink, then the slow blink going on forever? It is a bit tricky. I know the first time I tried it, I found it awkward.Are you doing your experiments with Windows or Ubuntu? Most folks seem to find Ubuntu much more reliable.
If you get it into this mode, what are you trying to upload? I'd recommend the usual 'Blink' example and maybe change the delay's to make it clear that it is uploaded.
Posted 3 years ago # -
Sorry for the late reply.
Yes I get the fast blink and then the slow blink going forever. I am doing my experiments with Ubuntu. I am trying to upload the example blink program. After that the IDE prints the the output I have posted above and then the board stops blinking entirely.Posted 3 years ago # -
Update: I have been able to get the Maple to load programs from the IDE after deleting the IDE and redownloading it. However, the serial port is still grayed out. Does this mean the Serial Port is completely disabled or that I can't view it? My plan is to wire it up to a Raspberry Pi via the tx and rx pins to give my Raspberry Pi low level control of motors, etc.
Posted 3 years ago # -
Chrome - just to be clear, are you saying you can load a program like ASCIItable and the USB serial device is never found by the Maple IDE on Windows or Ubuntu?
You might want to modify ASCIItable so that it instead of stopping when it gets to character code 126, it instead delay()'s for a second then rewrites all printable characters from 33, to make testing easier.
Have you tried running as root on Ubuntu to ensure there is no permission problem?
Further, when you ask "Does this mean the Serial Port is completely disabled or that I can't view it?" and then say " My plan is to wire it up to a Raspberry Pi via the tx and rx pins" Are you now talking about the Maple USART, and no longer asking about USB serial? The Raspberry-Pi has a serial UART, which would be wired directly to Maple, and not use Maples USB.
There are three USART on Maple, and they are completely independent from the USB serial. The Maples STM32F has a USB hardware interface built in, unlike, for example the Arduino, which has an external USB-to-UART interface chip. Hence you could talk to USB and three USARTs simultaneously, and the failure to communicate with USB serial from Windows or Ubuntu has no bearing on whether a Raspberry-Pi will be able to communicate with a Maple USART.
To help you test the USARTs, you might obtain a USB-to-UART cable or interface board. I have an FTDI USB-to-UART cable which works quite well (get the 3.3V, and not the 5V version).
People recommend CP2102 boards which are under $3.
tormod recommends using one made by 'Baite' http://forums.leaflabs.com/topic.php?id=1324&page=3#post-21653I haven't bought one of those, but I think this might be one:
http://www.ebay.co.uk/itm/USB-2-0-to-UART-TTL-6PIN-Connector-Module-Serial-Converter-CP2102-New-/110760144325?pt=UK_Computing_Other_Computing_Networking&hash=item19c9d1adc5Using this, you could check communication with a USART from a host PC over USB, which may make testing your comms software running between Raspberry-Pi and Maple much easier; with care, very similar host-side code will work between Maple and Ubuntu on a PC or the Raspberry-Pi.
Posted 3 years ago # -
Thanks for the info. I plan to use the USART for communications with the Pi similar to this schematic (obviously using the Maple instead of an Arduino)
http://www.fritz-hut.com/wp-content/uploads/2012/08/sketch_bb2.pngI plan to use the Pi to host a local webpage that will live stream 2 webcams and use a PHP script to talk to the Maple. The Maple will use PWM (PPM) to control brushless motor escs much like a servo, as well as read data from a few sensors. This setup is for an upcoming underwater robotics competition (MATE ROV).
Unfortunately I am a junior in highschool... I have a lot of homework. I don't have much time to tinker on weekdays but I will have time on the weekends. I'll post an update then. Again, thanks for the help!
Posted 3 years ago # -
When you're connecting up to the RPi, you actually just do direct connections with the TXD/RXD pins on the RPi instead of via the mosfet which are acting as level convertors for the 5V arduino. The Maple runs at 3.3V which is the same level as the GPIO of the RPi so you don't need any additional circuitry. Just ensure you're using the same ground for both the RPi and the Maple.
I'm using the RPi's SPI port and running a Maple Mini as a slave device to control motors, sensors and a display.
Posted 3 years ago # -
Update: After following the instructions on the link below the serial port was no longer grayed out and I could view the serial port. I will now work on connecting the 2 via the TXD/RXD pins.
Posted 3 years ago # -
Good to know, I'll add that into the commonly asked questions.
Posted 3 years ago #
Reply
You must log in to post.