DSP build helloworld project-Bios System

Source: Internet
Author: User
Tags configuration settings

 

Platform dm6437, seed Simulator

Objective: to implement the hello World Program in the BIOS system

 

1. Create a hello_bios Project

 

2. Create a TCF configuration file and save the concurrent "hello_bios" as the file name, for example:

 

 

3. Right-click "Inset log" and name it "trace ". Save the settings as follows:

 

 

 

4. Add a file to the project, "hello_bios.tcf" and "hello_bioscfg.cmd ". (When you add these two files, some files will be automatically added)

 

 

5. add your own main source file hello_bios.c.

The content of hello_bios.c is as follows:

#include <std.h> #include <log.h> #include "hello_bioscfg.h"/* Objects created by the Configuration Tool */ extern LOG_Obj trace; /* ======== main ======== */ Void main() { LOG_printf(&trace, "hello world!"); }

 

 

6. compile.

Error message:

[Hello_bioscfg.s62] "C: \ ccstudio_v3.3 \ C6000 \ cgtools \ bin \ cl6x"-g-pdsw225-fr "D: /All/software/hello_bios/debug "-d" _ debug "-mv6400-@" debug. lkf "" hello_bioscfg.s62"

"Hello_bioscfg.s62", Error! At line 365: [******* user error ******-]

Project Build options do not match global configuration settings.

Compiler options do not specify-mv64 +, but configuration is

C64x +

. Emsg "Project Build options do not match global configuration settings. compiler options do not specify-mv64 +, but configuration is for C64x +"

 

"Hello_bioscfg.s62", Error! At EOF: [e0300] the following symbols are

Undefined:

 

Solution:

Project à build option à target vertion à Replace "c64xx" with "C64x +"

 

 

 

7. It took a long time. Download to the Board to run, the program can run, but it cannot be hello World.

It turns out that Hello World is not displayed in stdout, but printed in DSP/BIOS à message log.

So far, the great Hello world has finally appeared.

 

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.