I design a p2020 board. Using CW while run on sram everything is ok. But if run on DDR3, always initialize fail, ccs prompt :error writing registers, ccs last error ELF is not in expect HALT mode. could this be a hardware problem? I connect ddr's RESET pin to GPIO1, and in the init_core.tcl, I added script and made GPIO1 high before enable mem interface, is that OK?
Yes, it looks like DDR3 problems. This can include different failure fources, problems with power supplies (GVDD, VTT, MVREF); mistakes with DDR3 schematics, PCB layout; mistakes in DDR3 initialization sequence. Everything should be checked.
"I connect ddr's RESET pin to GPIO1" sounds very doubtful. Note that DDR's RESET works under 1.5V supply, GPIO of the P2020 can output 3.3V level. So potentially DDR can be damaged!
Regards,
Bulat