Home arrow Support arrow Forums

Luminary Micro Forums

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

totenhose

Senior Boarder

2008/07/19 11:39

Re:CodeSourcery, DriverLib and first steps

I'm a newbie in programming Cortex but i wonder about some things:

1. Why ravaz suggests to download cygwin and then replace the make.exe? It doesn't help. I left make.exe as it was and added cygwin/bin path to Windows environment variables (Control Panel - System Properties - Advanced - Enviornment Variables). Now the make works and it doesn't complain about missing "uname" and "rm" (happens on make clean).

2. What's the reason of using Java based Eclipse? IMHO it's a waste of resources (memory, time, etc). And this workspace thing is something i just can't understand - why should i make a new workspace and import some project and not create simple projects like all other IDE-s do. Anyway, i decided to use Programmers Notepad. It works fine - you just have to define some commands (make, make all, make clean, program). I dont know about debugging tools, but if you use bootloader, debugging is not an option anyway.

Post edited by: totenhose, at: 2008/07/19 11:40

login or register to reply

ravaz

Platinum Boarder

2008/07/19 12:23

Re:CodeSourcery, DriverLib and first steps

Hi Totenhose,

thank you for your feedback.

I replaced the make because I has a problem with the *.d files (dependencies files). The '' char used by windows for the folders add a confilc with one used to continue on a new line.

Regarding Eclipse is a personal choice, but for me things like autocomplete, link to the function declaration, variable renaming, exelent integration with CVS and SVN, debugger front end,... are very valuable features that I was not able to have using notepad systems.
Like all the tools you need a trainning phase before really benefits from its features. I suggest you to spend I little bit more time using a software before saying is a waste.
Regarding the workspaces I don't understand what you dislike. You can have only one workspace where you can create all the projects you want (is not what you want?).

I'm also using an etherent bootloader in most of the cases, but sometimes debugging is more than an option
if you don't want to waste your time trying to solve a bug.

login or register to reply

totenhose

Senior Boarder

2008/07/20 06:13

Re:CodeSourcery, DriverLib and first steps

That wasn't the full feedback. That was mainly criticism from not-much-of-a-java-fan.

The positive part is that you're done a nice work with Makefile and linker script which i'm trying to learn, maybe improve and start using. On the process i got some new questions too:

1. Why not to use libc (which comes with Codesourcery lite also) function sprintf? I mean, why is it replaced with LMI DriverLib utils one.

2. Is it possible to get libstd++ (and STL) working also? I get a lot of linker errors when using it.

login or register to reply

ravaz

Platinum Boarder

2008/07/20 07:45

Re:CodeSourcery, DriverLib and first steps

I also was a not-much-of-java-fan in the past (like most of the eletronic engineers), but I had to change my mind with the time... ;-)

I replaced the sprintf fucntion just because I prefer to have the source code and also because usualy the libc functions are heavy to be used in small embedded system.

Regarding the STL the problem I think it commes from the dynamic memory allocation. You should probably allocate a space in the memory on the linker script, but I don't know how. IMHO using STL on a small embedded devices should be avoided. What kind of functionality are you looking for from STL?

If you make some improvement to the Makefile and/or Linker script could you please share it with the forum?

Regards

Ravaz

login or register to reply

ravaz

Platinum Boarder

2008/07/23 15:42

Re:CodeSourcery, DriverLib and first steps

I changed the OpenOCD with a new version (svn:853M) and cleaned up the commands for debugging. The workspace can be found there:

http://www.mediafire.com/?mmnth9cw99n

regards

login or register to reply

ravaz

Platinum Boarder

2008/07/28 22:38

Re:CodeSourcery, DriverLib and first steps

I added a project in the workspace that uses only the stardard lib like suggested by totenhose, the project is called StandardLibExample.


The workspace can be found here:

http://www.mediafire.com/?z4wbje3gmfn

Regards

Post edited by: ravaz, at: 2008/07/28 22:40

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