I want to use the DS-5 and DStream to debug the u-boot, so I write a memory initialization sequence into file cmimx6q.ds, which is a list of commands like:
mem set 0x020e05a8 32 0x00000028
and I specify this file as the input of Run target initialization debugger script from Debugger tab in Debug configuration Option . The attach png shows it.
And the problem cames:
Once I click debug , the error occurs, and the full log is following ( I chang the color of the error hint sentence) :
Stopping running target Freescale - i.MX6 Solo (Generic) on USB:001870 on connection Connected to running target Freescale - i.MX6 Solo (Generic) on USB:001870 Execution stopped at: S:0xC00AF58C S:0xC00AF58C MOV pc,lr source /v "/home/hexiongjun/SmartAuto/uboot-imx/cmimx6q.ds" +mem set 0x020e05a8 32 0x00000028 Target Message: Memory access caused precise abort. Debug Precise Abort Registers : DFSR = 0x00000805, DFAR = 0x020E05A8 ERROR(TAD11-NAL18): # in /home/hexiongjun/SmartAuto/uboot-imx/cmimx6q.ds:1 while executing: mem set 0x020e05a8 32 0x00000028 ! Failed to write 4 bytes to address S:0x020E05A8 ! Bus error on memory operation. ERROR(CMD656): The script /home/hexiongjun/SmartAuto/uboot-imx/cmimx6q.ds failed to complete due to an error during execution of the script loadfile "/home/hexiongjun/SmartAuto/uboot-imx/u-boot" ERROR(CMD16-TAD11-NAL18): ! Failed to load "u-boot" ! Failed to write 179,688 bytes to address S:0x10000000 ! Bus error on memory operation. Target Message: Memory access caused precise abort. Debug Precise Abort Registers : DFSR = 0x00000024, DFAR = 0x00007000 Target Message: Could not determine target state
So I submit the command reset , it success:
reset Target has been reset Execution stopped at: S:0xC001FDB8 S:0xC001FDB8 TST r3,#0x4000
then I submit command mem set 0x020e05a8 32 0x00000028 , it faled to write :
mem set 0x020e05a8 32 0x00000028 Target Message: Memory access caused precise abort. Debug Precise Abort Registers : DFSR = 0x00000805, DFAR = 0x020E05A8 ERROR(TAD11-NAL18): ! Failed to write 4 bytes to address S:0x020E05A8 ! Bus error on memory operation.
It seems the debug can't access the register 0x020e05a8 , I'm confused.
I used to debug arm by J-Link, DStream is the first time. Can anyone help me ? Thanks in advance.