Sorry, you need to enable JavaScript to visit this website.

Build PETALINUX by Jtag digilent error

Unsolved
6 posts / 0 new
nguyenductoan
Junior(0)
Build PETALINUX by Jtag digilent error

When i boot petalinux on microzed board by Jtag digilent then there are errors:
"Memory write error at 0xF8900020. AP transaction timeout                                                                                                                                                                              
 invoked from within
"::tcf::eval -progress {apply {{msg} {puts $msg}}} {tcf_send_command tcfchan#0 Memory set siiiiB {ea{o{msg o{} A}}} {JTAG-jsn-JTAG-HS2-210249A0D0F2-4ba00477-0.0 4170186780 4 4 7 }}"
    (procedure "::tcf::send_command" line 4)
    invoked from within
"::tcf::send_command $chan Memory set "siiiiB" "ea{o{msg o{} A}}" [list $ctx $start_addr $size $nbytes $mode $bindata]"
    (procedure "mwr" line 133)
    invoked from within
"mwr -force 0XF890001C 0x00000001"
    (procedure "ps7_post_config_3_0" line 5)
    invoked from within
"ps7_post_config_3_0   "
    (procedure "ps7_post_config" line 12)
    invoked from within
"ps7_post_config"
    (file "/tmp/tmp.JWGp6TOuyk" line 5)"
Can you help me to fix it !!!!
I already install digilent cable driver and program on SDK is OK, but in petalinux-boot --jtag DOSENT work

JFoster
Moderator(66)
Can you boot successfully

Can you boot successfully from SD card?

--Josh

nguyenductoan
Junior(0)
yes, i did. I built on SD

yes, i did. I built on SD with same image is OK, i follow this instruction:
https://www.xilinx.com/support/answers/66943.html
It download to board success but when i checked in terminal get error while load image from kernel:
"AP transaction error, DAP status f0000021" not match ID, Should i change some thing in vivado design to init ps7_init correctly ?

JFoster
Moderator(66)
Hello,

Hello,

Are you able to run Hello World over Jtag?

What application are you running?

Are you using a JTAG HS3 cable from digilent?

--Josh

 

nguyenductoan
Junior(0)
well i have already program

well i have already program many projects or examples like Hello using Jtag on SDK tool (Jtag HS2), but when use petalinux software is impossible
Hopefully

nguyenductoan
Junior(0)
here is my log whhen run

here is my log whhen run source file zc702.tcl
xsdb% source zc702.tcl                                                                                             
INFO: Configuring the FPGA...
INFO: Downloading bitstream to the target.
100%    3MB   0.4MB/s  00:10                                                                                       
Info: ARM Cortex-A9 MPCore #0 (target 2) Stopped at 0xffffff28 (Suspended)                                         
mctrlval=30800100
INFO: Downloading ELF file to the target.
Downloading Program -- /data/soc_project/sys_3/pre-built/linux/images/zynq_fsbl.elf
    section, .text: 0x00000000 - 0x0000d12f
    section, .handoff: 0x0000d130 - 0x0000d17b
    section, .init: 0x0000d17c - 0x0000d193
    section, .fini: 0x0000d194 - 0x0000d1ab
    section, .rodata: 0x0000d1ac - 0x0000d4f7
    section, .data: 0x0000d4f8 - 0x000101df
    section, .eh_frame: 0x000101e0 - 0x000101e3
    section, .mmu_tbl: 0x00014000 - 0x00017fff
    section, .init_array: 0x00018000 - 0x00018003
    section, .fini_array: 0x00018004 - 0x00018007
    section, .rsa_ac: 0x00018008 - 0x0001903f
    section, .bss: 0x00019040 - 0x0001ae6f
    section, .heap: 0x0001ae70 - 0x0001ce6f
    section, .stack: 0xffff0000 - 0xffffd3ff
100%    0MB   0.1MB/s  00:01                                                                                       
Setting PC to Program Start Address 0x00000000
Successfully downloaded /data/soc_project/sys_3/pre-built/linux/images/zynq_fsbl.elf
Info: ARM Cortex-A9 MPCore #0 (target 2) Running                                                                   
Info: ARM Cortex-A9 MPCore #0 (target 2) Stopped at 0xd150 (Suspended)                                             
INFO: Downloading ELF file to the target.                                                                          
Downloading Program -- /data/soc_project/sys_3/pre-built/linux/images/u-boot.elf
    section, .text: 0x00400000 - 0x0044125f
    section, efi_runtime_text: 0x00441260 - 0x00441277
    section, .rodata: 0x00441278 - 0x00450eea
    section, .hash: 0x00450eec - 0x00450f17
    section, .dtb.init.rodata: 0x00450f20 - 0x0045441f
    section, .data: 0x00454420 - 0x00456477
    section, .got.plt: 0x00456478 - 0x00456483
    section, efi_runtime_data: 0x00456488 - 0x0045654f
    section, .u_boot_list: 0x00456550 - 0x004572f7
    section, .rel.dyn: 0x004572f8 - 0x00460a3f
    section, .bss_start: 0x004572f8 - 0x004572f7
    section, .bss: 0x004572f8 - 0x00496fdb
    section, .bss_end: 0x00496fdc - 0x00496fdb
100%    0MB   0.1MB/s  00:06                                                                                       
Setting PC to Program Start Address 0x00400000
Successfully downloaded /data/soc_project/sys_3/pre-built/linux/images/u-boot.elf
Info: ARM Cortex-A9 MPCore #0 (target 2) Running                                                                   
Info: ARM Cortex-A9 MPCore #0 (target 2) Stopped at 0x3ff94240 (Suspended)                                         
Info: ARM Cortex-A9 MPCore #0 (target 2) Stopped at 0x0 (Vector Catch)                                             
100%    0MB   0.1MB/s  00:00                                                                                       
Successfully downloaded /data/soc_project/sys_3/pre-built/linux/images/system.dtb
100%   55MB   0.1MB/s  14:44                                                                                       
Successfully downloaded /data/soc_project/sys_3/pre-built/linux/images/zImage
Info: ARM Cortex-A9 MPCore #0 (target 2) Running
###############################################
###############################################
here is uart terminal on board:
U-Boot 2016.07 (Mar 02 2018 - 19:10:28 +0700)

DRAM:  ECC disabled 1 GiB
MMC:   sdhci@e0100000: 0
SF: Detected S25FL128S_64K with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ZYNQ GEM: e000b000, phyaddr -1, interface rgmii-id
eth0: ethernet@e000b000
U-BOOT for

ethernet@e000b000 Waiting for PHY auto negotiation to complete....Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x00000000).

Available machine support:

ID (hex)        NAME
ffffffff        Generic DT based system
ffffffff        ARM-Versatile Express
ffffffff        Xilinx Zynq Platform

Please check your kernel config and/or bootloader.