Skip to content

Register addresses in setting "Device Context" (Table 7-7 in EDBG Guide) #55

@felias-fogg

Description

@felias-fogg

I am slowly progressing with my GDB server and am now making the first steps into the JTAG territory. In this context, I noticed that the Embedded Debugger-Based Tools Protocols User's Guide does not state which addressing mode to use when specifying the addresses of IO registers in the device context (Tables 7-6 to 7-9). Should it be an IO register address or an SRAM address?

In the setup_config method of MegaAvrJtagTarget in module avr8target, it seems that the necessary registers should all be referenced by their SRAM addresses. This, however, leads to errors. The correct way seems to be:

For OCDR, EEARH, EEARL, EECR, EEDR, you have to use the IO register addresses, and for SPMCRS, the SRAM address.

It is unclear what the correct address mode of OSCCAL could be. I simply do not have any test cases that I could use to find out whether this address makes any difference. Do you have an answer for that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions