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.

OMAP-L138 PINMUX15 register can not be set in GEL

Hi,

    I want to set the PINMUX registers in the OnTargetConnect() function in GEL,  what confused is that if i set the PINMUX15 register, then every time when i connect the target, an error present: "GEL: Error while executing OnTargetConnect(): cannot multiply by pointer". And the other PINMUX registers seems OK, as long as i do not set the PINMUX15.

    Any one encountered the same problem? 

Thanks,

Huang.

  • Can you post the part of your GEL file that sets the PinMUX15 register. The best way to set it is as shown below:

    #define SYS_BASE            0x01C14000

    #define PINMUX15           *(unsigned int*)(SYS_BASE + 0x15C)  //PINMUX15

    hotmenu PINMUX_seup (){

    ......

    PINMUX15  = 0x11111111;

    .......

    }

    Hope this helps.

    Regards,

    Rahul

  • Dear Rahul,

        Thanks for your reply, my GEL file that sets the pinMUX15 register shows below:

    #define SYS_BASE           0x01C14000

    #define PINMUX15           *(unsigned int*)(SYS_BASE + 0x15C)  //PINMUX15

    PINMUX_Config(){

    ......

    PINMUX15  = 0x00000080;

    ......

    }

    I haven't  find any Inappropriate place in the file, so i gave up setting  this register in the GEL file, and set it in the main function using C language.

    Thanks,

    Huang