This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TM4C123GH6PM: Library Error

Part Number: TM4C123GH6PM


Tool/software: TI C/C++ Compiler

Hii

I'm trying to write a code for TM4c123gh6pm microcontroller in Keil environment from the website, link is http://users.ece.utexas.edu/~valvano/Volume1/E-Book/C8_SwitchLED.htm  but registers they used when I write that register it shows an error. Can anybody tell me where is the problem? 

  • Using direct register manipulation is the first wrong step. Look at using TIVAWare instead.

    Robert

  • 1. Actually I worked on Blue board which is ARM7TDMI based, in this I directly use register as given in datasheet. So can you tell me why I can't do that direct register accessing in this, just for curiosity ?

    2. The link I mentioned they use ::
    GPIO_PORTA_DIR_R &= ~0x20;
    GPIO_PORTA_DEN_R |= 0x20;

    and in a youtube tutorial
    GPIOF->DIR = 0x0E;
    GPIOF->DEN = 0x0E;

    So how they get a different different register for the same purpose?

    Ronit
  • RONIT SHARMA said:
    1. Actually I worked on Blue board which is ARM7TDMI based, in this I directly use register as given in datasheet. So can you tell me why I can't do that direct register accessing in this, just for curiosity ?

    Can't? no it's not impossible. Inconvenient, inefficient, error prone and with no support, yes.

    RONIT SHARMA said:
    . The link I mentioned they use ::
    GPIO_PORTA_DIR_R &= ~0x20;
    GPIO_PORTA_DEN_R |= 0x20;

    and in a youtube tutorial
    GPIOF->DIR = 0x0E;
    GPIOF->DEN = 0x0E;

    So how they get a different different register for the same purpose?

    That's different support libraries, not different registers. The second looks like a 'duino clone which I'd avoid in favour of something more professional.

    Robert

  • Okay!! Thanxx ROBERT. I got you and I will start with first one.