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.

TMS320F2800137: HVAC_REV3P2_3SC_LIB with TMS320F2800137

Part Number: TMS320F2800137
Other Parts Discussed in Thread: C2000WARE, SFRA, SYSCONFIG, TIDM-02010

Tool/software:

I am using TMS320F2800137 on customize board for HVAC with HVAC_REV3P2_3SC_LIB Library.

Below are the query.

1. Is it possible to to swap ADC Pin for "PFC_Vac" and "PFC_Iac".

2. I'm trying to use UART on GPIO28 (pin2) & GPIO29 (pin1) but its not working, i have tried sci example code and its working. Can anyone suggest me anything.

  • Hi,

    1. Is it possible to to swap ADC Pin for "PFC_Vac" and "PFC_Iac".

    Yes, that's fine. You'll just need to make the appropriate changes in the software hal.h file.

    2. I'm trying to use UART on GPIO28 (pin2) & GPIO29 (pin1) but its not working, i have tried sci example code and its working. Can anyone suggest me anything.

    If a sci example in C2000WARE is working OK then your hardware should be OK. Are you having issues with some other specific software solution? Please provide further details on the issue.

    Best,

    Kevin

  • Hi Kevin,

    I have also observed that their is some random data coming on pin1, i have attached DSO images for your reference.

    Is their any document for Pin Peripheral Configuration which we can use along with "HVAC_REV3P2_3SC_LIB" Library for our application.

     

  • Hi Shubham,

    Please provide more details on what you're trying to achieve. How are you planning to use SCI / UART and what code / functions are you adding for it?

    I have also observed that their is some random data coming on pin1, i have attached DSO images for your reference.

    Have you made changes to the 'tidm_02010_dmpfc_0013x' project code to use SCI / UART in some way? By default it is not used for anything. If you enable SFRA (SFRA_ENABLE) than it would get used for the SFRA tool, but that's probably not what you're interested in.

    Is their any document for Pin Peripheral Configuration which we can use along with "HVAC_REV3P2_3SC_LIB" Library for our application.

    Section 3.4.4.3 Peripherals Usage and section 3.5 Migrate Firmware to a New Hardware Board in tidube5 have some details.

    Alternatively you can consider using the sysconfig tool for pin and peripheral initialization (SYSCONFIG_EN define). There are .syscfg files in the src_device folder to reference and start with.

    Best,

    Kevin

  • Hi Shubham,

    Please verify your predefined symbol settings and GPIO configuration in 'HAL_setupGPIOs()' function of 'hal.c' file. Reference code snippet below, if you have DAC128S_ENABLE set then GPIO 28/29 will be configured for SPI and not SCI. 

    #if defined(DAC128S_ENABLE)
        // GPIO28->SPIA_CLK->DAC_SCLK
        GPIO_setPinConfig(GPIO_28_SPIA_CLK);
        GPIO_setDirectionMode(28, GPIO_DIR_MODE_OUT);
        GPIO_setPadConfig(28, GPIO_PIN_TYPE_STD);
        GPIO_setQualificationMode(28, GPIO_QUAL_SYNC);
    #elif defined(SFRA_ENABLE)
        // GPIO28->SCIA_RX->SFRA_RX
        GPIO_setPinConfig(GPIO_28_SCIA_RX);
        GPIO_setDirectionMode(28, GPIO_DIR_MODE_IN);
        GPIO_setPadConfig(28, GPIO_PIN_TYPE_PULLUP);
    #else   // !(DAC128S_ENABLE & SFRA_ENABLE)
        // GPIO28->GPIO28->LED_1/TEST_GPIO for Motor_2
        GPIO_setPinConfig(GPIO_28_GPIO28);
        GPIO_setDirectionMode(28, GPIO_DIR_MODE_OUT);
        GPIO_setPadConfig(28, GPIO_PIN_TYPE_PULLUP);
    #endif  // !(DAC128S_ENABLE & SFRA_ENABLE)
    
    #if defined(DAC128S_ENABLE)
        // GPIO29->SPIA_STE->DAC_SCS
        GPIO_setPinConfig(GPIO_29_SPIA_STE);
        GPIO_setDirectionMode(29, GPIO_DIR_MODE_OUT);
        GPIO_setPadConfig(29, GPIO_PIN_TYPE_STD);
        GPIO_setQualificationMode(29, GPIO_QUAL_SYNC);
    #elif defined(SFRA_ENABLE)
        // GPIO29->SCIA_TX->SFRA_TX
        GPIO_setPinConfig(GPIO_29_SCIA_TX);
        GPIO_setDirectionMode(29, GPIO_DIR_MODE_OUT);
        GPIO_setPadConfig(29, GPIO_PIN_TYPE_PULLUP);
    #else   // !(DAC128S_ENABLE & SFRA_ENABLE)

    Best,

    Kevin

  • Hello can you share the  10 pin JTAG connection details (schematic) 

  • i am using the same controller but could not able to flash the code .....in the datasheet not mentioned regarding the 10 pin JTAG connections

  • Hi Chandra,

    What 10-pin JTAG connector do you mean? There is 8-pin J14 connector on the TIDM-02010 hardware below, do you mean this? 

    Or is your question related to the isolated emulator board? If so, which version do you have? The latest E3 version has the standard 14-pin JTAG connector + 6-pin connector for SPI or UART.

    Best,

    Kevin

  • Hello Kevin,

                      This is the debugger i am using to flash the TMS320F2800137 controller, and schematic is as shown in the below screen shot, issue i am facing is not able to flash the code into MCU , kindly support on this to rectify the issue. 

    Kindly suggest further on this to proceed further. 

     * is my 10 pin JTAG connections are fine? or did i missed anything in this ?

     * what should be the default level of reset pin?

     *  any pull ups or pull downs are missing in the JTAG pin?

               Kindly 

       

  • Hi Chandra,

     *  any pull ups or pull downs are missing in the JTAG pin?

    TMS should have 2.2K pull-up and TCK should have closer to 10K pull-up.

    Maybe the cable orientation you're using is incorrect. See above from blackhawk's site. You could use a multimeter to verify the signal connections from the emulator to your PCB (i.e. check that TCK connects to TCK and so forth).

    Best,

    Kevin

  • Hi Kevin,

    This resolved my issue.

    Can you help with with this forum as well for USER Software Interrupt trigger.

    e2e.ti.com/.../tms320f280025-trigger-user-interrupt-on-tms320f280025c "

    reference forum

    e2e.ti.com/.../tms320f280039c-is-there-a-way-to-trigger-a-software-interrupt "

  • Hi Shubham,

    Good to hear this issue is resolved.

    For your other post I see Prarthan is currently assisting. If you have inquiries on any other topics please post a new E2E question so the correct expert on our team can assist you directly.

    Best,

    Kevin