Go Down

Topic: STM32, Maple and Maple mini port to IDE 1.5.x (Read 354074 times) previous topic - next topic

mcnobby

Hi Paul,
I have been using a 32mhz TTL clock generator on a atmega328 for some time now without any problems, I think the 20mhz limit maybe for using crystals, I used 20mhz xtal and it was fine, but a 24mhz xtal just didnt start, so I decided to try the ttl clocks

not noticeably hot by the way ;)
http://www.youtube.com/user/Recovered
http://www.smartshow.lighting

PaulRB

Interesting, mcnobby!

But I was thinking of, for example, a 320x240 pixel lcd. That's 10 times as many cells in the Life matrix as 128x64, so would need 10 times the ram and 10 times the processing speed. The move from 8 to 32 bit architecture might get me a 4x speed improvement, so I would need another 3x clock speed improvement also (this is all back-of-a-fag-packet obviously). I would probably need 10x SPI speed also to update the display quickly enough.

mcnobby

crikey !!!

exponential-o-rama !!!
http://www.youtube.com/user/Recovered
http://www.smartshow.lighting

smeezekitty

Quote

The move from 8 to 32 bit architecture might get me a 4x speed improvement, so I would need another 3x clock speed improvement also

Not necessarily. It is possible to make up that much through software optimizations sometimes
Avoid throwing electronics out as you or someone else might need them for parts or use.
Solid state rectifiers are the only REAL rectifiers.
Resistors for LEDS!

PaulRB


Quote

The move from 8 to 32 bit architecture might get me a 4x speed improvement, so I would need another 3x clock speed improvement also

Not necessarily. It is possible to make up that much through software optimizations sometimes


My GoL algorithm processes cells in parallel for groups of 32 / 64 cells stored as a long or long long unsigned int. The 8 bit Arduinos I have run it on so far have to deal with this data in 4 or 8 byte operations. I'm hoping the ARM can do this more efficiently in 1 or 2 operations.

mcnobby

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 -> https://www.youtube.com/watch?v=RV49tQ6Lilc

16mhz just wouldnt cut the mustard as there is a lot of processor time used on creating the video without any visual glitches !
http://www.youtube.com/user/Recovered
http://www.smartshow.lighting

PaulRB

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

mcnobby

lighting effects that go through smoke, for DJs & bands etc
http://www.youtube.com/user/Recovered
http://www.smartshow.lighting

PaulRB

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:
Code: [Select]
sudo apt-get install libusb-0.1-4:i386

Anyone else get theirs yet?

mrburnette

#24
Oct 01, 2014, 01:12 am Last Edit: Dec 28, 2014, 05:03 pm by mrburnette
Note: Please make reference to:
https://github.com/rogerclarkmelbourne/Arduino_STM32/wiki
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

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

rogerClark

#25
Oct 01, 2014, 01:58 am Last Edit: Oct 01, 2014, 02:00 am by rogerClark Reason: 1
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
Freelance developer and IT consultant
www.rogerclark.net

PaulRB

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

rogerClark

#27
Oct 02, 2014, 02:13 am Last Edit: Oct 02, 2014, 02:25 am by rogerClark Reason: 1
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
Freelance developer and IT consultant
www.rogerclark.net

bobcousins

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.
Please ask questions in the forum so everyone can benefit. PM me for paid work.

rogerClark

Quote
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


Freelance developer and IT consultant
www.rogerclark.net

Go Up