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.

CODECOMPOSER: using sysconfig in code composer studio 10.3.1

Part Number: CODECOMPOSER
Other Parts Discussed in Thread: SYSCONFIG

Hi All,

I am trying to use sysconfig in ccs 10.3.1 . I can make a sysconfig file and import it in the project.

I also did some changes on it but it seems that it is never be compiled or generate any meaning full .c and .h files.

Has anyone used it before that can help me to make it up and running? I am using TM4C1294 on a EK-.. development board.

Thanks for your help in advance.

Best regards,

Mostafa

  • Mostafa,

    For TM4C you are really just going to get PinMux configuration generated.  Adding SysConfig to an existing project is a bit tricky.  I am not sure how far you have gotten but I will list my steps here.

    Create a new .syscfg file in the project

    Say yes to the prompt to enable SysConfig support

    You will then get an error about the device not being specified

    You want to actually do this in the project properties here:

    This will likely prompt you to restart SysConfig.  Say yes and then open the .syscfg file.

    You can then select the peripherals that you are going to use and configure any options.  Save the file.  Then after building the project you should see some files here:

    pinout.c and .h will be part of your build.

    For other device families SysConfig provides driver configuration, stack configuration...  but for TM4C it is just basic pinmux.

    Regards,
    John

  • Hi John,

    Thanks for your rapid reply. I have followed all the steps and it generates the pinout.c and .h files. 

    I had defined MyGPIO1 and 2 but I can not find this name in any of files. Is it normal operation of this tool?!

    the function that it has generated is like this:

    PinoutSet(void)
    {
    //
    // Enable Peripheral Clocks
    //
    MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
    MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOM);

    //
    // Configure the GPIO Pin Mux for PM0
    // for GPIO_PM0
    //
    MAP_GPIOPinTypeGPIOInput(GPIO_PORTM_BASE, GPIO_PIN_0);

    //
    // Configure the GPIO Pin Mux for PA1
    // for GPIO_PA1
    //
    MAP_GPIOPinTypeGPIOInput(GPIO_PORTA_BASE, GPIO_PIN_1);

    }

    But the name of gpio pins is not here.

    Best regards,

    Mostafa

  • Mostafa,

    That is normal.  The code generator template for TM4C does not make use of the specified name in the .c or .h.  

    Regards,

    John