STM32, Maple and Maple mini port to IDE 1.5.x

I also had a problem with speed on the 328, I adapted the TVout library (which is mono) so that it multiplexed with 3 channels of PWM to create a 24bit TVout library ! well sort of only one colour at a time. I had to up the processor speed as I was also receiving DMX (250kbps) through the UART constantly AND trying to do heaps of math to create shapes and patterns from the DMX data.

See here -> SmartShow ProjeX - early demo - DMX Lighting - AVR Arduino - YouTube

16mhz just wouldnt cut the mustard as there is a lot of processor time used on creating the video without any visual glitches !

That all looks very impressive, but what exactly am I looking at in that video?

lighting effects that go through smoke, for DJs & bands etc

My Maple-Mini-Clone finally arrived today. Got it working after a little struggle. Uploaded a basic blink sketch and it works!

The problem I am having/had was that:

  1. It doesn't reset when the Maple IDE tries to use DTR. I have to hit reset every time to upload a sketch.
  2. I was getting a message: "Couldn't find the DFU device: [1EAF:0003]". I am running Ubuntu 14.04. I eventually found out how to fix this:
    sudo apt-get install libusb-0.1-4:i386

Anyone else get theirs yet?

Note: Please make reference to:

For a summarized version of pertinent information contained in this lengthly
thread. Also, some simple Mini Maple projects with source may be found on
my blog: http://www.hackster.io/rayburne

PaulRB:
My Maple-Mini-Clone finally arrived today.

Anyone else get theirs yet?

My tracking number says "In transit"... I have 3 coming, so work out the bugs! (please)
I have been working with the PSoC 4200 ARM units, so I have about 90 days of beyond-Arduino there. The 810 guys in another thread have their 8-pin ARM programming under Arduino... Pretty cool.

Ray

Independantly of seeing this thread I ordered on of these yesterday, so I'm interested to hear other people's outcomes

I hadn't actually realized it was a Maple clone, but I guess that makes sense.

I wasn't even sure whether it could be programmed directly or needed a jtag programmer, so also ordered a jtag programmer

http://www.ebay.com.au/itm/New-ARM-Emulator-ARM7-ARM9-ARM11-Cortex-M3-J-link-V8-ADS-IAR-STM32-JTAG-Tide-/161424630350?pt=AU_B_I_Electrical_Test_Equipment&hash=item2595a8624e

and also one of these

http://www.ebay.com.au/itm/ARM-Cortex-M3-STM32F103C8T6-STM32-Core-Board-Minimum-System-Development-Board-/301247607101?pt=AU_B_I_Electrical_Test_Equipment&hash=item4623c1b13d

Though the last one is not Arduino compatible as far as I'm aware

But it was worth a look for a few $

BTW.
Again, not sure if its that useful, or if its been mentioned in this tread, but there is a non Arduino IDE called CooCox that supports STM32 so may be useful. (however I've not even downloaded it myself as I don't have any of the hardware yet, and it will be weeks before it arrives from HongKong

Got my Conway's Game Of Life sketch running on the Maple Mini clone this evening and set a new record for generations per second on a 128x64 OLED display!

http://forum.arduino.cc/index.php?topic=216369.msg1904367#msg1904367

Super cool

Can't wait for mine to arrive

Perhaps I should buy another

PS. How are you connecting it to the PC, it looked like the connector at the end had USB signals on it, but was not a USB type plug
Did you make your own cable, or did the one you buy have USB plug on it ?

Just realised that the other end has a micro usb.

Also just ordered another one. Still waiting for the first one, but I should have bought 2.
I normally buy in two's in case I blow the first one up (which has been known to happen)

Really looking forward to it arriving

I wonder if it works with I2C and if so how fast.

I have some OLEDS but they are I2C and I'm also interested in reading motion data from an MPU9150 which is also I2C

I ordered some Maple Minis but not received yet, but I did get an IteadMaple which I think has the same chip.

It seems that Leaflabs are pursuing other interests nowadays and their IDE is not actively supported. I am looking at creating a Maple package for the 1.5.x IDE, it should be straightforward.

I am looking at creating a Maple package for the 1.5.x IDE, it should be straightforward.

I'd be happy to help when I actually get some hardware

I'm using 1.5. beta because I have a couple of Due boards

I would be willing to help testing that too. I run ubuntu 14.04 on my pc, although I would not call myself an advanced ubuntu user.

Mine has arrived... up to my nuts in other work, but will find time to at least blink it !! :slight_smile:

Went to "ARM TechCon" (http://www.armtechcon.com/ ) Scored an ST CM0 Nucleo board (STM32F072) (I was specifically hoping to find an M0 development board. I've already got M3 and M4 boards of various sorts.)

Note: Please make reference to:

For a summarized version of pertinent information contained in this lengthly
thread. Also, some simple Mini Maple projects with source may be found on
my blog: http://www.hackster.io/rayburne

Hi, West,

For $4, you can get the PSoC 4200 which is an ARM M0+ uC.
Only 4K SRAM and 32K Flash and runs at 48MHz.

However, the learning curve of the Cypress tools is pretty steep (but all free); although once the hill is climbed, the view is fantastic! The 4200 PSoC has 4 Configurable Digital Blocks which can morph into lots of really neat hardware: from OpAmps to USARTs.

Ray

mrburnette:
Hi, West,

For $4, you can get the PSoC 4200 which is an ARM M0+ uC.
Only 4K SRAM and 32K Flash and runs at 48MHz.

I did a quick overview to PSoC and I didn't like the way you program it. Doing the code you have to deal with blocks diagrams (don't you?) and I think that's annoying (maybe for others that's easier).

mrburnette:
For $4, you can get the PSoC 4200 which is an ARM M0+ uC.
Only 4K SRAM and 32K Flash and runs at 48MHz.

However, the learning curve of the Cypress tools is pretty steep (but all free); although once the hill is climbed, the view is fantastic! The 4200 PSoC has 4 Configurable Digital Blocks which can morph into lots of really neat hardware: from OpAmps to USARTs.

I like the sound of $4 dev board :slight_smile: I just need to find somewhere I can order without paying $15 delivery charge :frowning:

Would it help the learning curve if there was support within Arduino IDE for Psoc 4?

Doing the [PSoC] code you have to deal with blocks diagrams (don't you?)

No, the "block diagram" part is for defining the reconfigurable hardware that is unique to the Cypress parts.
The actual code is just ordinary C. For an arduino-like environment, the hardware would probably get configured in "the core" and a user would not have to deal with that part of things.

just been looking at Maple | LeafLabs for info about how to install the IDE etc for the MapleLeaf ST32 I bought...

It seems its quite out of date and the IDE might only run on XP, it will run on w7

Note that while these instructions work on Windows XP, changes in Windows 7 (and later) mean that you won’t be able to install the IDE without disabling driver signing on your computer. Users on the forum have reported a workaround, but we only officially support the IDE on 32-bit Windows XP.

I dont have an XP machine, and not really sure about disabling the driver signing thing....

:frowning:

and I just found this... the solution ??

http://wiki.leaflabs.com/Maple_IDE_Windows_8_Installation

I recently installed Maple IDE to verify my Iteadmaple works. The IDE runs ok on Win7 64 bit, I did have the issue with the DFU driver install. I followed the route of creating a new INF file using libusb. I also had an issue with Teensy incorrectly installing a driver for the USB serial.

The inf-wizard instructions are as follows, from this thread http://forums.leaflabs.com/topic.php?id=73, see post by Bionic-Badger.

Step-by-step instructions:

  • Download the binary libUSB package (libusb-win32 - Browse Files at SourceForge.net), extract somewhere (we'll call it c:\LIBUSB)
  • Plug the Maple board into the computer
  • Open Device Manager
  • Switch Maple board into continuous Bootloader mode (hit reset until you get the fast blinks followed by slower blinks; reset again and immediately hit and hold the boot "BUT" button until it changes into slow blink mode, release).
  • It should show some broken USB device in your Devices, not a com-port
  • Run the libusb INF wizard (c:\LIBUSB\bin\x86\inf-wizard.exe)
  • Click through the dialogs, the default values should be fine, or you can fill in some descriptive info
  • Save the INF and have it install. It'll produce a big red prompt about the driver being unsigned and problematic; however, it will still work.
  • "Update" the MAPLE 003 device in your device manager and select the INF file you generated.

On Win7 you can install unsigned drivers, but I think Win 8 can only be done after changes to bootup. I am considering getting a certificate in order to create signed drivers for this sort of thing.

However, you may be interested to know I have created an initial version of Maple support package for Arduino IDE 1.5.x series, the repo is at GitHub - bobc/maple-asp: Arduino Support Package For Maple. It still needs some work, but if you have a Maple Rev3+ board you should be able to compile sketches and upload, with the board in perpetual bootloader mode.

So far I have only run a blinky, so expect bugs !