Offline
Newbie
Karma: 0
Posts: 10
|
 |
« on: February 28, 2013, 06:07:37 pm » |
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
Tesla Member
Karma: 75
Posts: 6976
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #1 on: February 28, 2013, 06:19:19 pm » |
AFAIK that's not practical (or even possible) with small embedded systems.
______ Rob
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #2 on: February 28, 2013, 06:51:55 pm » |
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
Newbie
Karma: 0
Posts: 39
|
 |
« Reply #3 on: February 28, 2013, 06:54:33 pm » |
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
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #4 on: February 28, 2013, 07:13:47 pm » |
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
Tesla Member
Karma: 75
Posts: 6976
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #5 on: March 01, 2013, 12:08:18 am » |
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
|
|
|
|
|
Global Moderator
Dallas
Offline
Shannon Member
Karma: 129
Posts: 10402
|
 |
« Reply #6 on: March 01, 2013, 02:11:48 am » |
Yes! But if you compile the source code where is it compiled to? %TEMP%
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Offline
Shannon Member
Karma: 129
Posts: 10402
|
 |
« Reply #7 on: March 01, 2013, 02:12:56 am » |
I think AVRDude is the way to upload files to 'duino... Correct. Turn on verbose output to see the exact command line.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Netherlands
Offline
Tesla Member
Karma: 101
Posts: 9553
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #9 on: March 01, 2013, 04:05:32 pm » |
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
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 75
Posts: 6976
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #10 on: March 02, 2013, 02:42:04 am » |
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
|
|
|
|
|
Global Moderator
Dallas
Offline
Shannon Member
Karma: 129
Posts: 10402
|
 |
« Reply #11 on: March 02, 2013, 02:51:27 am » |
Is that the case? Can't tell for certain. The requirements are ambiguous. 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
|
|
|
|
|
Netherlands
Offline
Tesla Member
Karma: 101
Posts: 9553
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #12 on: March 02, 2013, 03:52:19 am » |
alternative is to make fake code with the same interface for the UI. No need to share the secret parts...
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #13 on: March 05, 2013, 10:40:34 am » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #14 on: March 05, 2013, 10:46:05 am » |
|
|
|
|
|
Logged
|
|
|
|
|
|