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.

TM4C123GH6PM: Some question of ROM API

Part Number: TM4C123GH6PM

Hi,

I have some questions about the ROM API of TM4C123

1. is it only store the entry point address of these APIs in ROM? or it also stores the source code in ROM?

2. If it ionly store the entry point address of APIs, and not store the source code in ROM, does that mean the source code is stored in "C:\ti\TivaWare_C_Series-2.1.3.156\driverlib" ?

3. if the ROM API's source code is in "C:\ti\TivaWare_C_Series-2.1.3.156\driverlib", how do i know which silicon version need to work with which version of TivaWare?

Thnak you so much!

  • erik lee2 said:
    1. is it only store the entry point address of these APIs in ROM? or it also stores the source code in ROM?

    The entry point and the object code, but not the source is stored in the ROM. The object code is all that is needed to execute the function.

    erik lee2 said:
    2. If it ionly store the entry point address of APIs, and not store the source code in ROM, does that mean the source code is stored in "C:\ti\TivaWare_C_Series-2.1.3.156\driverlib" ?

    The latest source for each function is stored in the TivaWare driver library. The latest version is "TivaWare_C_Series-2.1.4.178". The source code will match the object code in the ROM unless an update, such as a bug fix was made to that code. To ensure you are using the latest version of a function but still using the ROM version to save flash space, use the functions with  the "MAP_" prefix and the latest version of TivaWare. Include the header file "rom_map.h". This header file will remap the functions with "MAP_" prefix to "ROM_" prefix unless a newer version exists. Otherwise it maps to the function name with no prefix and the function is pulled from the driver library and will reside in flash.

    erik lee2 said:
    if the ROM API's source code is in "C:\ti\TivaWare_C_Series-2.1.3.156\driverlib", how do i know which silicon version need to work with which version of TivaWare?

    When starting a new project I recommend that you use the latest version of the TivaWare library to get the benefit of any corrections that have been made.