am335x using Starterware to write bare-metal programs under Ubuntu and debug with Jlink in CCS

Source: Internet
Author: User
Tags jlink

Starterware on am335x on the burn run

Steps:
1, download installs the Starterware, our group buys the SK to need 02.00.00.07 version. Recent external network access slow, I upload to the forum.
2, find a MINISD card, do not need very large, the system only a few m just.
3, if you follow the default path installation, please go to C:\ti\AM335X_StarterWare_02_00_00_07\tools\sd_format below to perform Ti_sdcard_boot_utility_v1_0.exe

4, in the path C:\ti\AM335X_StarterWare_02_00_00_07\binary\armv7a\cgt_ccs\am335x\evmskAM335x\bootloader choose good mlo
5. Select app in Path C:\ti\AM335X_StarterWare_02_00_00_07\binary\armv7a\cgt_ccs\am335x\evmskAM335x\demo
6. Execute, format and copy.
7, put the MINI-SD on the skit run can


Starterware Why things, simply say is like the STM32 library function.

Starterware for am335x Latest: http://software-dl.ti.com/dsps/dsps_public_sw/am_bu/starterware/latest/index_FDS.html

Register ti account Download

Linux Installer Starterware for am335x 35416K
then download a patch for beaglebone-black on the same page

Beaglebone Black Patch Beaglebone Support Files 84K

In particular, if you are using 64-bit Linux, install the Ia32-libs

Under the/home/<user>/directory:

Modify Am335x_starterware_02_00_01_01_setup.bin to executable, chmod +x am335x_starterware_02_00_01_01_setup.bin

then enter./am335x_starterware_02_00_01_01_setup.bin for installation

Once installed, put the downloaded BBB patch file StarterWare_BBB_support.tar.gz under your Startware installation directory

Unzip Tar-xvzf StarterWare_BBB_support.tar.gz, so the patch is ready, specifically modify what files, see the installation directory under the doc file bbb_support_manual

Download the official recommended compiler for: gcc-arm-none-eabi-4_7-2012q4-20121208-linux.tar.bz2

gcc-arm-none-eabi-4_7-2012q4-20121208-linux.tar.bz2

Look at personal hobbies, I put the compiler under the Starterware installation directory, decompression TAR-XJVF gcc-arm-none-eabi-4_7-2012q4-20121208-linux.tar.bz2

It is not recommended to add the compiler directly to the/etc/environment file, so that there are too many compilers in the path, which can cause conflicts by compiling the kernel later.

Ctrl + Alt + t opens the terminal and uses export to temporarily add the compiler and Lib to PATH and Lib_path

Export path= $PATH:/home/colordrv/am335x_starterware_02_00_01_01/gcc-arm-none-eabi-4_7-2012q4/bin/

Export Lib_path=/home/colordrv/am335x_starterware_02_00_01_01/gcc-arm-none-eabi-4_7-2012q4

Switch directories to ~/am335x_starterware_02_00_01_01/build/armv7a/gcc/am335x/beaglebone/gpio/using a CD

Here is the build directory for the Gpio rollover led example, with the following makefile

Enter the make command, and the Generate bin file will be placed in the ~/am335x_starterware_02_00_01_01/binary/armv7a/gcc/am335x/beaglebone/gpio/directory

Debug and Realse two versions by default


Download test steps

Find a microSD card, the capacity is not too small, my use of 2G, the official HPUSBFW.EXE format of the SD card

Then copy the ~/am335x_starterware_02_00_01_01/binary/armv7a/gcc/am335x/beaglebone/bootloader/release_mmcsd/mlo to the SD card root directory

Rename the bin file of the LED experiment you just generated to the app (note that no extension) is also copied to the SD card root directory

Insert SD to BBB, press and hold the boot button, give the BBB a spot, the LED flashes, and the bare metal environment builds OK.


Of course you can also use TI's CCS IDE.

If you are using CCS for starterware development, choose TI's arm compiler when you install CCS.

We can pass the File->import. Import eisting CCS Project

Project path in the ~/am335x_starterware_02_00_01_01/build/armv7a/cgt_ccs directory, the project file is hidden, and under Ubuntu, press Ctrl+h to see hidden files

For example, I import the above-mentioned Gpioproject

Because the Open CCS project has debug and Realse two versions by default, the default debug version is the active state

If the direct build project will go wrong because the build has a Lib file link, and the Lib under Starterware debug needs to build itself.

So we need to import platform drivers and so on (preferably all lib with Dedug mode build again) Lib project, Sir into the Lib file under Debug.

This will then build the debug version of the demo project in front of you.

The Realse version of the default already has Lib file, so do not need this boring step.


Use Jlink to debug beaglebone-black under CCS Starware

can refer to

Jlink Plugin to install CCS

Http://processors.wiki.ti.com/index.php/J-Link_Emulator_Support#Installation

As for how to configure, you can look at the following page

Http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/t/21227.aspx

am335x using Starterware to write bare-metal programs under Ubuntu and debug with Jlink in CCS

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.