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.

Problems with basic access of C28069 registers from CCS



I wrote a simple piece of test code in order to manipulate GPIOs (I want to access the registers in the most simple manner i.e. without looking for thousands of header files) :

#include <stdio.h>

unsigned long test;
#define Uint16 unsigned int
#define Uint32 unsigned long
#define GPADIR (volatile Uint32 *) 0x00006F8A
#define GPAPUD (volatile Uint32 *) 0x00006F8C
#define GPASET (volatile Uint32 *) 0x00006FC2
#define GPADAT (volatile Uint32 *) 0x00006FC0

void main(void) {
    test = *GPAPUD;
    *GPAPUD = 0x00000FFE;
}

But the code seams not working, cause the GPAPUD cannot be read neither written (I check state of the registers with XDS100 emulator). Any ideas what is wrong?