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.

Difficulty to use StellarisWare / TivaWare with Stellaris launchpad

I'm starting to venture with Stellaris launchpad. After some searching I found how to install the library and add in each project. Some simple projects like the "blink LED" are running, but I'm trying to run other projects I found on the net as a communication code UART or a logic analyzer, the Sllogiclogger (http://www.fischl.de/arm/sllogiclogger_logic_analyser_for_stellaris_launchpad/ ) and always have problems with the libraries. Would you like some help to know where I am going wrong in order to solve these problems. The purpose of this parser looks very interesting.

I am using CCS 5.5, but if the IAR is simpler to work I can change.

CCS included in the library .lib and also the path of StellarisWare, as link (http://hackaday.com/2012/10/14/using-stellarisware-with-the-launchpad/), but do not know if something else is required.

In the design of the logic analyzer initially used the library and StellarisWare had these errors.


I tried several changes that I found on the net and it showed but nothing worked, so I tried to change TivaWare and these two errors are gone, but another appeared.

I tried to comment out the line for the # include, but then many errors arise even.

I'm totally lost with these errors if they can help I will be grateful as well.

In the IAR the way to configure the Stellaris/Tiva is the same?

Thanks.

  • You need to setup TivaWare root in your project properties. You have broken linked resources.

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

    Regards,
    Maciej 

  • MaciejKucia I believe it had executed these settings as illustrated below. Also imported the lib into the workspace.

    The error "#20 identifier "GPIO_PA0_U0RX" is undefined" I solved changing to "GPIO_PCTLPA0_U0RX, but appeared new errors.

    I'm still lost

  • Haroldo,

        You must have some problems with that projects you found on the net. There must be some settings in Project Options that is not correct, and the driver libraries might not be right for your launchpad.

        Are you using the LM4F120 Launchpad or the later EK-TM4C123 Launchpad?

        You can do a compare with the Project Options of the working hello project from Tivaware to that "Sllogiclogger." You can also use the working example program at Tivaware as base and merge code from that program you got from the net. Use the latest copy of Tivaware from the link below.

         http://www.ti.com/tool/sw-ek-tm4c123gxl

    -kel

  • There should be single variable to change after you import the project (SW_ROOT) nothing more. If that does not help you have code for old libraries or wrong hardware. If you have TivaWare installed you can check the migration guide http://www.ti.com/lit/an/spma050a/spma050a.pdf

    Regards,
    Maciej 

  • Markel Robregado, I'm using the LM4F120 with Stellarisware.

    MaciejKucia, I just have the main code in "C" and I'm using the code in a new project.

  • Hi,

    I looked a little bit at the original sllogiclogger -  first you should remain with StellarsWare-9453 version to avoid some other troubles (bool and other - was changed in TivaWare). 

    You must add this two lines at the beginning:

    #include "pin_map.h"  // contain definitions of the GPIO_PA0_U0RX, but if defined PART_LM4F120H5QR - just open this file to locate by yourself these definitions.

    #include "rom_map.h" // make the link with ROM_xxx functions in ROM

    and pre-define PART_LM4F120H5QR (and the others two) in predefined symbols. If this will trouble you again for unfound GPIO_PA0_U0RX, you can define them also after "include" this way:

    #define GPIO_PA0_U0RX   0x00000001

    #define GPIO_PA1_U0TX   0x00000401

    Petrei

  • Hi Petrei, I followed your suggestions and put the two includes.


    When I put the pre-defined name PART_LM4F120H5QR, CCS show these errors.


    If i try to put the pre-defined and the two #define these errors appear.


    I tried with version 0.1 of code.

  • Hi,

    I think you have made a small progress - the complaints about GPIO_Pxxx_xxx are not anymore present. As for the others (ROM_xxxx) functions not found - this is due to incomplete predefined symbols - you need to add these:

    TARGET_IS_BLIZZARD_RA1

    ccs="ccs"

    You can check these are needed by the rom.h file - only specifying something you will get ROM table use for them - so try again.

    Petrei

  • Petrei, I guess that worked. I put the two pre-defined, after this I compiled without errors.

    I tried two clients, the "OLSFront-0.2.7.650-alpha" and "ols-0.9.7-full". The OLSFront seems to have recognized the Stellaris, but i can't read values from other circuit.

    The ols-0.9.7 open but don't recognize.

    What client you use?

    Just more one question, all of these configurations are generic for any project that I will start?

  • Hi,

    I'm glad you succeeded - keep in mind these settings are mandatory for every project you start with.

    As for ols - no comments - I do not use any of them.

    Petrei 

  • What Client you recommend?

  • Just for clarification (terms)

    I think that the OP refers to this project , where a launchpad is used as a lowspeed Logic Analyzer

    http://forum.stellarisiti.com/topic/418-sllogiclogger-a-simple-logic-analyser-for-the-stellaris-launchpad/

    And OLS is the "Open Loic Sniffer" , the ols-client is the "java" client executing on the PC , receiving (via usb-serial) and showing the state graphs.

    /Bingo