- Posts: 62
- Thank you received: 0
ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
4 years 3 months ago #248469
by muvideo
Replied by muvideo on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
First I would try to understand what are the errors message telling, from the video I'm not sure what are they about.
Second, I would verify that the board remains enabled after the error, I would also monitor the difference between commanded velocity and velocity feedback. Halscope can be useful e for this last measurement.
Second, I would verify that the board remains enabled after the error, I would also monitor the difference between commanded velocity and velocity feedback. Halscope can be useful e for this last measurement.
Please Log in to join the conversation.
4 years 3 months ago #248676
by vit74vit
Replied by vit74vit on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
New bug
svb please post you hal file. I can try testing Fabio firmware
Please Log in to join the conversation.
4 years 2 months ago #248803
by svb
Replied by svb on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
svb please post you hal file. I can try testing Fabio firmware
Attachment not found
Attachment not found
Please Log in to join the conversation.
4 years 2 months ago #249009
by vit74vit
Replied by vit74vit on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
SVB Thanks to the file.
As I understood from the video, the machine moved behind hardware zeros (home limits X,Y) and gave an error. If you move processing to the workspace, everything works correctly. I checked it many times.
As I understood from the video, the machine moved behind hardware zeros (home limits X,Y) and gave an error. If you move processing to the workspace, everything works correctly. I checked it many times.
Please Log in to join the conversation.
4 years 2 months ago #249065
by svb
Replied by svb on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
@vit74vit, Please read cnc-club personal message
Please Log in to join the conversation.
4 years 2 months ago #249475
by TOLP2
Replied by TOLP2 on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Woo, this thread exploded while on holiday. Good to see you active and many thanks to svb to help other users out.
As the problems with stepgen still persist, I will look into that coming weekend.
As the problems with stepgen still persist, I will look into that coming weekend.
Please Log in to join the conversation.
4 years 2 months ago #249575
by vit74vit
Replied by vit74vit on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Dear Peter.
I found a bug in the register reading function from the FPGA.
In driver package has structure: Watchdog (32),WallClock(64),GPIO_IN(32), .......
In reality, there is no Watchdog in the package.
The starting address of the read buffer is shifted by the size of Watchdog (32), which leads to errors described by me and SVB.
P/S: Peter, you can post an example of how to use litexcnc_debug, now I have added the debug info to litexcnc.c.
I found a bug in the register reading function from the FPGA.
In driver package has structure: Watchdog (32),WallClock(64),GPIO_IN(32), .......
In reality, there is no Watchdog in the package.
The starting address of the read buffer is shifted by the size of Watchdog (32), which leads to errors described by me and SVB.
P/S: Peter, you can post an example of how to use litexcnc_debug, now I have added the debug info to litexcnc.c.
Please Log in to join the conversation.
4 years 2 months ago #249623
by TOLP2
Replied by TOLP2 on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Which method did you use to print this out?
To check whether the watchdog data is missing or the datastream is mis-aligned I would like to have your configuration.
I'm very keen on solving this problem. With the data from svb I've verified so far:
- it is not due to an error in the driver (I replaced the driver and it still worked)
- it is not due to an error in the HAL-file (his HAL-file works with my card).
Other words: I was not able to reproduce the error. Next step is to verify the firmware. Somewhere something has changed, now to find where. Thanks a lot for the lead to look.
To check whether the watchdog data is missing or the datastream is mis-aligned I would like to have your configuration.
I'm very keen on solving this problem. With the data from svb I've verified so far:
- it is not due to an error in the driver (I replaced the driver and it still worked)
- it is not due to an error in the HAL-file (his HAL-file works with my card).
Other words: I was not able to reproduce the error. Next step is to verify the firmware. Somewhere something has changed, now to find where. Thanks a lot for the lead to look.
Please Log in to join the conversation.
4 years 2 months ago #249633
by romanetz
Replied by romanetz on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Can you show the firmware compilation report?
I mean, if a logic design cannot handle working frequency properly (so called "timing slacks"), one will get some strange unreproducible errors.
I mean, if a logic design cannot handle working frequency properly (so called "timing slacks"), one will get some strange unreproducible errors.
Please Log in to join the conversation.
4 years 2 months ago #249640
by vit74vit
Replied by vit74vit on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Peter!
i find an error occurred in the size calculation.
The value is 4 bytes larger than it should be. This results in a shift of one register when reading from the FPGA.
file stepgen.h (137)
#define LITEXCNC_BOARD_STEPGEN_DATA_WRITE_SIZE(litexcnc) ((litexcnc->stepgen.num_instances?sizeof(litexcnc_stepgen_general_write_data_t):0) + LITEXCNC_STEPGEN_INSTANCE_WRITE_DATA_SIZE*litexcnc->stepgen.num_instances)
i find an error occurred in the size calculation.
The value is 4 bytes larger than it should be. This results in a shift of one register when reading from the FPGA.
file stepgen.h (137)
#define LITEXCNC_BOARD_STEPGEN_DATA_WRITE_SIZE(litexcnc) ((litexcnc->stepgen.num_instances?sizeof(litexcnc_stepgen_general_write_data_t):0) + LITEXCNC_STEPGEN_INSTANCE_WRITE_DATA_SIZE*litexcnc->stepgen.num_instances)
Please Log in to join the conversation.
Time to create page: 0.299 seconds
