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.

AM2431: Arm-based microcontrollers forum

Part Number: AM2431
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi, 

I am working on AM2431 ALV and trying to implement tamagawa encoder based on motro control sdk v9.2.0.09, with example tamagawa_diagnostic_signle_channel_am243x-evm.

Based on the experience on https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1417560/am2431-bissc-module-not-working-on-prg1_pru0?keyMatch=bissc&tisearch=universal_search

I have built the tamagawa firmware for PRU0, and have done the following changes,

For sysconfig, PRU is changed to ICSSG1 PRU0.

For tamagawa_diagnostic.c,

1. include "tamagawa_master_single_channel_bin.h", which is changed to use PRU0

2. in tamagawa_main, 

/* Initialize the priv structure according to the PRUx slice selected */
priv = tamagawa_init((struct tamagawa_xchg *)(
(PRUICSS_HwAttrs *)(gPruIcssXHandle->hwAttrs))->pru1DramBase, pruicss_cfg,pruicss_iep,slice_value);

pru1DramBase is changed to pru0DramBase.

 

It looks like I can't upload any file now. 

  • The diffence I observe is that, when using demo board, even if the encoder is disconnected, the output is like,

    ABS: 0x0 SF: 0x0 CF: 0x0 CRC: 0x0

    CRC success

    |
    ABS: 0x0 SF: 0x0 CF: 0x0 CRC: 0x0

    CRC success

    |
    ABS: 0x0 SF: 0x0 CF: 0x0 CRC: 0x0

    CRC success

    But on my board, the output is like 

    CRC Failure

    CRC Failure

    CRC Failure

    Also data+ and data- has no signal as if the encoder is disconnected

  • Hi Jianyu,

    There is a bug in tamagawa firmware. 

    Marked line enables EnDat mode only for PRU1 & that is why the firmware is not working for PRU0.

    I am attaching updated firmware which does configuration for both, you can use this firmware. It will work for both PRUs.

    tamagawa_main.asm

    Thanks & Regards,

    Achala Ram