EMC2 running on Raspberry Pi?

More
12 years 8 months ago #44029 by ADBensi
With respect, I know FPGA, however, I ran the application with Picnc Jr on DMA and it leaves nothing to be desired. In fact, directly by GPIO had a poor guarantee the regularity of the pulses and the same does not occur with SPI + DMA;

That would be better if I could show some result migrating it to Cubieboard A20 (dual core with DDR3).

Best Regards,

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #44221 by ADBensi
Today is a great day :D
First result with Xenomai in A10 All Winner

RTT| 00:14:01 (periodic user-mode task, 100 us period, priority 99)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
RTD| 0.124| 0.999| 9.624| 0| 0| 0.041| 15.999
RTD| 0.083| 1.041| 10.624| 0| 0| 0.041| 15.999
RTD| 0.124| 1.083| 13.791| 0| 0| 0.041| 15.999
RTD| 0.124| 1.041| 9.999| 0| 0| 0.041| 15.999
RTD| 0.124| 0.999| 9.791| 0| 0| 0.041| 15.999
RTD| 0.124| 0.999| 9.708| 0| 0| 0.041| 15.999
RTD| 0.124| 0.999| 9.583| 0| 0| 0.041| 15.999

Linux cubie 3.4.12-xenomai #2 PREEMPT Tue Feb 25 01:22:02 BRT 2014 armv7l GNU/Linux
A10 @ 1.01 GHz

total used free shared buffers cached
Mem: 815M 143M 671M 0B 20M 66M
-/+ buffers/cache: 56M 758M

Next: get SPI code from Raspberry and put on A10 :)

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #44260 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?
Just an update guys,

I have ported the picnc board to run on a hacked A13 tablet . The camera interface has to be disabled to get access to the spi pins.

image missing http://s1.postimg.org/4eokodrqj/IMGP7354.jpg

A portable touchscreen based LCNC controller is now possible. :)

Cheers!

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #44277 by ADBensi
Hello,

Very interesting, congratulations!

  Kinsa, A13 is very similar to the A10. : D
  I'm with RT kernel in A10, and this weekend I would port the code SPI / GPIO from raspberry. Apparently you did it, can you help me?

If you can show me the settings you made ​​...

Best Regards

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #44278 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?
You can get the code here:
Code:
git clone -b testing/sunxi https://code.google.com/p/picnc/
You'll have to modify the defines in HAL/picnc_grbl.h especially the CCM clock and gate values as I don't think the A10 shares the same settings.

Getting the SPI to work is a bit tricky as the documentation is sorely lacking. I must admit that RPi is way much better in this regard compared to the Allwinner chips.
The following user(s) said Thank You: wizard69

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #44289 by ADBensi
Hello,

  You compiled the emc2 supporting any platform? example
  . / configure - prefix = / usr / local - with-platform = raspberry ...

Best Regards

Please Log in or Create an account to join the conversation.

Time to create page: 0.646 seconds
Powered by Kunena Forum