SparkFun Electronics Commentsurn:uuid:214d0e4e-f1b1-d287-ce26-ac5b4c9f82492024-03-29T00:18:52-06:00SparkFun ElectronicsCustomer #71439 on Arduino: Under the HoodCustomer #71439urn:uuid:6b56ef3c-c22d-f639-b035-61c7dd56c0932015-05-12T11:44:58-06:00<p>One missing step in your description is that all the core files are compiled into an archive called core.a and that the sketch is then linked against this archive so that only the core code needed by the sketch is included in the final hex file.</p>
SFUptownMaker on Arduino: Under the HoodSFUptownMakerurn:uuid:1b0fa777-e77d-2810-1c21-27408948db472015-05-07T19:13:08-06:00<p>Thanks!<p>One thing I really want to do is to start from "zero" (a blank text document) and walk through the entire process that results in an executable. Understanding #define and the preprocessor versus <code>const</code> declarations, how linking works (and, especially, the difference between C linking and C++ linking), these are rarely covered in a concise manner.</p></p>
adamj537 on Arduino: Under the Hoodadamj537urn:uuid:cee2967a-3e40-3774-327e-5f7af91b48f82015-05-07T15:55:29-06:00<p>Seconded. It would be nice to see a write-up of differences between the Arduino language and C/C++, for those of us who are familiar with one and want to leap into the other.</p>
Customer #494967 on Arduino: Under the HoodCustomer #494967urn:uuid:8ea1294b-a751-55dc-f3b5-8fc61c74d75c2015-05-04T21:41:18-06:00<p>Please oh please do tell where in the world you're finding those Lumias for $20!?!?</p>
SFUptownMaker on Arduino: Under the HoodSFUptownMakerurn:uuid:4143192c-c7eb-0d94-3657-1a7fb55fa99c2015-05-02T11:04:21-06:00<p>It's doable but awkward. One of the things that you can do with the arduino ide is upload a given board flavor's bootloader with an attched programmer. The hex file that the ide uses for that operation is defined in the boards.txt file. You can either rename your hex file to match one of the existing ones or create a new boards.txt entry cor your desired target.<p>The second option is really flexible as you can tell the ide to look wherever you want, to use whatever processor you want, set the fuses how you want, etc. Basically, by tweaking boards.txt, you can use the ide as a frontend for avrdude.</p></p>
Customer #533067 on Arduino: Under the HoodCustomer #533067urn:uuid:12d13183-43ce-4f5b-157f-7b33681a91352015-05-01T21:06:00-06:00<p>Excellent article. Months ago I had peeked at this and got scared and ran away. Nice to have a friendly guide with a machete. A related question: I've routinely done C programming for Atmel in other environments like Imagecraft and have never figured out how to use the Arduino IDE to upload a plain old hex file produced elsewhere. Reasons for doing this range from being able to upload via serial instead of an AVRISP Mkii, and notably the incompatibility between the AVRISP's JUNGO USB Driver and Arduino's. Any tips on how to take a standard hex file and cover it with the secret sauce to make the Arduino uploader eat it like a regular Arduino .ino file? Are there structural reasons that make that too hard (or impossible) or is it just a matter of say, renaming it and making some associated files and putting them in some special place (like the temp folder)? Thanks!</p>
Michael Rouse on Arduino: Under the HoodMichael Rouseurn:uuid:c36380f0-0aa0-01a1-2d26-7cac30d8ddd02015-05-01T20:09:41-06:00<p>Very interesting article. I had always wondered where the main() function was, thanks for the read!</p>
SFUptownMaker on Arduino: Under the HoodSFUptownMakerurn:uuid:17b3100f-92f9-d070-f3b5-eb56d0e54aca2015-05-01T11:16:38-06:00<p>Good idea! There are a few.<p>I'm planning to write up a tutorial digging into the whole process in great detail; I'll include that as a section.</p></p>
ViennaMike on Arduino: Under the HoodViennaMikeurn:uuid:4ba9c5c2-64b0-729c-7c83-eaf2d3aae5c22015-05-01T11:15:16-06:00<p>Very nice article. I'd love to see a follow-up on the "gotchas" that can pop up for those familiar with C/C++ when using the Arduino IDE (such as variable scope across "tabs"). I've yet to see a good article on this anywhere.</p>
SFUptownMaker on Arduino: Under the HoodSFUptownMakerurn:uuid:b6030fb7-b905-79e8-b8e5-18e90a4b8f3e2015-04-30T15:18:06-06:00<p>Not from within the IDE; you can, however, add flags by editing the platform.txt file that lives in the hardware directory (Arduino/hardware/arduino/avr/, for instance).<p>That file contains all the command line options used to build and link the project; there's no way to pass a flag from within a file back out, as far as I know.</p></p>
deisterhold on Arduino: Under the Hooddeisterholdurn:uuid:4a65e1bb-8a32-1279-555e-5561e9bbba812015-04-30T14:32:32-06:00<p>Is it possible to add flags to gcc from within the IDE? For example, if I wanted to add -Wall, can I do that?</p>
Customer #126010 on Arduino: Under the HoodCustomer #126010urn:uuid:abf365cc-447c-9444-6e15-470df1973e2f2015-04-30T10:32:57-06:00<p>One of the most interesting niblets of information was that the API would allow embedded projects (RaspPi, Arduino, etc.) to utilize sensors from Windows devices, specifically mentioning Windows Phones like the Lumia 530. This is a huge deal considering that the Lumia 520 can be had for about $20 (retail price, no contract) in the US. It's packed with GPS, IMU, Ambient light, touchscreen, camera, GPRS/GMS modem, etc. all for $20. Does sparkfun even offer an IMU/GPS shield for that price?! Not to mention the fact that it's an entire freaking phone. And if this API extends to the HoloLens (like they showed in the video) and, who knows, maybe more of their devices like the Microsoft Band smartwatch and the XBOXone and maybe even tie into their cloud services... The possibilites are mind-boggling.</p>
Emcee Grady on Arduino: Under the HoodEmcee Gradyurn:uuid:560f888f-d0b5-231a-987d-65542a71858e2015-04-30T10:06:33-06:00<p>I actually just wrote a quick article about it <a href="https://www.sparkfun.com/news/1817" rel="nofollow">here</a>.<p>In my opinion (which is not necessarily reflective of SparkFun's), I think it's a good thing. I think there is so much negativity from the era of Ballmer at Microsoft. It seems their new CEO (Satya Nadella) has some interesting ideas. I think this will overall be good stuff for the Maker and DIY community.</p></p>
Customer #126010 on Arduino: Under the HoodCustomer #126010urn:uuid:8b250783-ed19-ecdc-ded3-caf7ab72deb52015-04-30T09:17:08-06:00<p>Hey, guys. Microsoft's most recent moves into IoT, Raspberry Pi, and now possibly Arduino seem HUGE for the maker community. Yet, I haven't really heard anything about it from those "in the know" in the maker community. Have you been following this? If so, I would like to see your take on it, perhaps this warrants an article.<p>http://winbeta.org/news/windows-10-iot-core-insider-preview-released-microsoft-will-be-free-makers</p></p>
Customer #364248 on Arduino: Under the HoodCustomer #364248urn:uuid:2d293cd8-9e09-1b5a-7bf3-6b5a5d3396092015-04-30T07:51:41-06:00<p>Great article! Thanks for the insight</p>