diff --git a/.gitignore b/.gitignore index 5d72ce3..8f4c3bc 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ doc/*.log doc/*.out doc/*.aux doc/*.toc +doc/*.zip doc/auto packages/vsky/libdsp/package packages/vsky/libdsp/package.mak diff --git a/README.txt b/README.txt index 78b419d..4458fde 100644 --- a/README.txt +++ b/README.txt @@ -5,7 +5,7 @@ build: xdc -Pr ./packages windows: -set XDCCGROOT=d:/ti/ccsv5/tools/compiler/c6000_7.4.1 +set XDCCGROOT=d:\ti\ccsv5\tools\compiler\c6000_7.4.24 set path=d:\ti\cg_xml\bin;d:\ti\ccsv5\tools\compiler\c6000_7.4.1\bin;%path% set XDCPATH=D:\ti\bios_6_34_02_18\packages;D:\ti\ndk_2_21_02_43\packages;D:\ti\bios_6_34_02_18\packages;D:\ti\pdk_C6678_1_1_2_6\packages; diff --git a/doc/dspkit.pdf b/doc/dspkit.pdf index e1cc519..385b7c2 100644 Binary files a/doc/dspkit.pdf and b/doc/dspkit.pdf differ diff --git a/doc/dspkit.tex b/doc/dspkit.tex index 450c581..1da61a3 100644 --- a/doc/dspkit.tex +++ b/doc/dspkit.tex @@ -53,22 +53,56 @@ citecolor=blue,anchorcolor=black, pdfauthor={surenyi82@163.com}, urlcolor=black] \def\verbatim{\small\@verbatim \frenchspacing\@vobeyspaces \@xverbatim} \makeatother +%\setmonofont{Fira Code} +\setmonofont{Courier New} %\tcbset{listing engine=listings} -\title{dspkit 库开发指导} -\author{} +\title{\Huge dspkit 库开发指导} +\author{surenyi82@qq.com} \date{\today} \begin{document} + \maketitle +\newpage + \tableofcontents \newpage 为了简化~DSP 的开发,我们提供一个库(dspkit)来帮助我们快速调试新的硬件设计和提供给用户一套更简易的应用程序接口,供客户的使用。 \section{开发环境准备} + +安装 CCS 5.3 和 mcsdk 2.1.2.6 。 + +在~windows 平台下需要安装~windows 的git软件(\url{https://git-scm.com/downloads})。 linux 环境下,一般系统自带~git 工具。 + 从服务器取下代码: \verb+git clone git@192.168.0.201:/backup/git/repositories/c6000/libdsp+ +\subsection{windows下编译} +在 windows 下需要设置两个环境变量 \texttt{XDCCGROOT} 和 \texttt{XDCPATH} 。其中: + +\noindent \texttt{XDCCGROOT}: 指向 C6000 编译器的安装路径, 例如:\texttt{d:\textbackslash ti\textbackslash ccsv5\textbackslash tools\textbackslash compiler\textbackslash c6000\_7.4.24} + +\noindent \texttt{XDCPATH}: 包含安装的 bios, pdk, ndk 的packages路径,例如: \texttt{d:\textbackslash ti\textbackslash bios\_6\_34\_02\_18\textbackslash packages;\\ +d:\textbackslash ti\textbackslash ndk\_2\_21\_02\_43\textbackslash packages;d:\textbackslash ti\textbackslash pdk\_C6678\_1\_1\_2\_6\textbackslash packages;} + +设置好环境变量以后,打开 git 的 bash 窗口, cd 到 libdsp/packages/vsky/libdsp 目录,执行下面命令编译: + +\$ \texttt{xdc all} + +要重新编译执行下面命令: + +\$ \texttt{xdc clean} + +\$ \texttt{xdc all} + +生成发布包: + +\$ \texttt{xdc release} + +\subsection{linux 下编译} +% attach source file \embeddedfile[rename to src.zip, then extract it.]{srcobj}[src.zip.pdf]{dspkit.zip} \end{document} %%% Local Variables: