Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
1 year 4 months ago #331047 by scotta
The LPC1768 is legacy and I suspect that you have installed the current version of the remora component for LinuxCNC. The data packet was updated since the LPC1768 development stopped.

Try this component
github.com/scottalford75/Remora/tree/mai...NC/Components/Remora

You're very close by the looks.
The following user(s) said Thank You: Ac1dburn

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

More
1 year 4 months ago #331048 by Ac1dburn
Thank you for the reply scotta,
I'm assuming you meant to say LPC1769
As I'm not using an LPC1768 on the turbo. I'll take a look at what you sent and report back

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

More
1 year 4 months ago #331051 by Ac1dburn
removed all the remora components/ modules from the Pi. halcompile only the remora_lpc.c module from the directory you showed after I re-cloned it onto the Pi (This is what I had already had installed, I basically re-installed/ compiled it)
tried to boot and watch the serial debug and it did the same thing as before.

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

More
1 year 4 months ago #331053 by cakeslob
i think we forgot to update the component for the 00.input,

change your inputs to 0.input or 1.input. also the inputs dont go up to 27
The following user(s) said Thank You: Ac1dburn

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

More
1 year 4 months ago #331055 by Ac1dburn
That was it. removed the 0's before the single digit numbers in the hal and it launched as expected. Awesome. Thank you. also, limit switches are triggering as expected now in halshow.

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

More
1 year 3 months ago #332143 by Ac1dburn
Alright, I'm getting really close now (I think), but I'm to a point where I'm not 100% sure what the deal is. Unfortunately, the pin I needed to use for the QEI encoder module happens to be a bad pin on my SKR 1.4 Turbo apparently. I can't get it to pull high. I may have messed it up years ago trying to get neopixel LEDs working, I don't know. I set up a new pin as a digital input on the Y limit connector (Pin 1.28) and simply mapped the index pulse to that pin in my hal file. I'm seeing what appears to be a solid pulse in halscope. I'm also seeing it trigger on the phaseZ and index-enable pins. However, every time trying to do a threading operation, my program hangs at what appears to be waiting on the index pulse. I know the documentation states that the pins are pre-assigned and can't be changed, but I figured the index was handled differently since it included the remora.input.N is mapped in hal, but maybe something on the backend with the way the QEI encoder is handled. I apologize in advance if my HAL and INI look messy but everything else seems to work. I had to set my servo thread to 2000000 to get around the unexpected real-time delay error, but my latency in histogram --nobase seems great with isolcpus 1,2,3 on the Pi 4. I did try running the program with the servo period set to 1000000 in my INI just to see if that had something to do with a timing issue when registering the index-enable true when Linuxcnc expects to see it, but, it didn't work. Just about everything else seems to be working. Anyways here's my HAL again, my INI, and my config.txt

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

Time to create page: 0.581 seconds
Powered by Kunena Forum