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.

Missing PIN Constants

Other Parts Discussed in Thread: LM3S6965

Good Evening:

This should be pretty easy to solve.  I'm just not seeing it.... at all.

I am writing an I2C program using SYS/BIOS (6.34) and Code Composer: Version: 5.3.0.00090.  Stellaris LM3S6965.

I "borrowed" piece of code from one of the posted messages and was unable to compile it.   It appeared to use the SYS/BIOS framework, the same that I am using.

Every CONSTANT below is missing.  This is in an I2CInit routine.

SysCtlPeripheralEnable(SYSCTL_PERIPH_I2C0);

SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);

GPIOPinConfigure(GPIO_PB2_I2C0SCL);

GPIOPinConfigure(GPIO_PB3_I2C0SDA);

GPIOPinTypeI2CSCL(GPIO_PORTB_BASE, GPIO_PIN_2);

 GPIOPinTypeI2C(GPIO_PORTB_BASE, GPIO_PIN_3);

 I2CMasterInitExpClk(I2C0_MASTER_BASE, SysCtlClockGet(), false);

I2CMasterIntEnableEx(I2C0_MASTER_BASE, I2C_MASTER_INT_DATA);

IntEnable(INT_I2C0);

I added...

PART_LM3S6965 to...  Properties --> Build --> Arm Compiler --> Advanced Options --> Predefined Symbols

I can not find a pin_map.h file; but, adding this files does not seem right. 

I'm not finding the header files NOR the requisit Constants as I "search" through the TI directories.

Any help... would be very much appreciated. 

Rick

 

 

 

  • Hi Rick,

    I suspect you are missing the libraries.   My recommendation would be to impport them and create a dependancy.  It seems the GPIO and I2C ones you require.

    I would recommend looking that this wiki and a starterware example to see how the libraries are used.

    http://processors.wiki.ti.com/index.php/Include_paths_and_options

    Please keep us informed.

    Best Regards,
    Lisa

  • Lisa:

    The Wiki is great.  Thank you very much.

    Next question: Where do I get the GPIO and I2C libraries from?

    The missing libraries surpised me a little bit, so I am very interested to see where this leads to.

    Thank you for the very quick reply.

    Rick

     

     

     

     

  • Hi Rick,

    no worries ... glad that helps.  The libraries you need likely are part of Stellarisware which is one reason I reocommended looking at one of their examples.  Typically many examples have the main project and rely on at least one library project (eg drvlib or usblib etc)

    Have a look at that and please keep us informed.

    Best Regards,
    Lisa

  • Rick,

    I'll add a couple of clarifications and a link to what Lisa had to say.   I believe she mentions both StarterWare and StellarisWare.  What you want is StellarisWare.  StarterWare is for the Sitara Cortex A series of devices.  StellarisWare is for Stellaris (LM3S and LM4F) and can be used on Tiva C series as well.

    She is spot on that starting with an example project is the way to go as it includes all of the project includes, libraries and pre-defined symbols.  

    http://www.ti.com/sw-lm3s  Is the link to StellarisWare it unpacks to C:\StellarisWare\ by default.  In there find the boards\ directory and ek-lm3s6965 sub-directory for a list of examples that run out of the box on the EK-LM3S6965 kit in CCS, Keil, IAR, CodeBench and GCC.

    www.ti.com/stellarislaunchpadworkshop is built and designed around the Stellaris LaunchPad but covers a LOT of the questions and issues you have encountered regarding symbols, libraries and the like.  It also covers creating a project from a blank page to pull all of the libraries and ROM code that we offer.

    Dexter

  • Dexter and Lisa:

    Thank you very much.  I know what happened.  (I think I do at least.)

    I bought an Eval board and decided that I needed to go to SYS/BIOS in order to utilize a more robust networking stack (NDK).

    lwIP was a bit much for me to try to modify.

    Thus, I uninstalled everything and loaded SYS/BIOS.  This is where I think I lost the pin constants.

    I'm still struggling a bit trying to make sure that I understand StellarisWare and SYS/BIOS... more reading for the weekend.

    Again, thank you for your help....  I think I am on a good course again.

    Rick

     

     

  • Hi Rick,

    glad to hear that you are getting there and the tips helped.   Feel free to post to us should further questions or issues arise.

    Dexter - thanks !

    All the best with development.

    Best Regard,

    Lisa