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.