Building TI/Luminary Stellaris examples (LM3S3748 evaulation kit)

Comments

6 comments

  • Avatar
    Ben Stuyts

    Hi Rob,

    I've done quite a bit development with the Stellaris devices during the past year. CW has excellent support for the TI Stellaris libraries. You have to install a few packages in CrossWorks in order to get this to work:

    First download the Stellaris library from TI. This includes the src code for all the demo boards etc, the driver, usb, tcp/ip, graphics etc. libraries. Install this and remember the install directory.

    Next install the Texas Instruments Stellaris CPU Support Package in CrossWorks (see Tools->Install Packages). This will add support for the Stellaris CPU's.

    Finally, install the Texas Instruments StellarisWare Updates for CrossWorks For ARM (also in Tools->Install Packages). This will patch the Stellaris sources that you installed in the first step. It will install ready to launch CrossWorks projects for all the demos.

    Good luck,

    Ben (Happy customer)

    0
    Comment actions Permalink
  • Avatar
    rob bird

    Hi Ben,

    Thanks for the prompt reply.  I appreciate that.  I have already installed the following packages:

    1) Luminary Micro LM3Sxxx CPU Support Package

    2) Luminary Micro Luminary Stellaris Driver Library Board Support Package

    3) Texas Instruments Stellaris CPU Support Package

    4) Texas Instruments StellarisWare Updates for CrossWorks For ARM

    I have downloaded the StellarWare source for the USB, Graphics, and Drivers....but have not run the install on them.  However, I am trying to build the GRLIB_demo and am seeing that a reference to one of the ROM_ functions is not being recognized.....probably because TARGET_IS_DUSTDEVIL_RA0 is not defined.  Is this #define defined on the compiler command-line or is this something I am supposed to know to add to the source?

     

    Thanks....Rob

    0
    Comment actions Permalink
  • Avatar
    Ben Stuyts

    Hi Rob,

    You don't need the Luminary Micro Packages. They are superseded by the Texas Instruments ones. Maybe that's getting in the way of a proper building.

    I think it's best to run the installer for the full Stellarisware from http://focus.ti.com/docs/toolsw/folders/print/sw-lm3s.html. After that, install the two TI packages I mentioned.

    After you've installed all this, click on Tools->Show installed packages. Click on the Stellarisware package and you'll see this package's documentation. If you follow everything mentioned there, it should work. No need to set the CPU type for building the library, I think. I just rebuilt the whole lib without any problem.

    Kind regards,

    Ben

    0
    Comment actions Permalink
  • Avatar
    rob bird

    Thanks Ben.  I will give it a while and let you know what I find.  Once again.....thanks for you help!

    Regards....Rob

    0
    Comment actions Permalink
  • Avatar
    rob bird

    Hi Ben. 

    I am now able to BUILD my version of the "grlib_demo" example.  I created the project from scratch and ended up using the pre-made LIBs from the CrossWorks package library.  By reviewing the CrossWorks-provided StellarisWare solution, I did discover how to add the preprocessor define TARGET_IS_DUSTDEVIL_RA0 and paths of the LIBs (libdriver.a & libgr.a) needed for this BUILD.  I am still learning how to create a solution/project and what usage makes sense.

    Even though I initially removed the Luminary Micro packages "Luminary Micro LM3Sxxx CPU Support Package" and "Luminary Micro Luminary Stellaris Driver Library Board Support Package", I ended up re-installing these two packages as a result of what I read in the Texas Instruments StellarisWare Updates for CrossWorks for ARM => "You should download and install the appropriate Stellaris package(s) from the Luminary Micro website".  I did download and un-zip'd the Stellaris install file (from the TI URL that you recommended) in a Windows environment, but did not use it.  NOTE: I am using CrossWorks for MAC OS X 10.6 and so could not install it.  I did review it and found it to be replete with documents, source, and various IDE support files.  However, I was also interested to determine if the Rowley-provided LIBs would work as well.  The TI-supplied gcc LIBs might also work with CrossWorks BUILDs.  When I become more familiar with where the packages are installed, I may tried replacing the CrossWorks-supplied Luminary Micro Driver Library Board Support package and replacing it with the StellarisWare stuff downloaded from the TI URL that you recommended.

    Thank you for you help.  I appreciate it.

    Regards,

    Rob

    0
    Comment actions Permalink
  • Avatar
    Ben Stuyts

    Hi Rob,

    The Lum Micro site is being slowly phased out is everything is moved over to the ti.com site. So don't focus on that too much. I'm still trying to figure out why it's not working for you the way I mentioned above... But anyway, glad you got it running in the end.

    Kind regards,

    Ben

    0
    Comment actions Permalink

Please sign in to leave a comment.