i.MX6SoloX uSDHC ADMA2 problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX6SoloX uSDHC ADMA2 problem

ソリューションへジャンプ
1,737件の閲覧回数
davidjaouen
Contributor III

Hi,

I'm porting the MQX 4.2 ESDHC driver on the i.MX6Solox and I'm having problems with the ADMA2.

The SDHC card is inserted and correctly initialized.

When a try to read a block of 512 bytes, I initialize the ADMA descriptor with the following:

Low 32-bits: 0x0200 0023 (transfer 512 bytes, transfer data, End bit and Valid bit set)

High 32-bits: 0x1FFF AA08 (destination address in system memory (TCML))

I get an ADMA2 error:

ADMA error status register = 0x00000009, according to the Reference Manual, it means the valid bit in the ADMA descriptor is cleared (which is not!).

The DMA is enabled (DMAEN bit set in register MIX_CTRL).

ADMA2 operation is selected (DMASEL=0x2 in register PROT_CTRL).

Does anyone can help me to solve this problem?

Regards,

David

ラベル(1)
タグ(2)
1 解決策
1,560件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello,

  Please try using (system) DRAM memory, which supports bursts from the uSDHC.

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,561件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello,

  Please try using (system) DRAM memory, which supports bursts from the uSDHC.

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
1,560件の閲覧回数
davidjaouen
Contributor III

Hi Yuri,

I tried using DRAM and it worked.

Thanks a lot.

Have a great day,

David

1,506件の閲覧回数
ogj
Contributor IV

Did you get the driver to work for the uSDHC? I'm also using MQX 4.2 (modified to run on the iMX6Q) and having issues reading using ADMA2. Everything appears to work - registers are what I would expect - but I get garbage in my read buffer. This is reading 1 block.

タグ(1)
0 件の賞賛
返信