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.

DSS Scripting: Accessing target registers - ARM

1. What memory page enumeration do I use to access memory mapped peripheral registers with writeWord() API?

2. How do I access ARM coprocessor registers?

3. Where can I find the list of register names to be used with writeRegister() API?

Thanks,

Eugene

  • Hi Eugene,

    Eugene K said:
    1. What memory page enumeration do I use to access memory mapped peripheral registers with writeWord() API?

    For targets with a flat memory system (like ARM), use '0'. But you may be able to access it using the writeRegister() API (see the answer to Q3).

    Eugene K said:
    2. How do I access ARM coprocessor registers?

    Eugene K said:
    3. Where can I find the list of register names to be used with writeRegister() API?

    You can use writeRegister for any core or memory mapped register that is defined in a device/module XML file. Basically, if it appears in the register view, you can access it via the read/wright register APIs. To access a a memory mapped register, you need to add prepend the group name (parent node) with an underscore:

    ex. memory.readRegister("Crc_Ctrl0");

    Thanks

    ki