Hello,
I am facing a problem on NXP LPC1788 with reading content of the EMAC registers.
Any attempt to read the content fails with WARNING: Failed to read cacheable memory @ address ADDRESS(e.g.0x20084000, EMAC1).
My configuration: LPC1788, Ubuntu 12.04, JLinkGDBServer v 4.74 command line "-device LPC1788 -vd -log status.log", Eclipse Juno CDT C/C++, OpenJDK, J-Link
Firmware: J-Link ARM V8 compiled Jul 17 2013 11:24:15, Hardware: V8.00
My observations:
Reading by using JLinkExe, mem32 0x20084000, 1 - success
Reading by using JLinkExe, mem32 0x20084000, 256 - fails (Could not read memory.)
From the JLinkGDB log, I can see attempt to read 256 items even if the request requires only 4.
02-00-00020007-00AA: TB2EBAB40 019:994 JLINK_ReadCodeMem(0x20084000, 0x0004 Bytes, ...) -- CPU_ReadMem(256 bytes @ 0x20084000) -- Data: 00 00 01 10 returns 0xFFFFFFFF (0013ms, 2981ms total)
03-00-00020007-003D: WARNING: Failed to read cacheable memory @ address 0x20084000
03-00-00020007-0035: Read 4 bytes @ address 0x20084000 (Data = 0x10010000)
To the Eclipse is returned - failed.
The question is: Can I set the read size to respect the request?
Best
Martin