Pages: [1] 2   Go Down
Author Topic: Sharing compiled code?  (Read 1129 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 121
Posts: 8458
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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...
Logged

Quebec, Canada
Offline Offline
Newbie
*
Karma: 0
Posts: 39
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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..
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 121
Posts: 8458
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: March 01, 2013, 02:21:50 am by Graynomad » Logged

Rob Gray aka the GRAYnomad www.robgray.com

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 178
Posts: 12288
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

%TEMP%
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 178
Posts: 12288
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 443
Posts: 23839
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 170
Posts: 12483
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Rob Tillaart

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

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 121
Posts: 8458
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 178
Posts: 12288
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 170
Posts: 12483
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Rob Tillaart

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

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Tough crowd!  smiley-evil

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

Pages: [1] 2   Go Up
Jump to: