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.

Compiler/TM4C1292NCPDT: ROM functions does not have any occurence

Part Number: TM4C1292NCPDT


Tool/software: TI C/C++ Compiler

On my code, when I use ROM functions, it does not have any occurrence. I believe this is the reason that my code does not execute. It builds ok and it debugs ok but the board seems to be blank. I have added TARGET_IS_TM4C129_RA0 and PART_TM4C1292NCPDT and included the driverlib. It only happens to this project. On other projects, it works fine.

  • Hello Emem,

    For one, you should be using MAP_ functions rather than ROM_ functions so DriverLib will direct the firmware to use either ROM or updated DriverLib functions. To do this you need to include the rom_map.h file.

    For two, there is not a lot of detail to go on here. Can you provide details on what your list of #include files are, what ROM API's you are calling, and screenshots of what your CCS project property pages look like for the following pages:
    - Project Properties -> Build -> ARM Compiler -> Include Options
    - Project Properties -> Build -> ARM Linker -> File Search Path

    You can attach Screenshots by clicking 'Use Rich Formatting' and finding the picture symbol on the post box toolbar.
  • Here is a screenshot of my timer.c code

    And here are the include options and file search path. 

    The weird thing though is I used the same timer.c file in another project and it worked ok. I already checked that my build settings were the same.

    Here is a screenshot of the timer.c file in another project.

    Note that the text is also a different color, which implies that ccs is recognizing them as different syntax. The first one (pink) being functions and the second one (blue green) being others.

    Also, if I hover over the ROM function on the second picture, it shows the macro declaration but not on the first. 

  • Hello emem,

    On your include options where you manually added the link for C/ti/TivaWare.../driverlib, you should not have the DriverLib portion. It should just link to the entire TivaWare folder. That's how all our example projects are setup. I think that would be the source of the problem because it is likely trying to access C/ti/TivaWare.../driverlib/driverlib/rom.h which wouldn't exist.

    You mentioned "I have added TARGET_IS_TM4C129_RA0 and PART_TM4C1292NCPDT" - just want to make sure you meant that you added these to the Predefined Symbols list in the project properties right?

    And yes I would expect the text to be a different color when it is setup correctly. You also should be able to hit F3 and have it bring you to the function definition in ROM.h.