How to debug a real-time component?
20 Jun 2019 18:12 - 20 Jun 2019 18:14 #137399
by andypugh
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
Replied by andypugh on topic How to debug a real-time component?
- 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.
20 Jun 2019 18:15 #137400
by andypugh
Replied by andypugh on topic How to debug a real-time component?
Also, rather than bit-bang on GPIO, you could use this:
store.mesanet.com/index.php?route=produc...oduct&product_id=338
store.mesanet.com/index.php?route=produc...oduct&product_id=338
Please Log in or Create an account to join the conversation.
20 Jun 2019 18:23 #137401
by andypugh
Replied by andypugh on topic How to debug a real-time component?
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
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.
- ajsinfotech
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 1
24 Jun 2019 18:00 #137746
by ajsinfotech
Replied by ajsinfotech on topic How to debug a real-time component?
Hi PCW!
Pretty clever method! It could be very useful in some cases.
Thanks for share!
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.
- ajsinfotech
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 1
24 Jun 2019 18:30 #137748
by ajsinfotech
Replied by ajsinfotech on topic How to debug a real-time component?
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.
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.
- ajsinfotech
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 1
24 Jun 2019 18:42 #137749
by ajsinfotech
Replied by ajsinfotech on topic How to debug a real-time component?
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
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