eZdsp5502 Tutorial (a) new construction

eZdsp5502 Tutorial (a) new construction

First, the preparatory work

Photos on the board:

The required environment:

IDE: Code Composer Studio 9.2

BSL (Board Support Library): Download http://support.spectrumdigital.com/boards/ezdsp5502/revc/

BSL extract to a directory, then this directory are replaced with ezdsp5502_bsl.

Second, new construction

Board connected to the computer, open the CCS, select FIle-> New-> CCS Project.

Shown below, and target selection connect, and set the project name. If the selected target Ends suggesting no correlation compiler, need to follow the instructions in the downloaded complier C5500's explorer ccs, after installation can be seen here compiler version 4.4. 1.

 

New finished project can see the contents of the default main.c:

Then click on the view-> target configuration, select the figure, click save, and then test connection. If the last prompts successful, it indicates that the board is connected PC successfully.

Copy to bsl in a .cmd next to your project directory, there will be copied ezdsp5502_bsl / tests / led over. .Cmd file is what specific role here is as simple to understand as you write a program to allocate memory (not necessarily the current understanding Yes, and then discussed in detail in the following tutorial) then right project -.> properties-> general, select the file you copied to cmd in the project directory.

Import packages: In propertie-> build-> C5500 compiler-> include options, the introduction ezdsp5502_bsl / C55xxCSL / include and ezdsp5502_bsl / include ccs and root /ccs/tools/compiler/c5500_4.4.1/include, following FIG.

在propertie->build->C5500 linker->file search path里,添加3个lib,ezdsp5502_bsl/lib/ezdsp5502bsl.lib和ezdsp5502_bsl/lib/csl5502x.lib和ccs根目录/ccs/tools/compiler/c5500_4.4.1/lib/rts55x.lib,如下图所示.

至此新建一个项目的前期准备就完全做完了.

三、hello world测试

在main.c里,添加如下代码:

#include "stdio.h"
#include "ezdsp5502.h"

/**
 * main.c
 */
int main(void)
{
    EZDSP5502_init( );

    printf("my test.\n");

    return 0;
}

build,通过.

代码表明ezdsp5502的bsl已经能用了.

debug:

点击resume,看到console里出现printf的代码,表明hello world测试成功了.

 

 

 

Guess you like

Origin www.cnblogs.com/guangnianxd/p/11886160.html