Jump to content
Sign in to follow this  
OzGrant

Fatal error lm4f1205qr.h not found

Recommended Posts

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.

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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..

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

 

 

 

Share this post


Link to post
Share on other sites

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.

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×