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.

mcBSP boot problem in OMAPL138 EVM

Guru 20755 points

Hello,

I have a problem configuring the mcBSP in the U-Boot:
I am trying to write into its registers, and though I write into registers which contain writable bits, when reading these registers I read only zeros.
for example when writing into register 0x01D10008 (in mcBSP0) , (or register 0x01D11008 in mcBSP1).
> mw 0x1d10008 1 1
> md 0x1d10000 32
0000 0000 0000 0000 0000....
I checked again and again but the address I use seems to be corect.


I appreciate your help,

Ran

  • Hi ran shalit,

             LPSC is enabled only for necessary peripherals in the u-boot. So, LPSC of McBSP is not enabled by default. So, please do the following to enable the LPSC.

    mw 0x01E27a38  0x3  1     //Enable the LPSC for the McBSP0
    mw 0x01E27120  0x1  1   // Issue GO command  for the above to take effect

    After issuing the above command sequence you should be able to read and write to the register.

    Regards,

    N.Sugumar

  • Hi Sugumar Natarajan,

    Thank you for the reply,

    Is it possible to enable also the McBSP1 in the u-boot ?

    Regards,

    Ran

  • Hi Ran,

     Yes.  It is similar to above except for the  address of module control register.

    mw 0x01E27a3C  0x3  1     //Enable the LPSC for the McBSP1
    mw 0x01E27120   0x1  1   // Issue GO command  for the above to take effect

    Regards,

    N.Sugumar

  • Hello Sugumar Natarajan,

    Thank you for the reply, the LPSC was something I missed, and configuring it solved that problem.
    Later on, I wanted to make a digital loopback using BFIFO: it works but there is something strange in it:
    every write of a frame to the WFIFO, I see that the count in RFIFO is increased in 2 (while expecting to be increased in 1).
    In reading there is no problem (the counter is decreased in 1).
    I posted a message in http://e2e.ti.com/support/embedded/f/354/p/94607/329206.aspx#329206 , but got no reply to it yet.
    I have tried many values, but nothing helps yet.

    I would appreciate your help,

    Regards,

    Ran