gnea / grbl-Mega

An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on an Arduino Mega2560
https://github.com/gnea/grbl/wiki
Other
495 stars 230 forks source link

Using grbl with other MCUs #92

Open PerThomas opened 5 years ago

PerThomas commented 5 years ago

Hi I wonder if anybody have an idea of whether or not it is a lot work to port grbl to be used with other MSCs. I considering using grbl on a project that uses an STM32 micro-controller to control some stepper motors.

Im an experienced programmer myself, but would appreciate a few pointer on where to start

PerThomas commented 5 years ago

I meant MCUs

langwadt commented 5 years ago

it's quite straight forward I've ported it to STM32. basically; reimplement serial.c, eeprom.c, the atomic access, fix all the GPIO access and setup a timer for the step interrupt

https://github.com/langwadt/grbl_stm32

chamnit commented 5 years ago

It’s not too bad. But I am working on an abstraction to make it easier. Been busy but intend to release it eventually.

PerThomas commented 5 years ago

Thanks a lot for quick reply, I will have a look 😊

best regards

Per Thomas Hille


Fra: Sonny Jeon notifications@github.com Sendt: onsdag 27. februar 2019 20.26 Til: gnea/grbl-Mega Kopi: Per-Thomas Hille; Author Emne: Re: [gnea/grbl-Mega] Using grbl with other MCUs (#92)

It’s not too bad. But I am working on an abstraction to make it easier. Been busy but intend to release it eventually.

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/gnea/grbl-Mega/issues/92#issuecomment-467996857, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Adbawpj7-_mXkQhcELifs-AiBXhyIjV7ks5vRtv-gaJpZM4bUzKS.

When you communicate with us or otherwise interact with Semcon, we will process personal data that you provide to us or we collect about you, please read more in our Privacy Policyhttps://semcon.com/data-privacy-policy/.

PerThomas commented 5 years ago

Thanks a lot, I will have a look 😊, Im sure I will figure out something with the hints below.

I will let you know how it goes.

best regards

Per Thomas Hille


Fra: langwadt notifications@github.com Sendt: onsdag 27. februar 2019 18.18 Til: gnea/grbl-Mega Kopi: Per-Thomas Hille; Author Emne: Re: [gnea/grbl-Mega] Using grbl with other MCUs (#92)

it's quite straight forward I've ported it to STM32. basically; reimplement serial.c, eeprom.c, the atomic access, fix all the GPIO access and setup a timer for the step interrupt

https://github.com/langwadt/grbl_stm32

[https://avatars3.githubusercontent.com/u/1613189?s=400&v=4]https://github.com/langwadt/grbl_stm32

GitHub - langwadt/grbl_stm32: grbl for stm32 with nucleo stepper drivershttps://github.com/langwadt/grbl_stm32 github.com grbl for stm32 with nucleo stepper drivers. Contribute to langwadt/grbl_stm32 development by creating an account on GitHub.

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/gnea/grbl-Mega/issues/92#issuecomment-467950897, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdbawgijFqVm0HFvawL_6enowQJgubh2ks5vRr31gaJpZM4bUzKS.

When you communicate with us or otherwise interact with Semcon, we will process personal data that you provide to us or we collect about you, please read more in our Privacy Policyhttps://semcon.com/data-privacy-policy/.

bdring commented 5 years ago

I have ported it to 2 other MCUs. It was pretty easy because the code is so well written and easy to follow.

My advice is to work backwards from the peripherals. Get all the timers and PWMs working and the rest is pretty easy.