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.

TMS320F28379D: How to Modify the Routines in the Design DRIVE Development Kit IDDK - TMDXIDDK379D to Use SFRA Features?

Part Number: TMS320F28379D
Other Parts Discussed in Thread: TMDXIDDK379D, SFRA

Hi Team,

The board type used by the customer is IDDK - TMDXIDDK379D and is testing Level6-SFRA functionality. Configure the SCI as described in the SFRA guide:
But found that it doesn't seem to work, how should the SCI initialisation be further modified?

void sci_init(void)
{

    GPIO_setMasterCore(DEVICE_GPIO_PIN_SCIRXDA, GPIO_CORE_CPU1);
    GPIO_setPinConfig(DEVICE_GPIO_CFG_SCIRXDA);
    GPIO_setDirectionMode(DEVICE_GPIO_PIN_SCIRXDA, GPIO_DIR_MODE_IN);
    GPIO_setPadConfig(DEVICE_GPIO_PIN_SCIRXDA, GPIO_PIN_TYPE_STD);
    GPIO_setQualificationMode(DEVICE_GPIO_PIN_SCIRXDA, GPIO_QUAL_ASYNC);
    
    //
    // Configuration for the SCI Tx pin.
    //
    GPIO_setMasterCore(DEVICE_GPIO_PIN_SCITXDA, GPIO_CORE_CPU1);
    GPIO_setPinConfig(DEVICE_GPIO_CFG_SCITXDA);
    GPIO_setDirectionMode(DEVICE_GPIO_PIN_SCITXDA, GPIO_DIR_MODE_OUT);
    GPIO_setPadConfig(DEVICE_GPIO_PIN_SCITXDA, GPIO_PIN_TYPE_STD);
    GPIO_setQualificationMode(DEVICE_GPIO_PIN_SCITXDA, GPIO_QUAL_ASYNC);
    
    SCI_performSoftwareReset(SCIA_BASE);
    
    //
    // Configure SCIA for echoback.
    //
    SCI_setConfig(SCIA_BASE, DEVICE_LSPCLK_FREQ, 4000000, (SCI_CONFIG_WLEN_8 |
    SCI_CONFIG_STOP_ONE |
    SCI_CONFIG_PAR_NONE));
    SCI_resetChannels(SCIA_BASE);
    SCI_resetRxFIFO(SCIA_BASE);
    SCI_resetTxFIFO(SCIA_BASE);
    SCI_clearInterruptStatus(SCIA_BASE, SCI_INT_TXFF | SCI_INT_RXFF);
    SCI_enableFIFO(SCIA_BASE);
    SCI_enableModule(SCIA_BASE);
    SCI_performSoftwareReset(SCIA_BASE);

}

--

Thanks & Regards

  • Yale,

    May I know SFRA is working without GUI? Is it able to get magnitude and phase vector data values filled?

    Thanks & Regards,

    Shashank

  • Hi Shashank,

    May I know SFRA is working without GUI?

    No. Currently, SFRA cannot work even when the GUI is not connected, and the motor cannot be controlled. It does not allow customer to “Run motor" and automatically changes to "RUN stop". In addition, he also found that tFormat_crcError was displayed as 1 at this time. Here are the codes:

    if(!tformat_checkCRC(crcResult, tformatData.crc))
    {
        tFormat_crcError = 1;
        runMotor = MOTOR_STOP;
    }

    I don’t know if it is because of this reason that I am not allowed to set the flag of the rotating motor?

    The debugging parameters are as follows:

    These happen in Level 6. In the FOC double closed loop of Level 4, the motor can be controlled well.

    --

    Thanks & Regards