Page 1 of 1

Using make

Posted: Mon Jun 29, 2015 2:10 pm
by SeeCwriter
I tried to create a simple make file for my Nano project by using one the make files from a Nano example project. All my files compiled, but there were lots of errors in system html files. So I copied some of the html lines used in another make example to my make file and compiled again. It compiled with no errors, but there was no _APP.s19 file anywhere. So I returned to the Eclipse and did a "clean" on the project. I received all kinds of errors about duplicate tools. I manually deleted all the object files and did a build. Same error about duplicate tools. I deleted the make file, a dependency file (.mk), and htmldata.cpp. Still can't compile.

I finally copied my source files out, deleted the project and recreated it. Now I can build my project again with Eclipse.

Are Eclipse and make incompatible?

Re: Using make

Posted: Tue Jun 30, 2015 11:00 am
by bhany
if you would take a look at eclipse doc:
http://help.eclipse.org/luna/index.jsp? ... d_over.htm

you can utilize your customized makefile; however seeing your problem and reading over previous post, _APP.s19 is on NetBurner product which could be generated when the project is compiled on eclispe(i might be wrong). So far I have not had much trouble using just provided IDE, it's there to make your life easier! cheers.

previous post:
dciliske wrote:So, the _APP.s19 is not the same as the app image, per se. An S19 file is a text encoding (specifically an SRECord) of a binary structure that contains additional information about the data. Take a look at the wiki page for more info http://en.wikipedia.org/wiki/SREC_(file_format).

The value that is reported is from compcode, which is the tool that compresses the image and generates the S19. It absolutely knows how big the actual image is.

-Dan

Re: Using make

Posted: Tue Jun 30, 2015 11:17 am
by SeeCwriter
The IDE works fine for compiling, but I don't use the IDE to write code. It's too cumbersome. So rather than switch apps every time I want to compile I was exploring invoking a makefile from my programming editor. Doesn't look like that's going to work. Not a big deal. Just would have been nice.

Thanks.

Re: Using make

Posted: Tue Jun 30, 2015 11:23 am
by pbreed
Here is how to use make....
I'm a command line guy myself.. so

1)Make sure things are in the path....
running nburn\setenv.bat will do this.

2)On a command line go to the directory just above where you want the project...
NBAppwizard projectname
Make sure to set the options you want...

3)Go into the directory created...
type make
or make load will make and load code into the last device selected by autoupdate...
(It will provide a dialog to select the device if none was selected remembers last one selected)

Now if you want more files in the projec than main.cpp just add them to the line in the make file...
CXXSRCS

ie

CXXSRCS := main.cpp htmldata.cpp my_added_file.cpp


That should work....

If you forgot to set the platform type in the appwizard dialog... you can fix this two ways...
1)Rerun appwizard....
2)Add a line to the top of the makefile...
PLATFORM=PK70