FWIW, that's probably something I'm just expected to know, but again, IDE noob here. cpp files are involved in compiling the static libs. But, it glosses over how all the Arduino. Yep, that's one of the guides that got me to where I am now. The interface steps will be different but Eclipse and AVR Studio use the same toolchain under the hood. If you really want to be device agnostic, have you tried adapting techniques #2 and 3 in the core library section for setting up Eclipse? Arduino Playground - Eclipse Unfortunately, we use the pre-compiled strategy in that article because people tend to run into enough configuration issues already, without trying to get the core to compile. Not sure if you've seen it but we have more background on that issue in our tutorial here: I'm fairly certain this wasn't fixed in 5.1. If you are linking with that method, you need to edit the Makefile by hand and move those flags to the very end of the command. The linker decides those files are irrelevant, doesn't link them, then when it reaches a later library that depends on them, can't find what it needs. Have you checked your Makefile to make sure the core libraries are being linked in the right place? AVR Studio 5 has a bug which places the "-Wl,-lcore" reference too early in the linker command, before it's actually needed. I'm self-taught, and my only prior experience with C is writing code in Kate, and compiling by hand in xterm, so I don't have a clue how to properly resolve dependencies in VS. The compile time doesn't bother me, I can wait an extra five seconds. So, rather than keep up with maybe half a dozen commonly used variants, I'd like to just start a project, pick my target platform, add the F_CPU symbol, and have the core libs built from scratch, optimized for my target, like they do under the Arduino IDE. I tinker with the whole gamut of devices: ATmega8s running at 8MHz and 16MHz, 328s and 328Ps running at 16MHz, 1284Ps at 16MHz. I don't really want to use a pre-compiled library. Now, this is where I'm looking for guidance. Specifically, I'm getting undefined reference errors, because, of course, the libcore.a library is not being linked. Is anyone feeling charitable enough to explain how I might use the Arduino libraries in AVR Studio 5.1? I know there are tutorials on this, and by following them, I've gotten close to having it work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |