How to debug a real-time component?

More
20 Jun 2019 18:12 - 20 Jun 2019 18:14 #137399 by andypugh

- Then I started developing a driver for an RPi board to direct access the GPIO hardware with the same concept. I started this thread at this point.




That should not be necessary. There is already a driver, but for some reason I am not clear on it did not make it in to the LinuxCNC set.

Section 4 here:
wiki.linuxcnc.org/cgi-bin/wiki.pl?RPi3BPreemptRT
Last edit: 20 Jun 2019 18:14 by andypugh.

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

More
20 Jun 2019 18:15 #137400 by andypugh
Also, rather than bit-bang on GPIO, you could use this:
store.mesanet.com/index.php?route=produc...oduct&product_id=338

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

More
20 Jun 2019 18:23 #137401 by andypugh
But, if you _want_ to write a driver, perhaps a generic "hal_arm_gpio" component would be an interesting challenge?

The Machinekit hal_bb_gpio (for beaglebone) looks like a good starting point:
github.com/machinekit/machinekit/tree/ma.../drivers/hal_bb_gpio

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

More
24 Jun 2019 18:00 #137746 by ajsinfotech
Hi PCW!

Pretty clever method! It could be very useful in some cases.

Thanks for share! :)

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

More
24 Jun 2019 18:30 #137748 by ajsinfotech
Hi andypugh!

Pretty nice and clean solution but, I design my own breakout board because I need to drive a 220VAC line to switch a lube pump. I also need a simple PWM to analog circuit converter to drive my Yaskawa VFD controller. I put all that together in one board.
So I think bit-banging and the 26 pins of my RPi3B+ should be enough to my purpose. I am building a 3axis Gantry machine.

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

More
24 Jun 2019 18:42 #137749 by ajsinfotech
I have already seen the hal_bb_gpio example. I used it as my starting point :)
If I get a clean code, it could be nice to develop the "ARM" version of the module to share. Thanks for the suggestion :)

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

Time to create page: 0.083 seconds
Powered by Kunena Forum