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.

66AK2H06: is it possible to read DSP register and DSP program counter from Linux commad

Part Number: 66AK2H06

Hi all,

I found the DSP core is sometimes hung.

I want to know if it is possible to read DSP register and DSP program counter from Linux command.

Thank you.

  • Hi,

    You should be able to read all memory mapped registers. See Section Table8-1. Device Memory Map Summary for 66AK2Hxx.

    Best Regards,
    Yordan
  • Hi Yordan,

    This table doesn't show the exact register address.

    e.g. what is address of interrupt enable register (IER)?

    BTW, I use devmem2 to access value in the specific address. From table 8-1, it says 0x0001000000(physical 40-bit address) is C66x CorePac registers.

    Then I try this address in the Linux.

    root@k2hk:~# devmem2 0x0001000000

    /dev/mem opened.

    Memory mapped at address 0xb6fc7000.

    Read at address  0x01000000 (0xb6fc7000): 0x49200200

    I think  0xb6fc7000 is the physical address.

    (1) What is Linux command can map physical address?

    (2) how do I tell registers belong to which Cores? The 8-1 table doesn't show the difference of the register address among different cores.

    Thanks

  • Hi,

    Actually the 0xb6fc7000 is the address format after linux virtualization (linux kernel & user space work with virtual addresses).

    (2) how do I tell registers belong to which Cores? The 8-1 table doesn't show the difference of the register address among different cores.

    As far as I know this is not possible from user space. This mapping is done via linkers during compilation and is hidden from the user. You could use JTAG & CCS to connect to each core and view it's registers.

    Best Regards,
    Yordan