Part Number: AM2432
Other Parts Discussed in Thread: SYSCONFIG, TMDS243EVM
Hi experts,
currently I'm integrating the HDSL example into our firmware.
I started with the free run mode which works fine but by changing the configurartion to sync mode I encountered some problems. The connection to the endcoder and the position transfer seems to be ok but the parameter channel / long message communication is unreliable.
To avoid influence by other firmware components I reconstruct the problem from scratch with the HDSL example from the motor control SDK.
My test equipment software:
- CCS 20.4
- Motor Control SDK 11.00.00.06
- hdsl_diagnostic_single_channel_am243x-evm_r5fss0-0_freertos_ti-arm-clang
- SysConfig 1.24.0
My test equipment hardware:
- TMDS243EVM
- HDSL AM64xE1 Transceiver
- EES37 / EKM36
Steps to recreate my problem:
- Import example from SDK
- Select channel 1, deselect channel 0 and 3
- ENDAT1_IN -> U6
- ENDAT1_CLK -> T4
- ENDAT1_OUT -> W3
- ENDAT1_OUT_EN -> P4
- Select SYNC mode
- PRU-ICSS Core Clk is 300 MHz
- BoosterPack is NOT selected
- PRU_ICSSG0_PRU1 is selected
Code changes:
- Add define for HDSL_AM64xE1_TRANSCEIVER
- HDSL_enable_sync_signal
- replace hardcoded selection for channel 0 with channel 1
- sync_calculation
- replace hardcoded selection for channel 0 with channel 1
- hdsl_diagnostic_main
- replace
- HW_WR_REG32(0x000F41D4, 0x00050001);
- with
- HW_WR_REG32(0x000F41D8, 0x00050001);
- to cofigure PRG0_PRU1_GPI10 (instead GPI9) as input to match signal from AM64xE1_TRANSCEIVER
- replace
- Build
Run example:
- Set ES to 3 (minimum for tested SYNC signal frequency)
- Set period to 18750 (<=> 16 kHz)
Test:
Get the current position via select menu entry 0 multiple times to confirm that the position is feasible.
Select menu entry 9 to test parameter channel via long messages. In some cases the API function returns SUCCESS (no TIMEOUT) but there were no valid data received.
In contrast using the FREE running mode every long message is received correct.
What do I need to take into account to get a reliable parameter channel communication?
Thanks for your help and best regards
Lars







