UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor ilya.kochub
Visitor
65 Views
Registered: ‎10-11-2018

ZCU-102 Bare Metal JTAG Debug

We have two boards ZCU-102  - revision 1.1 both.

I use 2018.3 Vivado and SDK tools.

The project is simple 

project.png

Three applications were created on the same BSP base:

Hello World, Memory Tests and Peripheral Tests.   

We are using JTAG cable and UART cable,  SDK commands are:   

- Xilinx/Program FPGA

-  Debug as/Launch on Hardware (System Debugger) 

On one of ZCU-102 boards - all three tests are working properly.

On another ZCU-102 board only Memory Tests application is working properly.

The other two applications hang up before going to starting point of the application.

We can see  this on XSCT Console of SDK:

Info: Cortex-A53 #0 (target 9) Stopped at 0xffff0000 (Reset Catch)

Downloading Program -- C:/Work_Ilya/Viv18_3_prjcts/project_5/project_5.sdk/Perif11/Debug/Perif11.elf
section, .text: 0x00000000 - 0x0000fe93
section, .init: 0x0000fec0 - 0x0000fef3
section, .fini: 0x0000ff00 - 0x0000ff33
section, .note.gnu.build-id: 0x0000ff34 - 0x0000ff57
section, .rodata: 0x0000ff58 - 0x0001186f
section, .rodata1: 0x00011870 - 0x0001187f
section, .sdata2: 0x00011880 - 0x0001187f
section, .sbss2: 0x00011880 - 0x0001187f
section, .data: 0x00011880 - 0x00012f97
section, .data1: 0x00012f98 - 0x00012fbf
section, .ctors: 0x00012fc0 - 0x00012fbf
section, .dtors: 0x00012fc0 - 0x00012fbf
section, .eh_frame: 0x00012fc0 - 0x00012fc3
section, .mmu_tbl0: 0x00013000 - 0x0001300f
section, .mmu_tbl1: 0x00014000 - 0x00015fff
section, .mmu_tbl2: 0x00016000 - 0x00019fff
section, .preinit_array: 0x0001a000 - 0x00019fff
section, .init_array: 0x0001a000 - 0x0001a007
section, .fini_array: 0x0001a008 - 0x0001a047
section, .sdata: 0x0001a048 - 0x0001a07f
section, .sbss: 0x0001a080 - 0x0001a07f
section, .tdata: 0x0001a080 - 0x0001a07f
section, .tbss: 0x0001a080 - 0x0001a07f
section, .bss: 0x0001a080 - 0x0001b6bf
section, .heap: 0x0001b6c0 - 0x0001d6bf
section, .stack: 0x0001d6c0 - 0x000206bf

0% 0MB 0.0MB/s ??:?? ETA
100% 0MB 0.2MB/s 00:00

Setting PC to Program Start Address 0x00000000
Successfully downloaded C:/Work_Ilya/Viv18_3_prjcts/project_5/project_5.sdk/Perif11/Debug/Perif11.elf
Info: Cortex-A53 #0 (target 9) Running

It was "hang up" example , and the working one is - 

Info: Cortex-A53 #0 (target 9) Stopped at 0xffff0000 (Reset Catch)

Downloading Program -- C:/Work_Ilya/Viv18_3_prjcts/project_5/project_5.sdk/Perif11/Debug/Perif11.elf
section, .text: 0x00000000 - 0x0000fe93
section, .init: 0x0000fec0 - 0x0000fef3
section, .fini: 0x0000ff00 - 0x0000ff33
section, .note.gnu.build-id: 0x0000ff34 - 0x0000ff57
section, .rodata: 0x0000ff58 - 0x0001186f
section, .rodata1: 0x00011870 - 0x0001187f
section, .sdata2: 0x00011880 - 0x0001187f
section, .sbss2: 0x00011880 - 0x0001187f
section, .data: 0x00011880 - 0x00012f97
section, .data1: 0x00012f98 - 0x00012fbf
section, .ctors: 0x00012fc0 - 0x00012fbf
section, .dtors: 0x00012fc0 - 0x00012fbf
section, .eh_frame: 0x00012fc0 - 0x00012fc3
section, .mmu_tbl0: 0x00013000 - 0x0001300f
section, .mmu_tbl1: 0x00014000 - 0x00015fff
section, .mmu_tbl2: 0x00016000 - 0x00019fff
section, .preinit_array: 0x0001a000 - 0x00019fff
section, .init_array: 0x0001a000 - 0x0001a007
section, .fini_array: 0x0001a008 - 0x0001a047
section, .sdata: 0x0001a048 - 0x0001a07f
section, .sbss: 0x0001a080 - 0x0001a07f
section, .tdata: 0x0001a080 - 0x0001a07f
section, .tbss: 0x0001a080 - 0x0001a07f
section, .bss: 0x0001a080 - 0x0001b6bf
section, .heap: 0x0001b6c0 - 0x0001d6bf
section, .stack: 0x0001d6c0 - 0x000206bf

0% 0MB 0.0MB/s ??:?? ETA
100% 0MB 0.2MB/s 00:00

Setting PC to Program Start Address 0x00000000
Successfully downloaded C:/Work_Ilya/Viv18_3_prjcts/project_5/project_5.sdk/Perif11/Debug/Perif11.elf
Info: Cortex-A53 #0 (target 9) Running
Info: Cortex-A53 #0 (target 9) Stopped at 0xdb0 (Breakpoint)
main() at ../src/testperiph.c: 80
80: Xil_ICacheEnable();

 As you can see for this ZCU-102 board - the address

section, .text: 0x00000000 may be the problem,

and for the first one - this address is not a problem at all.

What does it mean - to change the second board for the working one? 

 

 

 

0 Kudos
2 Replies
Visitor ilya.kochub
Visitor
59 Views
Registered: ‎10-11-2018

Re: ZCU-102 Bare Metal JTAG Debug

This is  from XSCT Console of SDK - 

Memory Tests application is working properly on "problem" board:

 

Info: Cortex-A53 #0 (target 9) Stopped at 0xffff0000 (Reset Catch)

Downloading Program -- C:/Work_Ilya/Viv18_3_prjcts/project_5/project_5.sdk/Test11/Debug/Test11.elf
section, .text: 0xfffc0000 - 0xfffc3053
section, .init: 0xfffc3080 - 0xfffc30b3
section, .fini: 0xfffc30c0 - 0xfffc30f3
section, .note.gnu.build-id: 0xfffc30f4 - 0xfffc3117
section, .rodata: 0xfffc3118 - 0xfffc34b7
section, .rodata1: 0xfffc34b8 - 0xfffc34bf
section, .sdata2: 0xfffc34c0 - 0xfffc34bf
section, .sbss2: 0xfffc34c0 - 0xfffc34bf
section, .data: 0xfffc34c0 - 0xfffc3df7
section, .data1: 0xfffc3df8 - 0xfffc3dff
section, .ctors: 0xfffc3e00 - 0xfffc3dff
section, .dtors: 0xfffc3e00 - 0xfffc3dff
section, .eh_frame: 0xfffc3e00 - 0xfffc3e03
section, .mmu_tbl0: 0xfffc4000 - 0xfffc400f
section, .mmu_tbl1: 0xfffc5000 - 0xfffc6fff
section, .mmu_tbl2: 0xfffc7000 - 0xfffcafff
section, .preinit_array: 0xfffcb000 - 0xfffcafff
section, .init_array: 0xfffcb000 - 0xfffcb007
section, .fini_array: 0xfffcb008 - 0xfffcb047
section, .sdata: 0xfffcb048 - 0xfffcb07f
section, .sbss: 0xfffcb080 - 0xfffcb07f
section, .tdata: 0xfffcb080 - 0xfffcb07f
section, .tbss: 0xfffcb080 - 0xfffcb07f
section, .bss: 0xfffcb080 - 0xfffcb0ff
section, .heap: 0xfffcb100 - 0xfffcb0ff
section, .stack: 0xfffcb100 - 0xfffce0ff

0% 0MB 0.0MB/s ??:?? ETA
100% 0MB 0.2MB/s 00:00

Setting PC to Program Start Address 0xfffc0000
Successfully downloaded C:/Work_Ilya/Viv18_3_prjcts/project_5/project_5.sdk/Test11/Debug/Test11.elf
Info: Cortex-A53 #0 (target 9) Running
Info: Cortex-A53 #0 (target 9) Stopped at 0xfffc0f44 (Breakpoint)
main() at ../src/memorytest.c: 94
94: init_platform();

 

The address is not 0x00000000 - 

section, .text: 0xfffc0000

 

0 Kudos
Visitor ilya.kochub
Visitor
21 Views
Registered: ‎10-11-2018

Re: ZCU-102 Bare Metal JTAG Debug

If I change Linker script of "Hello World" application from using DDR to using OCM (0xfffc0000 ... )  - the application is running well.

 "DRAM Diagnostics Test" application shows menu and running well (it's using OCM), but it's stuck/failed on DDR tests.

The meaning is - DDR is not working properly. 

0 Kudos