OzGrant 22 Posted January 14, 2013 Share Posted January 14, 2013 G'day, After the growing pains of moving from Arduino to 430 launchpad, now in pain again moving up to Stellaris. Have installed StellarisWare, and set energia board to StellarPad. But energia does find the include file. I can see it OK in the correct dir c:/energia-0101E0009/hardware/lm4f/cores/lm4f/inc/. What nobb thing am I doing wrong. Can compile blinky, so most things are working OK Tks. Quote Link to post Share on other sites
Bernard 7 Posted January 14, 2013 Share Posted January 14, 2013 Hi, Could you post the programme that gives you fatal error ? Cheers Bernard Quote Link to post Share on other sites
DanAndDusty 62 Posted January 15, 2013 Share Posted January 15, 2013 I don't use energia so I may be way off track here but the chip is the lm4f120H5qr (note the H in the part number) the include file you are looking for doesn't have that h. This may give you a clue as to what to look for. As I say though I don't use energy's and have never installed it so that may be what the h file should be called. Dan Quote Link to post Share on other sites
OzGrant 22 Posted January 15, 2013 Author Share Posted January 15, 2013 G'day, Yes was my typo there is an F. the code is from http://hackaday.com/2012/10/11/getting-started-with-the-stellaris-launchpad/ ------------------------------------ // processor definitions #include "lm4f120h5qr.h" #define LED_RED 0x2 #define LED_BLUE 0x4 #define LED_GREEN 0x8 //PORTF 1 = RGB LED red //PORTF 2 = RGB LED blue //PORTF 3 = RGB LED green void main(void) { // enable PORT F GPIO peripheral SYSCTL_RCGC2_R = SYSCTL_RCGC2_GPIOF; // set LED PORT F pins as outputs GPIO_PORTF_DIR_R = LED_RED|LED_BLUE|LED_GREEN; // enable digital for LED PORT F pins GPIO_PORTF_DEN_R = LED_RED|LED_BLUE|LED_GREEN; // clear all PORT F pins GPIO_PORTF_DATA_R = 0; // set LED PORT F pins high GPIO_PORTF_DATA_R |= LED_RED|LED_BLUE|LED_GREEN; // loop forever for(; ; } ------------------------------ Grant.. Quote Link to post Share on other sites
Lubitch 0 Posted January 15, 2013 Share Posted January 15, 2013 Hi OzGrant, Maybe this way: // set LED PORT F pins as outputs GPIO_PORTF_DIR_R |= LED_RED + LED_BLUE + LED_GREEN; // enable digital for LED PORT F pins GPIO_PORTF_DEN_R |= LED_RED + LED_BLUE + LED_GREEN; // clear all PORT F pins GPIO_PORTF_DATA_R = 0; // set LED PORT F pins high GPIO_PORTF_DATA_R |= LED_RED + LED_BLUE + LED_GREEN; cheers Wojtek Quote Link to post Share on other sites
OzGrant 22 Posted January 15, 2013 Author Share Posted January 15, 2013 G'day, The problem I have is not with the code, but with energia configuration settings. I have tried other sketches with different #includes and again get the not found fatal error. I have no problems with 430 libs just the stellaris ones. I am assuming that when the energia board is set for StellarPad w/LMF120h5qr (80 Mhz) the energia compiler then uses the path c:/energia-0101E009/hardware/LM4f/Libraries to find the relevant library. The problem is that the path to the include libs for that device is just not followed. I can put the library in MyDocuments/energia/libraries and the compiler finds it ok. But I was hoping to separate stellaris and 430 libs as I convert ones that presently do not work under stellaris. Grant Quote Link to post Share on other sites
calinp 24 Posted January 16, 2013 Share Posted January 16, 2013 Hi, Try to change the folder name from "energia-0101E009" to "energia". Maybe this is the problem. Calin Quote Link to post Share on other sites
PTB 27 Posted January 16, 2013 Share Posted January 16, 2013 Does this help ? http://forum.43oh.com/topic/2993-new-energia-release-0101e0009-12062012/#entry25622 Cheers Ptb Edit: Calinp beat me to it. Quote Link to post Share on other sites
OzGrant 22 Posted January 21, 2013 Author Share Posted January 21, 2013 G'day All, Yup with energia on the C: root all ok. Have cleaned up my dir's and libs so that I have removed duplicates and sort of know what is going on now. I even had arduino sketches coming up, but have taken the step to put all such arduino stuff on the other notebook. It's a hard slog for arduino types like myself, I think we may have had it too easy with the arduino IDE, where one can knock up and debug program within a few hrs, as apposed to days for the 430, and weeks with the stellaris. But as I ran out of program space(on the 430) am now a stellaris convert. But know it will be many days before I see a Dallas temperature device working on my stellaris. With Github stuff, that does not directly work on the energia platform, time and more time is consumed it getting a lib to work. As I said, I have been spoilt by arduino, and for the average guy, can see them dropping back to arduino when the going gets tough. Anyway will stop my rambling and start playing with the one wire libs yet again, and may get a result by weeks-end Grant. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.