Go Down

Topic: Sharing compiled code? (Read 1 time) previous topic - next topic

joshuaj

I did search but wasn't able to find anything. Mostly because I'm probably not searching with the correct terminology..

What I'd like to do is compile code for my Uno to share with the UI developer that has no need to compile or see the source code.

Seems like a pretty basic requirement but I'm fairly new to embedded code on the Arduino so I'm not sure how to approach this.

Thanks,
Joshua

Graynomad

AFAIK that's not practical (or even possible) with small embedded systems.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

joshuaj

Really? So you have to compile and download in one shot? I can't imagine why that would be the case. But as I said I'm knew to 'duino...

micnossub

You should probably do that with the .hex (it's the hex code of the microcontroller) But not sure how can you upload the code with the Arduino IDE once  other people got the .hex file..

joshuaj

Yes! But if you compile the source code where is it compiled to?

I think AVRDude is the way to upload files to 'duino...

THanks!

Graynomad

#5
Mar 01, 2013, 06:08 am Last Edit: Mar 01, 2013, 08:21 am by Graynomad Reason: 1
Actually I'm pretty rusty on this end of things these days and I also thought you meant at run time. You can probably compile your code to an object file then have people include that in their project at the link stage. But I don't think you could do that under the Arduino IDE, you'd have to get down and dirty with make files.

I'm prepared to be corrected though.

_____
Rob
Rob Gray aka the GRAYnomad www.robgray.com

Coding Badly

Yes! But if you compile the source code where is it compiled to?


%TEMP%

Coding Badly

I think AVRDude is the way to upload files to 'duino...


Correct.  Turn on verbose output to see the exact command line.

CrossRoads

There's also ways to upload .hex files in a standalone method

http://www.gammon.com.au/forum/?id=11638

or commercially with

http://www.kanda.com/products/Kanda/HH0110.html
will do the fuses & load program.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

robtillaart

You could let the UI developer work with paper and pencil and after his storyboards/sketches are agreed upon you could implement them .

Is that an option?
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Graynomad

As I understand it the OP wants to provide a "module" for developers to include with their program. In other words a library but without the source code.

Is that the case? If so it can't be done at the HEX file level surely.

_____
Rob
Rob Gray aka the GRAYnomad www.robgray.com

Coding Badly

Quote
Is that the case?


Can't tell for certain.  The requirements are ambiguous.

Quote
If so it can't be done at the HEX file level surely.


Probably not.

We'll have to wait for clarity from @joshuaj.

robtillaart

alternative is to make fake code with the same interface for the UI.  No need to share the secret parts...
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

joshuaj

Tough crowd!  ]:)

I need to provide updates for the micro to the UI developer in a remote location. He's not an embedded developer and has no need to see the source code. He just needs update to functionality as they become available.

joshuaj


There's also ways to upload .hex files in a standalone method

http://www.gammon.com.au/forum/?id=11638

or commercially with

http://www.kanda.com/products/Kanda/HH0110.html
will do the fuses & load program.


Thanks!

Go Up