Now i use hpi to access the MEMORY of DSP 6486 sucessfully.
And I get the mapping address of register in the memory space of dsp.
But i couldn't get the correct value of the register.(everything is zero)
So i wonder that whether it is forbidden to access the register via HPI interface.
HPI interface should be able to access the registers as long as the register HOSTPRIV and PRIVPERM are settting correctly. (the default values of these registers allow HPI to access registers). Which register you are accessing?
PRIVPERM are settting correctly. (the default values of these registers allow HPI to access registers). Which register you are accessing?
Thanks for your information. Now values of registers HOSTPRIV and PRIVPERM are as following:
HOSTPRIV (0x02A8040C)PRIVPERM(0x02A8041C)
HOSTPRIV = 0xFFFFFFFF, PRIVPERM = 0x00000000
My Dsp type is C6486.
Thanks for your further help :)
the values are good. What are the registers HPI was accessing?
I searched hundreds of registers but none were correct.
for example (copy from data manual)
CPU Megamodule Bandwidth Management RegistersHEX ADDRESS RANGE ACRONYM REGISTER NAME0182 0200 EMCCPUARBE EMC CPU Arbitration Control Register0182 0204 EMCIDMAARBE EMC IDMA Arbitration Control Register0182 0208 EMCSDMAARBE EMC Slave DMA Arbitration Control Register0182 020C EMCMDMAARBE EMC Master DMA Arbitration Control Resgiter0182 0210 - 0182 02FC - Reserved0184 1000 L2DCPUARBU L2D CPU Arbitration Control Register0184 1004 L2DIDMAARBU L2D IDMA Arbitration Control Register0184 1008 L2DSDMAARBU L2D Slave DMA Arbitration Control Register0184 100C L2DUCARBU L2D User Coherence Arbitration Control Resgiter0184 1010 - 0184 103C - Reserved0184 1040 L1DCPUARBD L1D CPU Arbitration Control Register0184 1044 L1DIDMAARBD L1D IDMA Arbitration Control Register0184 1048 L1DSDMAARBD L1D Slave DMA Arbitration Control Register0184 104C L1DUCARBD L1D User Coherence Arbitration Control Resgiter
And
Table 7-5. EDMA3 RegistersHEX ADDRESS RANGE ACRONYM REGISTER NAME02A0 0000 PID Peripheral ID Register02A0 0004 CCCFG EDMA3CC Configuration Register02A0 0008 - 02A0 00FC - Reserved02A0 0100 DCHMAP0 EDMA Channel 0 Mapping to PaRAM02A0 0104 DCHMAP1 EDMA Channel 1 Mapping to PaRAM02A0 0108 DCHMAP2 EDMA Channel 2 Mapping to PaRAM02A0 010C DCHMAP3 EDMA Channel 3 Mapping to PaRAM02A0 0110 DCHMAP4 EDMA Channel 4 Mapping to PaRAM02A0 0114 DCHMAP5 EDMA Channel 5 Mapping to PaRAM02A0 0118 DCHMAP6 EDMA Channel 6 Mapping to PaRAM
I am told by other guys that unfortunately Hpi couldn't access the DDR registers in C64+ , I want to get the details about other registers.
through HPI, you can not access the following address range:
01800000~ 01BE0000, they are for megamodule's internal register. However, you can access the edma registers through HPI, also no problem for DDR. Please do the following: reset your board and restart. Just use HPI to read edma registers (not read any megamodule internal registers) also please use HPI in non-incremental mode.
01BE0000,
they are for megamodule's internal register.
However, you can access the edma registers through HPI, also no problem for DDR.
Please do the following:
reset your board and restart.
Just use HPI to read edma registers (not read any megamodule internal registers)
also please use HPI in non-incremental mode.