NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Customer Testimonials » How do I create a new file to execute on the Nerdkits?

December 26, 2014
by Keek
Keek's Avatar

As of now, I have been using the files that are part of the download to create new programs. If I want to create a new program, I have to modify the code of the file itself, and I cannot save the old file. If I want to create a new file in a different language, how would I do that? I can create the file, but how would I create the makefile to execute it?

December 26, 2014
by scootergarrett
scootergarrett's Avatar

I don't know about 'a different language' , like not written in C?

I used to just make a copy of a folder like the initialload folder; then make sure there were no .o of .hex files. I would change the program name to something usefull (with no spaces). Then replace the old program file name in the Makefile to the new program name.

December 27, 2014
by Ralphxyz
Ralphxyz's Avatar

Why can't you save the old file?

Just make a copy of it before you change it. Initialload.c copies to Initialload.ORG

Ralph

December 27, 2014
by JimFrederickson
JimFrederickson's Avatar

I would suggest keeping "ALL" of your files in a Foler/Sub-Folder Arrangement.

For me I have "2 Levels":

       Project 1  
            v1.xx  
            v2.xx

       Project 2  
            v1.xx  
            v2.xx  
            v3.xx

I think that will get rid of any issues with "I cannot save the old file".

This also enables you to "easily" keep a "working version". So you don't end up in a
situation where "Oh, I changed something now it doesn't work. What do I do?"

Somtimes, when you are putting in changes you change things here, and change things
there, compiling, fixing errors, then you go to run it and some logic error causes it
NOT TO RUN...

I often find a "known good Version" is much easier to go back to and then more
carefully make my changes is easier than debugging.

If you want to go further, you can rename the files, change the Make File, but that
gets more complicated rather quickly.

As far as "other Languages" you really only have the 2 choices.
"c" and "Assembler". (Although a compiled Basic does exist.)

Other ones do exist, but I don't really find them practical on a small Microcontroller.

Most Basics and Forth Languages for a Microcontroller are "Interpretive" so the process
is different in those cases.

November 24, 2015
by JKITSON
JKITSON's Avatar

HAPPY THANKSGIVING every one.

November 25, 2015
by Rick_S
Rick_S's Avatar

You too Jim, and everyone else as well. Good day to eat too much, rest, enjoy family... and then eat leftovers for days to come.

November 25, 2015
by BobaMosfet
BobaMosfet's Avatar

Happy Thanksgiving to all-- be safe, enjoy family, friends, and amazing food!

BM

November 25, 2015
by Ralphxyz
Ralphxyz's Avatar

Thanks, Happy Thanksgiving everyone!!

Post a Reply

Please log in to post a reply.

Did you know that NerdKits also has extra parts available for its customers? Learn more...