i.mX RT1171 XRDC2 configuration

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

i.mX RT1171 XRDC2 configuration

220件の閲覧回数
Hndn
Contributor I

Hello,

I am working with the XRDC2 module in i.MX RT1171 MCU. I have reviewed the example in the SDK. I want to test access to a peripheral and memory like in this example. I follow the initialization steps described in the reference manual (43.5 Initialization).
I use the functions in fsl_xrdc2.c for initialization.

In my code I first configure clock and gpio, then I configure XRDC2, but the code doesn't work as expected. My configuration for XRDC2 is as follows:

AHB and AXI bus master configuration:

MDACi_MDAj_W1:
    VLD: 1 - The MDA is valid.
    DL: 0 - Lock disabled, registers can be written.
    SA: 00 - Use the bus master’s secure/nonsecure attribute directly.
    PA: 00 - Use the bus master’s privileged/user attribute directly.
    DID: 0

MDACi_MDAj_W0: (I am not sure about MASK and MATC configurations. )
    MATCH: 0
    MASK: 0x3F

 

Peripheral Access configuration(for each peripheral I use)   

PACi_PDACj_W0:
    D0ACP : 111

PACi_PDACj_W1:
    VLD: 1 - The PDAC assignment is valid.
    DL2: 00 - Lock disabled, descriptor registers can be written...
    EAL: 00 - Lock disabled.

 

Peripheral Access configuration (in addition to start and end address):    

MRCi_MRGDj_W5:
    D0ACP: 111

MRCi_MRGDj_W6:
    VLD: 1 - The MRGD is valid.
    DL2: 00 - Lock disabled, descriptor registers can be written.
    EAL: 00 - Lock disabled.

 

When I do XRDC2 configurations with MCUXpresso Config Tools-TEE, I also see some RDC registers in the "Code Preview" area. But in the user manual it says that RDC is not available for RT1171. Should I make a configuration about to RDC for XRDC2? Could the problem be related to this?

0 件の賞賛
返信
1 返信

139件の閲覧回数
Sam_Gao
NXP Employee
NXP Employee

Hi @Hndn 

"When I do XRDC2 configurations with MCUXpresso Config Tools-TEE, I also see some RDC registers in the "Code Preview" area. But in the user manual it says that RDC is not available for RT1171. Should I make a configuration about to RDC for XRDC2? Could the problem be related to this?"

Please note that it is different between XRDC and XRDC2. The XRDC2 programming model is
not compatible with original XRDC, 
the detailed implementation in one SoC, we could read the related chapters in one SoC's RM. There are still known issues about ' MCUXpresso Config Tools', it is recommended to use SDK/Example(e.g, xrdc2_cm7) for your reference, it seems no need for XRDC2_Init(DEMO_XRDC2) which shows in SDK.

B.R,Sam

0 件の賞賛
返信