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: GPIO configuration/definition errors

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE, SYSCONFIG

Hello, Dear TI Team:

I am using the following driverlib example in my project.

\C2000Ware_3_04_00_00\driverlib\f2837xd\examples\cpu1\spi\spi_ex1_loopback

I have a few problem with defining new GPIO in my project.

1. I want to set GPIO-36 as digital output. However, GPIO-36 does not appear in the syscfg window as seen in the screenshot below.

       

2. Instead of GPIO-36, I choose GPIO-28 as digital output in the syscfg window.

   

However, when I compile the program, as seen in the screenshot below, GPIO-27 appears to be defined. 

The CCS does not see the GPIO-28 pin that I chose with syscfg. It is defining the GPIO-27 pin instead of the GPIO-28 pin.

What is the cause of these problems I mentioned above?

Sinan,

Thanks and best regards.

  • The pin configuration drop down actually is giving you the pin number on your selected package and not the GPIO number. So if you open up the "Device View" in SysConfig (there's an icon in the upper right in SysConfig to show and hide it) you'll see that for the F2837xD_176PTP part hovering over the pin labeled 36 shows it labeled as VDDA and hovering over pin 28 shows you GPIO27 among other pin mux options.

    You can use the datasheet to most easily map from one number to the other I think.

    Whitney

  • Hi, Whitney:

    Can I define GPIO-36 as digital output? Is there a problem if I define it as a digital output?   

    You can use the datasheet to most easily map from one number to the other I think.

    I didn't understand how to do this. Can you give an example? 

    Thanks,

    Sinan.

  • Yes, it can be configured as a digital output. There are a few different places in the the datasheet you can find the info, but I'd recommend looking at the "Signal Descriptions" table. Find your GPIO and then look at the pin number column for your package.

    That's the number that you'll use in SysConfig.

    Whitney

  • Hi, Whitney:

    My problem solved. I am thankful to you.

    Thank you very much for your feedbacks.

    Thanks also to TI E2E for the quick support as usual.

    Have a great day and keep safe at all times.

    Sinan,
    Thanks and best regards.