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.

RTC.H library G2553

Hey guys,

I've downloaded the RTC.H library (SLAA290) and I'm trying to use it with a 2553 launchpad in CCS.

Where exactly should I dump the source  (.asm)  files?


I've dumped the rtc.h in the include folder (ti >> ccsv6 >> tools >> compiler >> msp430_4.3.1 >> include) but I'm not sure where to put the asm files...do these have to bu put in the main folder each time I create a new project?


Thanks for your help

  • Hey Stefano,

    Are you writing your code in C or Assembly?  If C, then the process you described above putting the .h file in the include folder should suffice and you will not have to re-do this process each time you create a new project (just make sure to use the line #include "RTC.h" in your code).  The asm files are only needed for assembly code.  Make sure you read the application report before continuing, as this explains the difference a bit further

    Thanks,

    Ryan M. Brown

  • Hi Ryan,

    Thanks for your reply.

    I am writing in C.

    I have read the application report, however I'm still confused; the rtc.h files only contain header files. All the functions and actual code is executed in the source files which are written in asm...The header files have extern commands that call these functions e.g. extern void incrementSeconds(void), etc.

    The examples provided also call functions written/executed in the asm files...

    Forgive the dumb question but, if the asm folder is not required, how can the code be executed?

    Am I missing something?

    Cheers

  • Hey Stefano,

    Please forgive me as I did not give enough attention to your quesiton.  The code is indeed executed using the asm files, which need to be included in the same location as your project's main.c file.  The specific asm files used will have to be put in the project's main folder since some of the asm files have conflicting declarations.

    Sorry again for the confusion,

    Ryan M. Brown

  • Hey Ryan,

    Thanks for getting back to me so promptly.

    So, if I understand correctly, I will have to include ditto files in every project separately if I want to use them in more than one project?

    Thanks again.

    Stefano

  • Hi Stefano,

    Yes, separately.  The asm files cannot be used like header files where they are located inside an include folder.  You should only have to use one or two of the asm files per project dependent on the functionality you want, so I hope this isn't too much of a hassle.  Let me know if you have any more questions.

    Thanks,

    Ryan M. Brown

  • Hi Ryan,

    No hassle at all...

    Thanks for clarifying.

    Stefano

**Attention** This is a public forum