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.

DM8148 GPIO peripheral registers

Other Parts Discussed in Thread: TMS320DM8148

I am using a DM8148 on a mistral evm board. The documentation (http://focus.ti.com/lit/ds/symlink/tms320dm8148.pdf) indicates that the GPIO_REVISION register should be at 0x48032000. When I try to read this location, I get a bus error. Is the documented address of GPIO_REVISION incorrect? Is initialization needed before trying to read the GPIO_REVISION register?

 

Thanks.

 

  • I received a suggestion that the PRCM may not be set up correctly. I tried this using address for the 8168 and got the address range for GPIO_0 and GPIO_1 to work. My question now is whether there is any documentation for the 8148 and prcm. Particularly for the GPIO and the DCAN peripherals.

    I think I want the user guide referred to in:

     

    For more details on the PRCM, see the TMS320DM814x Power, Reset and Clock Management (PRCM)
    Module User's Guide (Literature Number: TBD).

     

    Thanks.

     

  • GPIO_0 is the same as for the 8168. PRCM_BASE + 0x155c

     

    For the 8148, the DCANs (0 and 1) are turned on by PRCM_BASE+0x1618

  • Hi John,

    Did you manage to get the GPIO working on 8148? and how did you do it?

    Please help.

    Thank you in advance.

  •  /* PRCM Base Address */
    #define PRCM_BASE            0x48180000  

    #define CM_ALWON_GPIO_0_CLKCTRL        (PRCM_BASE + 0x155c)
    #define CM_ALWON_GPIO_1_CLKCTRL        (PRCM_BASE + 0x1560)

    out32(CM_ALWON_GPIO_0_CLKCTRL, 2);
        out32(CM_ALWON_GPIO_1_CLKCTRL, 2);

    #define DM816X_GPIO0_BASE            0x48032000
    #define DM816X_GPIO1_BASE            0x4804C000

    Before doing this, the GPIO address ranges gave bus errors. After doing this, they worked as expected. It is has been a while but I think the gpio address ranges for the 814x are the same as for the 816x.

    Hope this helps.

     

  • John,

    Did you get the "TMS320DM814x Power, Reset and Clock Management (PRCM) Module User's Guide"? Could you please share with us?

    Thanks,

    Bin

  • Sorry I cannot help. I never received the manual. I was able to guess at what I needed and never got the full manual to find out if there was anything else I needed to know.