build fails with ValueError: Cannot extract CSR name from code, need to specify
after.... python update?
#122
-
I'm not sure what really happened to have this error start, I hadn't touched my config in months, and checked against old, known to work configs and get this error every time. It happens in my old build environment and in freshly created ones, the only thing I can think of having changed would be my python version being updated. I'm running Arch Linux, so the
Trying to dig in myself but progress is slow going, if anyone know migen/litex better any hints would be appreciated! Thanks.
|
Beta Was this translation helpful? Give feedback.
Replies: 14 comments 16 replies
-
Thank you for using LitexCNC. Over the past few months there have been updates in LitexCNC, so maybe there has been something changed. I would love to help you further on this subject. Could you please:
|
Beta Was this translation helpful? Give feedback.
-
I just manually performed what the _install_litex method did, wget'ing my main config, other simpler configs had similar results.
|
Beta Was this translation helpful? Give feedback.
-
I also run |
Beta Was this translation helpful? Give feedback.
-
Yeah as part of my debugging I tried to get to bleeding edge on everything but as you said, it's still giving the CSR error.. |
Beta Was this translation helpful? Give feedback.
-
also, good news, the updated config successfully builds on my Debian based laptop, so that will allow me to move forward at least, and give a point of comparison in debugging what going on with my desktop. I'll also be looking closely at if this is a LiteX, or specifically LiteX-CNC issue. |
Beta Was this translation helpful? Give feedback.
-
I suspected Python version might was the major difference between my two systems. |
Beta Was this translation helpful? Give feedback.
-
Hello! The problem is with the encoder module. Removing it from the configuration everything works. The driver gives an error with it.
` |
Beta Was this translation helpful? Give feedback.
-
I will attach the configuration file, there is quite a large volume in modules. This configuration compiles very well in version 1.2.4 |
Beta Was this translation helpful? Give feedback.
-
LinuxCNC stopped working. I deleted almost everything from ini and hal files.
|
Beta Was this translation helpful? Give feedback.
-
To run LinuxCNC, I deleted everything from the hal file except for running the driver and the watchdog timer copied from the example. Unfortunately, something went wrong during the next firmware update). Apparently, it was because I was doing this on a breadboard, a failure occurred and the FPGA burned out. I think that since the 74CH245 has a different direction and the controller applied voltage to the output, a short circuit occurred. The resistors that are on the board did not save it, since they are 30 Ohm, which is 100 mA. |
Beta Was this translation helpful? Give feedback.
-
I took into account the change of signs. But now I will not be able to try it earlier than in a couple of weeks when I receive a new board. Now in the redesign of this board it is necessary to take into account the disconnection of the power supply of the buffer microcircuits at the time of firmware. |
Beta Was this translation helpful? Give feedback.
-
I was unable to check in the new firmware, but in version 1.2.4 there was the following problem. When either after closing the LinuxCNC program or after turning off the machine in the program at the output of the driver control pulses appeared. This is clearly visible on the oscilloscope. And the most interesting thing is that if you write something like net param1 => Name.stepgen.00.position-cmd and net param1 => Name.stepgen.01.position-cmd in hal, then the pulses were synchronous at both outputs. To solve this problem, I used additional outputs to control the "enable" stepper motor driver. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, my board burned out |
Beta Was this translation helpful? Give feedback.
-
I'm not in the EU. I should get the controller by January 25th and also have to remake it. |
Beta Was this translation helpful? Give feedback.
Thanks for this heads up!
I've found the source of the error. One of the dependencies of Litex does not support Python 3.13 yet. Most likely your Debian setup has Python 3.12 or less.
Until Migen has been patched, we cannot support Python 3.13. On your Arch Linux system, create a
venv
with a lower Python version and it will most likely work,