CodeWarrior TAP runs indefinitely when accessing certain registers

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

CodeWarrior TAP runs indefinitely when accessing certain registers

ソリューションへジャンプ
939件の閲覧回数
jeremy_henderso
Contributor I

I'm using an LS1021A TWR dev board and every time my code reads from 0x350071C or 0x340071C the TAP device runs in definitely, pressing the pause button in CodeWarrior results in the following error message:

Target request failed: CCSProtocolPlugin: Failed to stop process.

This seems to occur when accessing 0x3500000 and 0x3400000 also.

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
850件の閲覧回数
Pavel
NXP Employee
NXP Employee

See the Table 32-2 of the LS1021a Reference Manual.

It looks like that PCIe2 is not enabled in your RCW.

Have a great day,
Pavel Chubakov

 

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

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
850件の閲覧回数
Pavel
NXP Employee
NXP Employee

Sorry.

See SerDes Chapter.

See the Table 33-2 in the LS1021a Reference Manual Rev 3.

Have a great day,
Pavel Chubakov

0 件の賞賛
返信
850件の閲覧回数
jeremy_henderso
Contributor I

Thank you, re-flashing the RCW appears to have fixed the issue.

0 件の賞賛
返信
851件の閲覧回数
Pavel
NXP Employee
NXP Employee

See the Table 32-2 of the LS1021a Reference Manual.

It looks like that PCIe2 is not enabled in your RCW.

Have a great day,
Pavel Chubakov

 

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

0 件の賞賛
返信
850件の閲覧回数
jeremy_henderso
Contributor I

Hi Pavel, 

Table 32-2 refers to OOB timing specifications for the SATA interface, is this the correct table number? I'm not seeing PCIe enable bits in the RCW settings either.

I'm also seeing a similar issue when enabling the MMU and Cache with the following code:

 __asm__ __volatile__ (
 "mrc p15, 0, r0, c1, c0, 0;" /* Read SCTLR into R0 */
 "orr r0, r0, #0x4;" /* Set C bit (bit 2) in SCTLR value */
 "orr r0, r0, #0x1000;" /* Set I bit (bit 12) in SCTLR value */
 "orr r0, r0, #0x1;" /* Set M bit (bit 0) in SCTLR value */
 "mcr p15, 0, r0, c1, c0, 0;" /* Write configuration to SCTLR register */
 );

0 件の賞賛
返信