I’ve spent a couple of days trying to beat this thing into submission, and instead have just beaten my head against the wall… LOL. I’m trying to test the code that Nate Seidle developed for the internal temperature sensor issue. So far, I’ve been unable to find the right set of steps to get this fully working. I pinged stephenf about it via PM, and he suggested opening a thread, so that everyone can benefit (and he’s right), so here we go…
I’m hoping to find out the steps I’m supposed to take to do this? I have to imagine that there’s an easier/smarter way, but I’m not that smart, or my Google-fu is weak… LOL
Here’s what I’ve tried… I’m on a Mac, so paths mentioned here look different than Windows, and potentially linux.
First, I downloaded Nate’s branch from Github as a ZIP file. After some time and several dead ends, I found a couple different ways to get the IDE to recognize it (either as a separate board, in my ~/Documents/Arduino/hardware dir, or by replacing SparkFun/hardware/apollo3/1.0.30 with the repository in the ZIP file).
Of those two methods, with the first, it looks like I’d have to uninstall the SparkFun board library - the compiler finds the 1.0.30 library first and tries to use it to compile the code. This fails because Nate’s new getTemperature() isn’t declared/defined in the 1.0.30 boards library.
The second method makes it further after I make the change to platform.txt that Nate recommended in the issue (it doesn’t find the compiler, otherwise), but fails to compile Nate’s new Example4 because the pin A3 isn’t declared. Obviously, something’s missing that lives in the main library or something. I have “RedBoard Artemis” selected as my board - pin A3 is supposed to be defined and mapped to pad 19 on the Apollo3 in that board variant (per the variant’s variant.cpp file). I can try selecting another board, potentially (the ATP was Stephen’s suggestion - since all the pads are mapped, there) - I’ll have to set this version back up on my system to try that.
Finally, I’ve set up the GitHub desktop, and pulled a clone of Nate’s branch to my local system in the ~/Documents/Arduino/hardware location, but the filesystem structure in the branch is wrong for that location - I’ll have to massage it to work, which isn’t really correct action for a code branch (not that I’m going to do a pull request from there, but it does make the Git stuff get messy on my end.
Ideally, someone has a clue as to what I’m doing wrong? I’m not expecting to be spoon fed - I just can’t seem to find the right docs or forum posts that tie it together for me and explain what my workflow should be to make this work.