Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hi Experts,
We believe we've encountered a bug in the EnDat PRU firmware and would greatly appreciate your assistance in debugging it.
In our hardware design, we aim to connect two EnDat encoders to channels 0 and 2 of the ICSSG0-PRU0 slice. Since the encoders have different resolutions, we require the use of loadshare mode.
During our investigation, we confirmed that this configuration works correctly on the PRU1 slice of the LaunchPad. However, on the PRU0 slice, only channel 0 functions as expected. When channel 2 is activated, both channels stop working entirely.
Simple Example to reproduce error on LP-AM243, no encoders required
- Use the launchpad without any external external boosterpack
- Motor control sdk version: 09.02.00.11
- Set the lauchpad via dip switch SW6 into dual motor drive mode
- Use the endat_diagnostic example, in the sysconfig the desired channels and PRU slice 0/1 can be selected
- If you use PRU slice 0, recompile the endat PRU firmware CCS projects, after switching the predefined symbol SLICE1 to SLICE0, then recompile motor control sdk libraries via makefile
- To detect if endat firmware at least tries to initiate communication, you can monitor the CLK pin of the respective channel. Even with no encoder, there is one communication cycle visible
- Slice1
- Channel0: PRG0_PRU1_GPO0
- Channel2: PRG0_PRU1_GPO6
- Slice0
- Channel0: PRG0_PRU0_GPO0
- Channel2: PRG0_PRU0_GPO6
- Slice1
Measurements using PRU Slice 1
On Slice 1, any combination of channel 0 and channel 2 works on loadshare mode: (left only Channel 0 enabled, right both channels enabled)


Measurements using PRU Slice 0:
On slice 0, channel 0 standalone works (left picture). As soon as channel 2 is added, nothing works anymore (right picture). Channel 2 standalone does not work, either.

Interestingly, if you deactivate loadshare mode, both channels are working on slice 0. However, this is no solution for us, as we use two different encoders:

We hope this information is sufficient for you to reproduce the issue. If not, please don’t hesitate to ask for further details.
Your support would be highly appreciated, as this issue is currently delaying the commissioning of our hardware.
Sincerely, Stefan
