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.

[Request][Porting from Stellaris to TIVA]

Other Parts Discussed in Thread: TM4C1231H6PZ, LM3S2965

Hi,

I'm Using LM3S2965 Controller, now i have to shift to TIVA TM4C1231H6PZ Controller.

I'm using CCS  Version: 6.0.0.00156 

I Started porting by following Migrating Software Projects from StellarisWare to TivaWare Appnote, replaced the function names when i start build i"m getting following errors

Description Resource Path Location Type
#20 identifier "bool" is undefined external location: C:\ti\TivaWare_C_Series-2.0.1.11577\driverlib\adc.h C/C++ Problem

#20 identifier "int32_t" is undefined .external location: C:\ti\TivaWare_C_Series-2.0.1.11577\driverlib\interrupt.h C/C++ Problem

#20 identifier "uint32_t" is undefined, external location: C:\ti\TivaWare_C_Series-2.0.1.11577\driverlib\gpio.h C/C++ Problem

#20 identifier "uint8_t" is undefined  external location: C:\ti\TivaWare_C_Series-2.0.1.11577\driverlib\gpio.h C/C++ Problem

 in gpio.h,adc.h,sysctl.h,interrupt.h 

i have included following header files in my code

#include "inc\hw_ints.h

#include "inc\hw_memmap.h"

#include "inc\hw_types.h"

#include "driverlib\interrupt.h"

#include "driverlib\sysctl.h"

#include "driverlib\gpio.h"

#include <stdint.h>

#include <stdbool.h>

Please let me know what i'm missing to include and  guide me through.

Thank You

  • Hello Ramesh,

    I would suggest using TIVAWare-2.1.0 version as it is base lined well. Also move the stdint and stdbool to the top of the include list.

    Regards

    Amit

  • Hi Amit,

    Thank You for the reply.

    i defined header files as follows

    #include <stdbool.h>
    #include <stdint.h>
    #include <assert.h>
    #include "inc\tm4c1231h6pz.h"
    #include "inc\hw_i2c.h"
    #include "inc\hw_types.h"
    #include "inc\hw_memmap.h"
    #include "driverlib\sysctl.h"
    #include "driverlib\watchdog.h"
    #include "driverlib\pwm.h"
    #include "driverlib\timer.h"
    #include "driverlib\pin_map.h"
    #include "driverlib\rom.h"
    #include "driverlib\debug.h"
    #include "driverlib\gpio.h"
    #include "driverlib\interrupt.h"
    #include "driverlib\uart.h"
    #include "driverlib\can.h"
    #include "driverlib\i2c.h"
    #include "driverlib\adc.h"
    #include "driverlib\ssi.h"
    #include "utils\uartstdio.h"
    

    now i got below errors in addition to previous errors

    #20: identifier "uint8" is undefined
    #20: identifier "uint32" is undefined
    #20: identifier "uint16" is undefined

    Please help me to resolve these errors

    i'm getting these errors only because of using TivaWare_C_Series-2.0.1.11577 instead of TIVAWare-2.1.0 version.

  • Hello Ramesh

    Can you send the CCS project zipped? Also if TIVAWare-2.1.0 does not have these errors then why don't you use the stable release?

    Regards

    Amit