View peripheral registers

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • View peripheral registers

    Hi

    I'm debugging an atmel part - AT91SAM7S256

    Is it possible to view the peripheral registers during debug?

    In another tool I use can see the peripherals view listed by type - e.g. uart, timer, interrupt controller

    Regards
    Martin MacD
  • Hi

    I has found way to add new registers into registers watch window:

    I created new xml file ( I have different MCU)

    XML Source Code

    1. <?xml version="1.0"?>
    2. <!DOCTYPE CPU_Registers_File>
    3. <Root name="ARM NVIC">
    4. <RegisterGroup name="NVIC" default_open="Yes" default_visible="Yes">
    5. <Register name="CPUID" start="0xE000ED00" size="32" access="ReadWrite"/>
    6. <Register name="ICSR" start="0xE000ED04" size="32" access="ReadWrite"/>
    7. <Register name="VTOR" start="0xE000ED08" size="32" access="ReadWrite"/>
    8. </RegisterGroup>
    9. </Root>
    Display All


    I added this file in Project Options->Debug->Debuger->Register Definiton File

    Now i can see this registers during debuging... but without values, and I don't known why - in memory wath i can see this registers values (as memory part)
    Is any manual to work with this file?
  • Ok, I has found example in Embedded Studio Reference Manual, and I see that size is in bytes not bits. After chage it (32->4) i can see values.
    So you can create new file with peripheral registers or try to import using ImportSVD - this is not tested by me.
  • rgal wrote:

    Ok, I has found example in Embedded Studio Reference Manual, and I see that size is in bytes not bits. After chage it (32->4) i can see values.
    So you can create new file with peripheral registers or try to import using ImportSVD - this is not tested by me.
    Thank you, I will have a play with that