Jump to content
43oh

Help using the EasyMSP libraries!


Recommended Posts

Hi there!

 

I'm helping a friend to build a line follower robot for a school project, and I convinced him to use a Launchpad, the issue is that neither of us have a lot of experience programming microcontrollers in C. He has just learnt assembler ( :shock: ) and when I was in college I used only PIC's (and in most cases using PICBasic Pro :oops: ). So I thought using EasyMSP would help us out (the project due next week) to speed things up. But I can't seem to make it work, where do I need to add the libraries in Code Composer Studio, last night I tried to add a folder and then check the box for linking it to a system folder, then I wrote:

 

#define MSP430G2553
#include "EasyMSP083BETA1"

void main()
{
 setup()

               //Your code...
}

 

But code composer gives me a message stating that cannot open "EasyMSP083BETA1".

 

Help please! There's not much info yet on this subject...

 

Regards,

 

Christian

Link to post
Share on other sites

Hi

 

Hi there!

I'm helping a friend to build a line follower robot for a school project, and I convinced him to use a Launchpad, the issue is that neither of us have a lot of experience programming microcontrollers in C. He has just learnt assembler ( icon_eek.gif ) and when I was in college I used only PIC's (and in most cases using PICBasic Pro icon_redface.gif ). So I thought using EasyMSP would help us out (the project due next week) to speed things up. But I can't seem to make it work, where do I need to add the libraries in Code Composer Studio, last night I tried to add a folder and then check the box for linking it to a system folder, then I wrote:

#define MSP430G2553
#include "EasyMSP083BETA1"

void main()
{

setup()

//Your code...
}

But code composer gives me a message stating that cannot open "EasyMSP083BETA1".

Help please! There's not much info yet on this subject...

Regards,

Christian


Hi Christian,
Code Composer Studio's compiler requires the full filename of the header, like "EasyMSP083BETA1.h". Also your missing a semicolon at setup(). However, the thing is, All the EasyMSP libraries are sadly out of date due to extreme circumstances that have happened recently in my life. However i'm getting back on track with it and rebuilding the entire library. And if you want, i can give out bits and pieces of the library for you.

But i do hear you about the lack of documentation, it's a on going problem that i hope gets fixed in my first final release.

Regards,
MattTheGeek
Link to post
Share on other sites
Hi
Hi there!

 

I'm helping a friend to build a line follower robot for a school project' date=' and I convinced him to use a Launchpad, the issue is that neither of us have a lot of experience programming microcontrollers in C. He has just learnt assembler ( :shock: ) and when I was in college I used only PIC's (and in most cases using PICBasic Pro :oops: ). So I thought using EasyMSP would help us out (the project due next week) to speed things up. But I can't seem to make it work, where do I need to add the libraries in Code Composer Studio, last night I tried to add a folder and then check the box for linking it to a system folder, then I wrote:

 

#define MSP430G2553
#include "EasyMSP083BETA1"

void main()
{

 setup()

               //Your code...
}

 

But code composer gives me a message stating that cannot open "EasyMSP083BETA1".

 

Help please! There's not much info yet on this subject...

 

Regards,

 

Christian[/quote']

 

Hi Christian,

Code Composer Studio's compiler requires the full filename of the header, like "EasyMSP083BETA1.h". Also your missing a semicolon at setup(). However, the thing is, All the EasyMSP libraries are sadly out of date due to extreme circumstances that have happened recently in my life. However i'm getting back on track with it and rebuilding the entire library. And if you want, i can give out bits and pieces of the library for you.

 

But i do hear you about the lack of documentation, it's a on going problem that i hope gets fixed in my first final release.

 

Regards,

Matthew Burmeister (MattTheGeek)

Developer/Owner of EasyMSP.

 

Hi Matthew I have read what has happened to you recently, but you know that saying right? "It's always darker before dawn". The code actually I copied and pasted it from the documentation, but I think the problem I have is due to the code composer I understand it's not possible to have both the core edition and the one for the DSP's so I will check that tonight after work.

 

About your work feel free for asking for help, may be I can help with the documentation, or I don't know if there are any future plan to translate your documentation (you wouldn't believe how rare is that someone speaks english down here).

 

Thanks for all your work!

 

Regards,

 

Christian

Link to post
Share on other sites

@cdch10 In CCS, make sure you've added the EasyMSP folder as an included folder. The best way I've found to set it up is leave EasyMSP in the installed folder, in my case it's C:\EasyMSP. Bring up your project's properties, right-click on the project name and Properties is at the bottom. On the left column, click C/C++ Build. Then under MSP430 Compiler, select 'include options'. Then just add the EasyMSP folder. Also, make sure to follow Matt's instructions. #include "EasyMSP083BETA1.h" and setup();

 

[attachment=0]easymsp.JPG[/attachment]

Link to post
Share on other sites
@cdch10 In CCS, make sure you've added the EasyMSP folder as an included folder. The best way I've found to set it up is leave EasyMSP in the installed folder, in my case it's C:\EasyMSP. Bring up your project's properties, right-click on the project name and Properties is at the bottom. On the left column, click C/C++ Build. Then under MSP430 Compiler, select 'include options'. Then just add the EasyMSP folder. Also, make sure to follow Matt's instructions. #include "EasyMSP083BETA1.h" and setup();

 

[attachment=0]easymsp.JPG[/attachment]

 

Hmm... Perhaps i should add the install location to the system path...

Link to post
Share on other sites
Hmm... Perhaps i should add the install location to the system path...

 

Perhaps... but in CCS the included folder would still need to be added for each project.

 

The best way might be to create it as a Linked Resource in the CCS Workspace preferences. Then you would just need a note on your wiki to add that to the CCS preferences. Then it would be available in all projects and not have to be declared in each project.

 

[attachment=0]linkedres.JPG[/attachment]

Link to post
Share on other sites

@gwdeveloper Thanks a lot! I haven't had the chance to check that out, may be until the weekend :(. But I suppose it will work. Fortunately my friend got an extension for his deadline, so we can work on it this week end.

 

 

Thank you both!

 

Regards,

 

Christian

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...