VirtualEnder 3 Posted October 14, 2012 Share Posted October 14, 2012 Hi all! The current project I'm working on with Stellaris is a stepper (step, direction) driver. I have these TB-6560 drivers that I got on eBay for cheap (here), and I've successfully driven the motors using the 32 bit timer. I've been able to set the frequency using a variable, etc, and hoping to implement acceleration, etc. The goal is to eventually write an entire gCode interpreter and be able to drive the CNC via a serial connection that dumps gCode to the Stellaris. I'm running in to a weird problem though. I'm attempting to add a control panel I got form Deal Extreme that connects via software SPI. I've been able to successfully interact with it using a library developed by Dan Oprescu. Works great in its own CCS project. I can read buttons, update the 7-seg displays, light LEDs, and everything works great. I've moved his library into my stepper project, and all hell breaks lose. As soon as I include the TH1638.h header in my stepper project I get hundreds of build errors. The really weird part is they don't seem to be coming from any of my code files. They are all coming from compiler includes in iosfwd and exception. I looked around on the web and I found something about including pre-compiled headers being a problem, but I'm a bit lost in this. I compared all the CCS project settings between the TM1638 project example, and my stepper project, and nothing seems out of place. I'm sure I'm missing something, but I have no clue how to debug this. If anyone has any ideas that would be greatly appreciated. I've attached my code so far if anyone has a few minutes to look it over! I'll keep posting here as I progress through the project as well! Suggestions and pointers welcome! EDIT (10-15-2012) Here's (attached) the latest updates to my code with the solutions listed below, if anyone is interested. I'll probably copy it over to github and then post it under the code section before too long here. I want to get it a little further before I do that. I'm sure I'm doing some things wrong here and I may have to change approaches, but this is what I've got so far! EDIT 2 (10-15-2012) Here is a link to the project git repo. Feel free to clone and code! https://github.com/VirtualEnder/Stepper Stepper.zip bluehash 1 Quote Link to post Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.