Home arrow Support arrow Forums

Luminary Micro Forums

<< Start < Prev 1 2 3 4 Next > End >>

print

Gold Boarder

2008/09/11 03:18

Re:Problem with GPIO and SYSCTL lib files

Hi

Still the problem remain as it is.

What to do now? any other opinion.!

login or register to reply

wella

Platinum Boarder

2008/09/11 04:21

Re:Problem with GPIO and SYSCTL lib files

Check if you have debug.h file present at "src" directory or where gpio.c resides(is placed)

//gpio.c
..
..
#include "debug.h"
#include "gpio.h"
#include "interrupt.h"
..

login or register to reply

print

Gold Boarder

2008/09/11 04:44

Re:Problem with GPIO and SYSCTL lib files

Hi Wella,

No problem of inclution of header files as I had included them properly.

It may be some other problem. I am using GCC compiler to build the project in debug mode so no conflict in debug or release mode, but still the problem remains as it was.

Inclution of header files in gpio.c nad sysctl.c is also ok.

What else..?

Post edited by: print, at: 2008/09/11 04:53

login or register to reply

cb1

Platinum Boarder

2008/09/11 09:29

Re:Problem with GPIO and SYSCTL lib files

print-

We could better help if your posts described what you did!

After LMI-Dave & I replied you wrote:

"I am trying to sortout the problem and will let you know the progress....

Still the problem remain as it is."

We have no idea what you did, what you may have changed/added etc.

Do any of your gpio functions work? You MUST have used these in the past - if NOW they fail it must be that you've changed something - or are using newer LMI library which has new functions or slight changes which require some "tweaking."

login or register to reply

print

Gold Boarder

2008/09/12 03:40

Re:Problem with GPIO and SYSCTL lib files

hello cb1,

I have used both gpio and sysctl lib before where it ran successfully but this is the first time when I am facing such kind of error problem.

The incl/h files have been included properly and I am using the gcc debuger in debug mode.

My Driverlib is the updated one provided by the luminary and these libs run normally in case of other programms. No extarnal inclution hadn't done in the inbuild libs.

As per Dave told me I also rebuild Driverlib and then link it to my code but no result..
I had also tried to build the error function code in my program as per Dave said but still no result..

The details of the errors are :
for gpio :

./Driverlib/src/gpio.o: In function `GPIODirModeSet':
../Driverlib/src/gpio.c:174: undefined reference to `__error__'
../Driverlib/src/gpio.c:182: undefined reference to `__error__'

./Driverlib/src/gpio.o: In function `GPIOPadConfigSet':
../Driverlib/src/gpio.c:416: undefined reference to `__error__'
../Driverlib/src/gpio.c:424: undefined reference to `__error__'
../Driverlib/src/gpio.c:428: undefined reference to `__error__'
../Driverlib/src/gpio.c:873: more undefined references to `__error__' follow

And for sysctl :

In function `SysCtlSRAMSizeGet':
sysctl.c:(.text.SysCtlSRAMSizeGet+0x0): multiple definition of `SysCtlSRAMSizeGet'
../Driverlib/src/sysctl.c:174: first defined here

In function `SysCtlFlashSizeGet':
sysctl.c:(.text.SysCtlFlashSizeGet+0x0): multiple definition of `SysCtlFlashSizeGet'
../Driverlib/src/sysctl.c:192: first defined here

like this in the other functions also it gives the same error.

Now what to do? Anything more you want to know just let me know.

Thank you inadvance.

login or register to reply

print

Gold Boarder

2008/09/12 03:40

Re:Problem with GPIO and SYSCTL lib files

hello cb1,

I have used both gpio and sysctl lib before where it ran successfully but this is the first time when I am facing such kind of error problem.

The incl/h files have been included properly and I am using the gcc debuger in debug mode.

My Driverlib is the updated one provided by the luminary and these libs run normally in case of other programms. No extarnal inclution hadn't done in the inbuild libs.

As per Dave told me I also rebuild Driverlib and then link it to my code but no result..
I had also tried to build the error function code in my program as per Dave said but still no result..

The details of the errors are :
for gpio :

./Driverlib/src/gpio.o: In function `GPIODirModeSet':
../Driverlib/src/gpio.c:174: undefined reference to `__error__'
../Driverlib/src/gpio.c:182: undefined reference to `__error__'

./Driverlib/src/gpio.o: In function `GPIOPadConfigSet':
../Driverlib/src/gpio.c:416: undefined reference to `__error__'
../Driverlib/src/gpio.c:424: undefined reference to `__error__'
../Driverlib/src/gpio.c:428: undefined reference to `__error__'
../Driverlib/src/gpio.c:873: more undefined references to `__error__' follow

And for sysctl :

In function `SysCtlSRAMSizeGet':
sysctl.c:(.text.SysCtlSRAMSizeGet+0x0): multiple definition of `SysCtlSRAMSizeGet'
../Driverlib/src/sysctl.c:174: first defined here

In function `SysCtlFlashSizeGet':
sysctl.c:(.text.SysCtlFlashSizeGet+0x0): multiple definition of `SysCtlFlashSizeGet'
../Driverlib/src/sysctl.c:192: first defined here

like this in the other functions also it gives the same error.

Now what to do? Anything more you want to know just let me know.

Thank you inadvance.

login or register to reply
<< Start < Prev 1 2 3 4 Next > End >>