From: plenkow <pl...@on...> - 2014-06-09 08:20:34
|
Hi! I am using openocd version 0.8.0 with JTAG interface based on FT232H. My target is a custom SoC with Cortex R4-F core. I am able to successfully access core through DAP/APB, but accessing to memory through CPU does not work well: memory content is following: 0x05000000: 0x12345678 0x05000004: 0xdeadbeef First access at 0x05000000 returns proper value: mdw 0x05000000 0x12345678 but next always returns value form address 0x05000000 + 4 mdw 0x05000000 0xdeadbeef Tracing the logs I found the source for used function cortex_a8_read_apb_ab_memory(). Reading Cortex R4-F TRM I found that implementation of this function is different than example 11-25 from TRM. In example the last read word is read using different way, by reading DCC (step 10). My question are: Iis it a bug or just some trick? Does anyone test this code on Cortex R-4F? Second problem which I see is lack of 16 bit accesses. In my case it generates a problems during Flash access using CFI. Each access is made by 32 bit access which causes two 16 bit accesses to Flash breaking CFI sequence during program/erase. Br, Paweł Lenkow |