当前位置:网站首页>Armv8 (coretex-a53) debugging based on openocd and ft2232h
Armv8 (coretex-a53) debugging based on openocd and ft2232h
2022-06-30 07:37:00 【Snow fish】
I am a Snow fish , a FPGA lovers , The research direction is FPGA Architecture exploration and SOC Design .
Official account , Pull you in “IC Design communication group ”.
List of articles
openocd Full name Open On-ChipDebugger, It is a free and open debugging tool and programming tool on chip , It has been released to 0.11.0 edition , At present, most mainstream debuggers support , You can see Open On-Chip Debugger:OpenOCD User’s Guide.
One 、Openocd The configuration process
version:0.11.0 link

- Windows Lower installation OpenOCD
Download address :https://github.com/xpack-dev-tools/openocd-xpack/releases

This is third-party compiled software , After decompression, configure the environment variables .

- Prepare the configuration file
FT2232H Debuger AdapterThe configuration file , Generally placed on..\scripts\interface\ftdi\Catalog- Target board profile , Generally placed on
..\scripts\target\Catalog .
During actual debugging, it is necessary to refer to the existing
Debuger AdapterAnd the target board configuration file to write the configuration file for the company board and debugger .
- Script using Openocd Connect to the target chip for testing
After debugging , Writable makefile file , takedownloadSet as pseudo target , After writing , You can entermake downloadOne click download program .
Two 、 FTDI FT2232H Connect the test
Hardware :
- The debugger : Xinlai HUMMINGBIRD Debugger Kit V2

2.1 UsbDriverTool install
openocd By calling libusb Drive connection and control FT2232H Of , So install the appropriate driver for the hardware device . Through here UsbDriverTool Tool execution , Official website installation website :https://visualgdb.com/UsbDriverTool/

Then decompress it , I unzipped it directly to the desktop .

double-click UsbDriverTool.exe,

There are two USB Serial Converter A/B, Is a debugger connection PC Automatically recognized after , Change this USB Serial Converter A The drive of the equipment is libusb:

After successful installation , The corresponding driver name will appear after the device name

2.2 Connect ft2232h
Get into \xpack-openocd-0.11.0-3\bin Under the path , newly build ft2232h.cfg, Enter the following code :
adapter driver ftdi
# VID and PID
ftdi vid_pid 0x0403 0x6010
transport select jtag
# TCK frequency
adapter speed 1000
# ftdi_layout_init [data] [direction]
# Appoint FTDI GPIO The initial data and direction of ,16bit Data width .
# Parameters data in 1 High level ,0 Indicates low level , And the parameters direction in 1 Indicative output ,0 Indicates input ( Note that this is different from the normal setting )
ftdi layout_init 0x0018 0x05fb
# This means: ADBUS(bit7~bit0)
# Low output data = 0x18 // 0001 1000
# Low direction = 0xfb // 1111 1011
# High output data = 0x00 // 0000 1000
# High direction = 0x05 // 0000 0101
Then open under this folder cmd , Input openocd -f ft2232h.cfg:

You can see that you have successfully connected to the debugger , However, I have not connected the target board nor defined it target, So there are some warnings .
3、 ... and 、 Connect Coretx-A53
Hardware :
- Processor core :Coretx-A53
Waiting for DuPont line , Now I have no DuPont line , There's no way to connect , I will update it after the test !
边栏推荐
- Minecraft 1.16.5模组开发(五十) 书籍词典 (Guide Book)
- TC397 QSPI(CPU)
- Installation software operation manual (continuous update)
- The simulation interface does not declare an exception and throws an exception
- C language operators
- Similarities and differences of differential signal, common mode signal and single ended signal (2022.2.14)
- Network security - single arm routing, DHCP relay and ICMP Protocol
- Cypress nor flash driver - s29glxxxs
- Halcon: read the camera and binary it
- C language implementation of chain stack (without leading node)
猜你喜欢

期末複習-PHP學習筆記3-PHP流程控制語句

String application -- string violent matching (implemented in C language)

Cubemx completes STM32F103 dual serial port 485 transceiver transmission

Examen final - notes d'apprentissage PHP 3 - Déclaration de contrôle du processus PHP

Efga design open source framework openlane series (I) development environment construction

Processes, jobs, and services

Adjacency matrix representation of weighted undirected graph (implemented in C language)

Final review -php learning notes 3-php process control statement

视频播放器(一):流程

Binary tree related operations (based on recursion, implemented in C language)
随机推荐
02 - bare metal and RTOS development modes: five development modes of bare metal and the introduction of RTOS
Final review -php learning notes 3-php process control statement
03 - programming framework: Division of application layer, middle layer and driver layer in bare metal programming
Final review -php learning notes 6- string processing
4diac getting started example
Cadence innovus physical implementation series (I) Lab 1 preliminary innovus
DS1302 digital tube clock
Basic operation command
STM32 infrared communication 2
Efga design open source framework fabulous series (I) establishment of development environment
Solve the linear equation of a specified point and a specified direction
Basic knowledge of system software development
Variable storage unit and pointer
Multi whale capital: report on China's education intelligent hardware industry in 2022
Final review -php learning notes 9-php session control
nRF52832 GPIO LED
Network security and data in 2021: collection of new compliance review articles (215 pages)
实验一、综合实验【Process on】
Spring Festival inventory of Internet giants in 2022
Network security - packet capture and IP packet header analysis