jie.zeng wrote:
> If we want to access a register in the board, we must pass the base
> address which tell cpu where the register reside and a proper
> offset(depends on bus-width), right? If the offset is not fix the
> datasheet, how the cpu can access that reg correctly?
>
> In my opinion, the base is 0x10000000 in this case. The offset(in fact
> its on-chip addr) from datasheet(flash) are 0x2aa(word) and 0x555(byte).
> So CPU write memory should use the address 0x100002AA or 0x10000555. But
> now cpu use a wrong address which is 0x10000554. 
>
> The result is that cannot get right ManufacturerID and probe failure.
>   
You still have not described (or I missed it) your flash setup: what 
kind of flash, mode (8/16 bit), bus width of the CPU, and how it is all 
connected together.
Also, what flash bank configuration are you using in your openocd config?

Without that information, it is impossible to tell what addresses are 
needed to access the flash.

cu
Michael

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to