Home arrow Support arrow Forums

Luminary Micro Forums

<< Start < Prev 1 2 3 4 5 6 7 8 Next > End >>

femtotech

Expert Boarder
Click here to see the profile of this user

2008/07/02 04:15

CodeSourcery, DriverLib and first steps

Hello to all,

I've just bought the EK-LM3S6965 evaluation board. I installed the included software and I'm able to create, compile and debug source code.

I still have some questions. I searched the forum but I didn't find the answers I need.

1) I can download to the micro the executable file with LM Flash Programmer utility. Could it be done also from Eclipse?

2) I'm a bit confused about GCC and CodeSourcery... When I read the pdf guides I have to follow instructions related to GCC or CodeSourcery? I ask this because sometimes it isn't so obvious.

Example: the Quick Start Guide of DriverLib states:


2.4 Building with CodeSourcery Sourcery G++
The peripheral driver library and each example application can be built utilizing the CodeSourcery
Common Startup Code Sequence (CS3). By setting the COMPILER environment variable to
“sourcerygxx”, CS3 will be used to build the application. The advantage of using CS3 is the ability
to easily use the C library provided by CodeSourcery for things such as printf().


But I can't see any COMPILER environment variable in the Eclipse configuration. Should I add it?


3) I can't compile DriverLib examples. I noticed they uses relative paths to include header files, but if I follow the start guide - that is create a new project and import the source file - these will be copied in my folder. Hence, the other included files won't be longer found. Furthermore, I have to add the DriverLib root folder to the project include paths.

How to compile and then use driverlib library in my own projects?

4) I'm going to buy the Personal Edition of CodeSourcery G++: which are in detail the missing libraries available only in the Professional Edition?

Thank in advance for your answers to my many questions.
I apologize for my poor English

Marco

login or register to reply

dereksoftstuff

Expert Boarder
Click here to see the profile of this user

2008/07/02 06:24

Re:CodeSourcery, DriverLib and first steps

Check out the "Getting openOCD to work" topic - with Eclipse/CDT , CodeSourery Lite and OpenOCD (use for flashing and debug). All for Free.

login or register to reply

femtotech

Expert Boarder
Click here to see the profile of this user

2008/07/02 07:17

Re:CodeSourcery, DriverLib and first steps

I read thought the 30 posts of the thread. I found a lot of interesting stuff but no answers to my actual questions. Perhaps I can't see them because I'm not experienced yet in LM development chain.

Marco

login or register to reply

ravaz

Platinum Boarder
Click here to see the profile of this user

2008/07/02 09:49

Re:CodeSourcery, DriverLib and first steps

Hi Marco,

I tried to answer your questions:

1)Yes you can do it with eclipse using OpenOCD or LMIFlash. For eclipse you can use the example given in the FreeRTOS page as strarting point. LMIFlash can be used with command line, just use the external tool functionality of eclipse to do that

2)Codesourcery is based on GCC. CS3 is used to uniform the syntax for different cpu architecture i.e Interrupts.

3)Normally adding the header in the include path and the library in the library path should be enough

4)No library is missing. What you miss is eclipse (can be downloaded separately) and the debug sprite (used to download the code and debug the board) but you can use OpenOCD. Of course you also miss the support.

I'm personally using the lite vesion with eclipse and OpenOCD.

Post edited by: ravaz, at: 2008/07/02 09:51

login or register to reply

femtotech

Expert Boarder
Click here to see the profile of this user

2008/07/02 11:20

Re:CodeSourcery, DriverLib and first steps

Thank you for your reply!

1) I thought Eclipse was already configured with an external programming tool in the evaluation version to download the code! I'll add it manually.

3) Perhaps I forgot to add the library path. It should be:

DriverLibsrcgcc

4) The page:

http://www.codesourcery.com/gnu_toolchains/sgpp/editions.html

states that also the Personal Edition has Eclipse. But some libraries seem to be not available.


Thank you again
Marco

login or register to reply

ravaz

Platinum Boarder
Click here to see the profile of this user

2008/07/02 12:01

Re:CodeSourcery, DriverLib and first steps

For the library I'm using the make file derived from the one given with the driver lib, I'm not using the managed make file project in eclipse. To add it in eclipse you probably must call it just "driver" It's a little bit odd but normaly you put the name of the *.a file without the extention and the lib prefix.

Yes personal edition comes with eclipse. I missunderstood you were talking about the lite edition.
I dont know wich libraries are missing between the Professional and Personal edition, but most probably you will not see the difference for the cortex uC. The runtime library are mostly used for Linux systems.

From my point of view I advice you to save the money and use the Lite edition with a downloaded eclipse+CDT (new version has just been released) and OpenOCD. You will lose some time maybe to configure all the system but at the end you will have a better understanting of the system and also saved some money.


Ramon

login or register to reply
<< Start < Prev 1 2 3 4 5 6 7 8 Next > End >>