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.

TMDS243EVM: MCU-PLUS-SDK-AM243X: PCIe access exception handling

Part Number: TMDS243EVM

Tool/software:

Hi Ti expert,

       I am using AM243X EVM board as RC to access FPGA EP.

       Now I am focusing on how to do the access exception handling. I carry out the following tests.

            1 Cross border access -- I read an address that out of the range of EP' memory, the MCU crashed (The program jump to CSL_secProxyIpfeatEncodeRevVals() and stuck there, as the picture below shows). 

            2 Access while the EP is absent -- after initialization and RC could access EP, then power off the EP. If the RC access EP then, the MCU will crash too, the same as the result of the former test.

    For Cross border access, I might check the address before access. So, it is easy to avoid.

    My question is for the second, How can RC know the EP is active or not before any access?

    Check some register like LtssmState?

    Or as "12.2.2.4.4.6.3 Link down Interrupt" of the TRM says there will be a PCIE_LINK_STATE_PULSE interrupt when disconnection occurs, how could I enable this interrupt?

Thanks and BR

Chunyang