This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error: L6218E: Undefined symbol GPIODirModeSet

Hi,

I am facing the following error when I am trying to compile my program.

linking...
test_LM.axf: Error: L6218E: Undefined symbol GPIODirModeSet (referred from pea0-3).
test_LM.axf: Not enough information to produce a FEEDBACK file.
test_LM.axf: Not enough information to list image symbols.
test_LM.axf: Not enough information to list the image map.
test_LM.axf: Finished: 3 information, 0 warning and 1 error messages.
Target not created

I am using Keil uvision version4 and the platform I am using is ARM cortexM3(lm3s5791).

Parents Reply Children
  • It is the one which is given in kiel for lm3s101 processor.It uses the header lm3s101.h and I am using lm3s5791 processor and it does not have a corresponding header in the C:\Keil\ARM\INC\Luminary folder.

  • Then you obviously need to spend some time studying the original project to find where that symbol was defined, and make a corresponding definition in your own project.

    You can't expect to just go making random changes in other people's projects without fully understanding the implications!

    The lm3s101 and lm3s5791 aren't even from the same series of Stellaris microcontrollers:
    focus.ti.com/.../mculuminaryprodsearch.tsp

    The process of taking a project from one target (eg, lm3s101) to another (eg, lm3s5791) is known as porting - how much effort is involved in the porting will depend on how similar or different the two targets are.

    Why don't you just use an example that is specifically written for the chip that you actually have - or, at least, one from the same series?

  • Hi,
    I am new to this domain and i am studying lm3s5791 controller I have tried to write a sample code for blinking the LED's,I used LM3sxxxx.h header file and used the API's as per defined in the header but it showed the error as given above.Kindly let me know which header to be used for this particular controller in Keil 4.14.

  • Hi John. Did You solve your's problem. I have the same i don't know what header i should use. I'm using LM3S9B96 on evaluation kit and i use LM3Sxxxx.h. This header have gpio.h and there is defined GPIODirModeSet so i don't understand why it does't work :/