Insufficient memory for signal/pin

More
9 years 2 months ago #97215 by andypugh
You might have to edit this entry and recompile:

github.com/LinuxCNC/linuxcnc/blob/master.../hal/hal_priv.h#L331

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

More
9 years 2 months ago #97223 by Nico2017
Should I modify the HAL KEY or the HAL_SIZE? And which value should I put to modify one of this, especially if it is the HAL key which need to be modified.

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

More
9 years 2 months ago #97233 by andypugh
It would be the size, you certainly don't want to be changing the key.

Is there any possibility of reducing the pin count by modifying the loadrt parameters of some components?

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

More
9 years 2 months ago #97258 by Nico2017
At the moment I am still in the development phase, so I am still creating lots of pins and would like to be able to extend the memory. Surely will do a bit of cleaning once I get a more finalized version of the hal configuration I will eventually used. But so far, all components are used and I can hardly reduce the amount of pins.

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

More
9 years 2 months ago - 9 years 2 months ago #97260 by andypugh
If you are using Mesa cards then you can turn off unused stepgens and encoders (for example).

But, other than that, no, if you load the components you get the pins.

However, I have never heard of anyone else runnoing out of HAL memory (recently) and so I wonder if there are things that could be done more efficiently, possibly with some simple custom components.
Last edit: 9 years 2 months ago by andypugh.

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

More
8 years 3 months ago #114682 by Nico2017
Hi,

thanks for your advice. I managed to achieve some additional function for my project, by removing some other hal components or their pins function that were not used. Nevertheless the project has become bigger and I am at the point where I have removed all non used component pins. So here we go, I need all the hal elements loaded on my project but if I add one additional pin to any component I got the Hal insufficient memory error message.

I guess I have now to increase the memory for the hal. Can you indicate me how to do that more precisely from the file you have indicated earlier, especially to be able to recompile only the required file related to hal without the compiling everything for linuxcnc.

Thank you,

Nicolas

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

Time to create page: 0.168 seconds
Powered by Kunena Forum