1.5 Eclipse integrated development environment

Source: Internet
Author: User
Tags gtk jlink

1. Formatting Nandflash

Path paths take precedence over the previous

Arm-linux-gdb

?

#. BASHRC

?

# User specific aliases and functions

?

Alias rm= ' Rm-i '

Alias cp= ' Cp-i '

Alias mv= ' Mv-i '

?

# Source Global Definitions

if [-F/ETC/BASHRC]; Then

. /etc/bashrc

Fi

Export path= $PATH:/opt/arm-linux-gdb/bin

Export path= $PATH:/usr/local/arm/4.3.2/bin

2. Installing the Jlink Drive

[Email protected] arm-tools]# tar xvzf jlink_linux_v434a.tgz

[Email protected] arm-tools]# CD jlink_linux_v434a

[Email protected] jlink_linux_v434a]# cp-d libjlinkarm.so.*/usr/lib/-F

[email protected] jlink_linux_v434a]# CP 45-jlink.rules/etc/udev/rules.d/

[Email protected] jlink_linux_v434a]#./jlinkgdbserver

SEGGER j-link GDB Server v4.34a

?

JLinkARM.dll v4.34a (DLL compiled 31 2011 11:51:40)

?

Listening on TCP/IP port 2331

?

J-link connected

Firmware:j-link ARM V8 compiled Nov 14 2012 22:34:52

hardware:v8.00

S/N: 99991999

Feature (s): Rdi,flashdl,flashbp,jflash,gdbfull

?

J-link found 2 JTAG devices, total Irlen = 5

JTAG id:0x07b76f0f (ARM11)

The corresponding Development Board chip information

3 Installing Eclipse

[Email protected] ~]# Cd/home/s3-arm/part1/lesson1

[Email protected] lesson1]# CD arm-tools/

[[email protected] arm-tools]# ls

Arm-linux-gcc-4.3.2.tgz Dnw_usb.ko

arm-linux-gdb-7.5 eclipse-cpp-helios-sr2-linux-gtk.tar.gz

Arm-linux-gdb-7.5.tar.gz jlink_linux_v434a

DNW jlink_linux_v434a.tgz

[Email protected] arm-tools]# tar xzf eclipse-cpp-helios-sr2-linux-gtk.tar.gz

[[Email protected] arm-tools]# CD eclipse

[Email protected] eclipse]#./eclipse

Installing the Eclipse Plugin

Http://opensource.zylin.com/zylincdt

Create a new LED catalog in the LESSN5 and the LED. S???? Led.lds???? Makefile to/home/s3-arm/part1/lesson5/led in the middle of the exam

New Project

1. FileàNewàMakefile Project with Existing Code

Project Name

Led

Finsh

Led.elf appliction C + + selection

Initialza commands fill in

# Tiny6410_config

# Connect to the J-link gdb server

Target Remote localhost:2331

# Set JTAG speed to KHz

Monitor Endian Little

Monitor Speed 30

# Reset the target

Monitor Reset

Monitor Sleep 10

#

# CPU Core initialization (to is done by user)

#

# Set the processor mode

Monitor Reg CPSR = 0xd3

#config MMU

#flush V3/V4 Cache

Monitor CP15 7, 7, 0, 0 = 0x0

#/* Flush V4 TLB */

Monitor CP15 8, 7, 0, 0 = 0x0

#disable MMU Stuff and caches

Monitor CP15 1, 0, 0, 0 =0x1002

#Peri Port Setup

Monitor CP15, 2, 0, 4 = 0x70000013

#disable watchdog

Monitor MemU32 0x7e004000 = 0x00000000

Monitor Sleep 10

#disable Interrupt

Monitor MemU32 0x71200014 = 0x00000000

Monitor MemU32 0x71300014 = 0x00000000

Monitor MemU32 0x7120000c = 0x00000000

Monitor MemU32 0x7130000c = 0x00000000

Monitor MemU32 0x71200f00 = 0x00000000

Monitor MemU32 0x71300f00 = 0x00000000

#set Clock

Monitor MemU32 0x7e00f900 = 0x0000801e

Monitor MemU32 0x7e00f000 = 0x0000ffff

Monitor MemU32 0x7e00f004 = 0x0000ffff

Monitor MemU32 0x7e00f020 = 0x01043310

Monitor MemU32 0x7e00f00c = 0xc2150601

Monitor MemU32 0x7e00f010 = 0xc2150601

Monitor MemU32 0x7e00f024 = 0x00000003

Monitor MemU32 0x7e00f014 = 0x00200102

Monitor MemU32 0x7e00f018 = 0x00000000

Monitor MemU32 0x7e00f01c = 0x14000007

#config SDRAM

Monitor MemU32 0x7e00f120 = 0x00000008

Monitor MemU32 0x7e001004 = 0x00000004

Monitor MemU32 0x7e001010 = 0x0000040f

Monitor MemU32 0x7e001014 = 0x00000006

Monitor MemU32 0x7e001018 = 0x00000001

Monitor MemU32 0x7e00101c = 0x00000002

Monitor MemU32 0x7e001020 = 0x00000006

Monitor MemU32 0x7e001024 = 0x0000000a

Monitor MemU32 0x7e001028 = 0x0000000c

Monitor MemU32 0x7e00102c = 0x0000018f

Monitor MemU32 0x7e001030 = 0x0000000c

Monitor MemU32 0x7e001034 = 0x00000002

Monitor MemU32 0x7e001038 = 0x00000002

Monitor MemU32 0x7e00103c = 0x00000002

Monitor MemU32 0x7e001040 = 0x00000002

Monitor MemU32 0x7e001044 = 0x00000013

Monitor MemU32 0x7e001048 = 0x00000013

Monitor MemU32 0x7e00100c = 0x00010012

Monitor MemU32 0x7e00104c = 0x00000b45

Monitor MemU32 0x7e001200 = 0x000150f8

Monitor MemU32 0x7e001304 = 0x00000000

Monitor MemU32 0x7e001008 = 0x000c0000

Monitor MemU32 0x7e001008 = 0x00000000

Monitor MemU32 0x7e001008 = 0x00040000

Monitor MemU32 0x7e001008 = 0x00040000

Monitor MemU32 0x7e001008 = 0x000a0000

Monitor MemU32 0x7e001008 = 0x00080032

Monitor MemU32 0x7e001004 = 0x00000000

# Setup GDB for faster downloads

#set Remote Memory-write-packet-size 1024

Set remote memory-write-packet-size 4096

Set Remote Memory-write-packet-size fixed

Monitor Speed 12000

Break _start

Load

Note You must run Jlinkgdbserver during Jlink debugging

[Email protected] jlink_linux_v434a]#./jlinkgdbserver

1.5 Eclipse integrated development environment

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.