Category: HAL
Dear LinuxCNC Enthusiasts,
I’m new to LinuxCNC and working on a custom setup. My hardware includes a PCI board (not Mesa or parallel port), which handles real-time interrupts. The drives manage their own position PID loops; they only require the theoretical trajectory, which I provide via a proprietary protocol using a custom library. Feedback data, like actual position, is also available if needed.Since my setup is non-standard, I’ve manually created the necessary INI, HAL, and HAL C files. However, I’m encountering the following errors:
HAL: ERROR: pin_new(my_handler.0-pos-cmd) called with already-initialized memory
HAL: ERROR: data_ptr_addr not in shared memory
Failed to create x_pos_cmd pin.
I use hal_malloc, and insure proper initialitation, but the errors persist.The 3 files that i use are attached. At this point, i would just need a sample to a component that will simply print out the theoritical possition and sent back this theoritical position as the real position (just for the example)I’d greatly appreciate guidance on debugging or examples of similar setups.
Thanks in advance for your help!