Replies: 7 comments 22 replies
-
At this moment I'm on holiday, so have this answer is from my mobile phone and from my head. My apologies, more detailed answer I can send on Sunday. I see that the documentation / error message is maybe outdated. The command Will change the error message. |
Beta Was this translation helpful? Give feedback.
-
So, next problem, firmware build... build error, Traceback (most recent call last): What am I not setting correctly in the pwm section? |
Beta Was this translation helpful? Give feedback.
-
Good morning, nc@cnc:~$ halrun What could be the problem? |
Beta Was this translation helpful? Give feedback.
-
I see this as a bug. Break down of what happens:
- the error only happens when memory cannot be allocated for a module, i.e.
`pwm` in this case;
- I don't think this is hardware related, so most-likely the byte with the
number of instances received from the FPGA is zero (which prevents
allocation of memory);
- either in the firmware there is an error or in the driver.
Going to check which part has been changed with the latest modification, as
this behavior I didn't experience before.
Op za 17 aug 2024 om 08:57 schreef Csaba Horvath ***@***.***>:
… Good morning,
***@***.***:~$ halrun
halcmd: loadrt litexcnc connections="eth:192.168.12.20"
Note: Using POSIX realtime
litexcnc: Loading Litex CNC driver version 1.2.4
litexcnc: Loading and registering default modules:
litexcnc: Registered module gpio
litexcnc: Registered module pwm
litexcnc: Registered module encoder
litexcnc: Registered module step
litexcnc: Setting up board drivers:
litexcnc: Registered driver eth
LitexCNC-eth: connected to board on '192.168.12.20:1234'
litexcnc: INFO: Version of firmware (1.3.0) is different with the version
of the driver (1.2.4). Communication is still possible, although the
firmware could use an update for the best experience.
litexcnc: Setting up modules...
litexcnc: Reading 28 bytes
litexcnc: - Watchdog
litexcnc: - Wallclock
litexcnc: - gpio ... done!
litexcnc: Out of memory!
litexcnc: Failed to instantiate module: 'pwm'
litexcnc: - pwm ...board fails LitexCNC registration
litexcnc: Failed to initialize the driver.
litexcnc: rtapi_app_main: Invalid argument (-22)
:1: waitpid failed /usr/bin/rtapi_app litexcnc
:1: /usr/bin/rtapi_app exited without becoming ready
:1: insmod for litexcnc failed, returned -1
halcmd:
What could be the problem?
Flash, ping, ok.
—
Reply to this email directly, view it on GitHub
<#107 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUVAUEOUW4664CJP4H74L3ZR3X55AVCNFSM6AAAAABMSPBQ2SVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMZWGQ3TKMI>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Quick check: after installing the development version of the firmware, did
you also re-install the driver? There has been a change in the driver which
could explain the behavior you are experiencing.
Op za 17 aug 2024 om 15:58 schreef Peter Van Tol ***@***.***>:
… I see this as a bug. Break down of what happens:
- the error only happens when memory cannot be allocated for a module,
i.e. `pwm` in this case;
- I don't think this is hardware related, so most-likely the byte with the
number of instances received from the FPGA is zero (which prevents
allocation of memory);
- either in the firmware there is an error or in the driver.
Going to check which part has been changed with the latest modification,
as this behavior I didn't experience before.
Op za 17 aug 2024 om 08:57 schreef Csaba Horvath ***@***.***
>:
> Good morning,
>
> ***@***.***:~$ halrun
> halcmd: loadrt litexcnc connections="eth:192.168.12.20"
> Note: Using POSIX realtime
> litexcnc: Loading Litex CNC driver version 1.2.4
> litexcnc: Loading and registering default modules:
> litexcnc: Registered module gpio
> litexcnc: Registered module pwm
> litexcnc: Registered module encoder
> litexcnc: Registered module step
> litexcnc: Setting up board drivers:
> litexcnc: Registered driver eth
> LitexCNC-eth: connected to board on '192.168.12.20:1234'
> litexcnc: INFO: Version of firmware (1.3.0) is different with the version
> of the driver (1.2.4). Communication is still possible, although the
> firmware could use an update for the best experience.
> litexcnc: Setting up modules...
> litexcnc: Reading 28 bytes
> litexcnc: - Watchdog
> litexcnc: - Wallclock
> litexcnc: - gpio ... done!
> litexcnc: Out of memory!
> litexcnc: Failed to instantiate module: 'pwm'
> litexcnc: - pwm ...board fails LitexCNC registration
> litexcnc: Failed to initialize the driver.
> litexcnc: rtapi_app_main: Invalid argument (-22)
> :1: waitpid failed /usr/bin/rtapi_app litexcnc
> :1: /usr/bin/rtapi_app exited without becoming ready
> :1: insmod for litexcnc failed, returned -1
> halcmd:
>
> What could be the problem?
> Flash, ping, ok.
>
> —
> Reply to this email directly, view it on GitHub
> <#107 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACUVAUEOUW4664CJP4H74L3ZR3X55AVCNFSM6AAAAABMSPBQ2SVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMZWGQ3TKMI>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***
> com>
>
|
Beta Was this translation helpful? Give feedback.
-
I tried a previous firmware setting on the card and it works. And new json, is not ok. If you have some time, could you check what the error could be? I can't find it. |
Beta Was this translation helpful? Give feedback.
-
hello
But I get this error when building the firmware
Can someone tell me how to fix this error? |
Beta Was this translation helpful? Give feedback.
-
Dear Peter,
I replaced the PC with a new one and I am experiencing the following installation problem.
Linuxcnc Debian 12 Bookworm PREEMPT-RT ISO freshly installed.
Python3, pip3 installed and Litexcnc installed.
Oss-cad-suite is also installed.
When compiling firmware (litexcnc build_firmware *.json --build) I always get the error "Litex is not installed. Please run 'litexcnc install_litex' first."
If I issue the litexcnc command, it shows the litex commands (build_firmware, convert, flash,...).
What can I do wrong, what might not be set correctly?
Beta Was this translation helpful? Give feedback.
All reactions