-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regarding use of Rockpro64 with pycnc #29
Comments
Hello |
Hello,
Thank you very much for your reply your project is awesome and I'm trying
it out with my different systems as I'm not weak in programming I'm not
able to using your project with Rock pro can you please guide me how to get
this working with rockpro 64?
…On Wednesday, November 28, 2018, Nikolay Khabarov ***@***.***> wrote:
Hello
I'm happy to hear that project is useful.
Current implementation exists only for bcm283x processors which are used
in Raspberry Pi boards. RockPro64 board uses Rockchip RK3399 processor. And
to use it with PyCNC, hardware abstraction layer(HAL) should be implemented
for PyCNC. Here is the HAL for RPI - https://github.com/Nikolay-
Kha/PyCNC/tree/master/cnc/hal_raspberry
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYphSDoSi-bozRdBZnuaSC7-rpCC2R7Rks5uzr-CgaJpZM4X-86_>
.
--
Bharath Bellary
9738835150
|
You need to implement the same thing which is implemented for RPi here - https://github.com/Nikolay-Kha/PyCNC/tree/master/cnc/hal_raspberry You would need to find a way to use Rockchip DMA controller to generate pulses, control GPIO ports etc. As far as I remember that processor has even better then RPi DMA module and create this should be even easier, but still require a lot of thinking and reading of chip documentation. |
Yes Rockchip pro is better than raspberry Pi I tried to modify hal.py with
DMA address and ended up with getting nothing is there any other ways that
I can get pycnc working Rockpro64
…On Wed, 28 Nov, 2018, 10:46 PM Nikolay Khabarov, ***@***.***> wrote:
You need to implement the same thing which is implemented for RPi here -
https://github.com/Nikolay-Kha/PyCNC/tree/master/cnc/hal_raspberry
Prototype for this class -
https://github.com/Nikolay-Kha/PyCNC/blob/master/cnc/hal.py
Another, virtual, i.e. dummy implementation -
https://github.com/Nikolay-Kha/PyCNC/blob/master/cnc/hal_virtual.py
You would need to find a way to use Rockchip DMA controller to generate
pulses, control GPIO ports etc. As far as I remember that processor has
even better then RPi DMA module and create this should be even easier, but
still require a lot of thinking and reading of chip documentation.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYphSOELPKjpXBupEL0ulDua5cOjAwfHks5uzsTwgaJpZM4X-86_>
.
|
Just to change addresses is not enough. DMA modules are different. You need to find a way to start DMA module to copy data from buffer to GPIO module. Registers and possible values are described in chip documentation. To explain that to DMA module you would need to write something in DMA registers. |
Thank you very much for your response yup I'll try these and let you know
and thank you for the project it's was awesome 😊✌️
…On Thu, 29 Nov, 2018, 5:41 PM Nikolay Khabarov, ***@***.***> wrote:
Just to change addresses is not enough. DMA modules are different. You
need to find a way to start DMA module to copy data from buffer to GPIO
module. Registers and possible values are described in chip documentation.
To explain that to DMA module you would need to write something in DMA
registers.
You could start with simple GPIO. Try to write data directly to GPIO
module to control pins. Try to blink with LED. See this lines:
https://github.com/Nikolay-Kha/PyCNC/blob/master/cnc/hal_raspberry/rpgpio.py#L415-L430
- that is a test for RPi to blink with LED on pin 21. It also needs to be
implemented for HAL. And that is a good start to understand how things work
in processor registers.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYphSK7jPNV8PWqJcmuTnWQ7cWkYFEdYks5uz87rgaJpZM4X-86_>
.
|
Hello nikolay,
What a wonderful project you have done it's nice and useful .
But i'm facing a problem with using the pycnc with my new Rockpro64 i tried different methods to port it but it was unsuccessful please guide me to how to use pycnc with RockPro64
Thank you
The text was updated successfully, but these errors were encountered: