ADS1.2+TX2440+Jlink test

Publisher:翠绿山水Latest update time:2020-06-16 Source: eefocusKeywords:ADS1  TX2440 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

First, the purpose


Learn how to debug bare metal programs on ARM. Currently, ARM supports three debugging methods: JTAG, Angel, and ARMulator (see below for details). Only JTAG is supported for bare metal program debugging. Since my laptop does not have a parallel port, I cannot use H-JTAG and can only use Jlink debugging.


1. Use JTAG to fully trust ARM internal resources


2. When using Angel, the target board must include a debugging monitor program


3. ARMulator does not require a target board, it is pure software simulation.


2. Hardware Environment


Development board: TX2440A


cpu:S3C2440              


nand flash:K9F2G08U0B (256M+8M)x8bit


norflash:EN29LV160AB (2M) x8bit


SDRAM:K4S561632 x 2 (32M) x 2


Emulator: JLINK V7


Serial cable: USB-RS232 adapter, supports 5V and 3.3V power supply


3. Circuit connection

1. Power supply: switching power supply 5V/2A


2. Serial port: TX2440's com0 port is connected to the computer's serial port


3. JLINK connection: use PC---USB cable----jlinkV7-----10pin adapter cable----TX2440 jtag interface


4. Software Environment

1. SEGGER J-Link V4.08. This is the host computer (driver) of JLINK.


2. ADS1.2. Code writing and simulation software (with AXD debugging tool)


5. Debugging process

1. First, power on the development board, regardless of the boot mode, nandFLASH or NorFLASH (actually tested, because the bare metal program is downloaded to the memory to run, it has nothing to do with nand flash or norflash)

2. Connect JLINK and development board


3. Open the Tianxiang routine test for tianxiangLEDLED.mcp, compile it, and click debug to enter the AXD mode after it is correct.


Configure configure Target…

      

Configure Target Steps: 1. Click "add" 2. Select the installation directory of JLINK: 3. Select "JLinkRDI.dll", the following interface will appear

4. At this time, select "configure" on the right, jump to the "JTAG" item, and set it as follows (4000K speed is relatively fast and stable):

Use the default values ​​for other items and select "OK". That's it! After completing the above steps, you will be redirected back to the AXD interface. Below the interface, the connection information will be displayed:

5. Load the image (LED.axf file generated previously): Now click the debug button on the AXD interface, and an exception will occur, as shown in the figure below:

From the above error message, we know that the program has run away. Because the program needs to be downloaded to the memory to run, the SDRAM needs to be correctly configured before running the program.

 

Solution: Before running AXD, run the SDRAM memory configuration script (i.e. 2440init.txt, which must be stored in an English path). Steps to add a configuration script:


1. Click options---configure Interface to enter the following interface.


2. Click Session File, select Run configuration script, and select the path of the configuration script 2440init.txt.

6. Successful operation


After the above settings are successful, click go, and the program pointer points to main(), indicating that Jlink can successfully debug the bare metal program. See the figure below for details.

Other usages are to be improved.

Keywords:ADS1  TX2440 Reference address:ADS1.2+TX2440+Jlink test

Previous article:Method for debugging u-boot under S3C2440 platform - code loading
Next article:JLINK+ADS+mini2440 configuration ///Configure J-Link to burn bootloader for mini2440

Recommended ReadingLatest update time:2024-11-15 14:08

CRAMFS file system construction and configuration (Micro2440 + linux 2.6.39)
1. CRAMFS file system configuration         Cramfs is a read-only compressed file system developed by Linus Torvalds, the founder of Linux. It is also based on the MTD driver.         In the cramfs file system, each page (4KB) is compressed separately and can be accessed randomly. Its compression ratio is as high as
[Microcontroller]
Implementing a Low-Cost Video Multiplexer for Video Switching Applications Using the ADA4853-2 Op Amp with Disable Function
Circuit Function and Advantages This circuit implements a low cost, low power video multiplexer using the ADA4853-2 dual high speed amplifier. This circuit allows the user to input a fourth video source to a three-channel video decoder such as the ADV7180 in a 40-lead LFCSP package. This saves both cost and valuable
[Analog Electronics]
Implementing a Low-Cost Video Multiplexer for Video Switching Applications Using the ADA4853-2 Op Amp with Disable Function
Some problems encountered in debugging I2C
void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c) {   GPIO_InitTypeDef GPIO_InitStruct;   if(hi2c- Instance==I2C2)   {   /* USER CODE BEGIN I2C2_MspInit 0 */   /* USER CODE END I2C2_MspInit 0 */        /**I2C2 GPIO Configuration         PB10     ------ I2C2_SCL     PB3     ------ I2C2_SDA      */     GPIO_InitStruct.P
[Microcontroller]
Continental Develops Global 5G Hybrid V2X Solution
Technology company Continental is developing a flexible 5G hybrid platform that enables both mobile network communication and fast and reliable direct data exchange. The first customer to use the platform will soon be able to fully experience the benefits of this solution. Connected vehicles are equipped with state-of
[Automotive Electronics]
Continental Develops Global 5G Hybrid V2X Solution
Samsung's next-generation Galaxy Watch Active 2 is exposed! Add ECG electrocardiogram function
Samsung's Galaxy Watch Active smartwatch, with its cost-effectiveness and stylish appearance, has become the first choice for everyone to enter the smart wearable device. However, Samsung has been intensively pursuing this successfully positioned product and is already working on the next generation Galaxy Watch Activ
[Embedded]
Samsung's next-generation Galaxy Watch Active 2 is exposed! Add ECG electrocardiogram function
I2C bus signal timing summary
Bus Idle State    When the SDA and SCL signal lines of the I2C bus are both at high level, it is defined as the idle state of the bus. At this time, the output stage field effect transistors of each device are in the cut-off state, that is, the bus is released, and the level is pulled up by the pull-up resistors of t
[Microcontroller]
STM8 Assembly Learning Notes 2: Development Environment
Written in front   As far as I know, there are two development platforms for STM8: STVD from ST and IAR for STM8. I haven't tried STVD. Anyway, IAR feels OK, and it has all the necessary functions, but the interface is not very user-friendly. I guess it's because of the low version. Since my eyes hurt from staring at
[Microcontroller]
STM8 Assembly Learning Notes 2: Development Environment
Exro launches new coil drive motor controller application to optimize charging and support V2G
Exro Technologies has launched a new application for its patented Coil Driver technology that enables electric vehicles to charge quickly and seamlessly, and feed power back to the grid , regardless of the power source or charger type . (Photo source: greencarcongress) Coil drives are the next generation of dynam
[Automotive Electronics]
Exro launches new coil drive motor controller application to optimize charging and support V2G
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号