This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I am working on an Encoder interface project using the CLB module.
When I execute the initTILE3 and initTILE4 routines as generated from the CCS CLB config tool, I see NO difference in the CLB register values. They continue to read zero.
Here is a snapshot of the same.
While a similar project doing similar operations works fine.
So I am wondering what could be the missing link in this project which fails to update the CLB registers.
Any leads are appreciated.
Regards,
Venkatesh C
Did you diable/enable the CLB? Take another look at the examples and the example code. I assume that is the issue.
Hi Nima,
Thank you for the pointer.
But I see no difference in my situation.
I did try to enable the CLB TILE, something similar to what is done in the example code.
But the situation is not changing and the problem is still present.
Is this anything to do with the linker command file or anything else? As an identical project works fine.
Regards,
Venkatesh C
Hi Nima,
I have another project that is doing the same job. On the same hardware, when I run that project, I can see the change in the register values. So there is something specific to this project that is causing the issue. Also, note that sometimes we will have to pause the code and then we can see the register values. I tried that also but cannot see the register values. At the same time, other peripheral values are updated without any issue. PWM for example, I can see the register values are updated.
Regards,
Venkatesh C
It may be that your CLB clock is not enabled in the other project check PCLK register for the CLB.
Hi Nima,
If I look into the tables below from the F28379D device, I don't see any reference of CLB on the clock tables. Can you please help me with which PCLK register needs to be configured for the CLB clock?
Regards,
Venkatesh C
For this device, you need to enable the EPWM1 CLOCK. Can you check that PCLK register?
All CLB clocks are driven from EPWM1 clock.
Nima