*** 作方法:
01如果存储在电脑上的文件出现文件夹被隐藏且隐藏属性为灰色无法直接修改属性来恢复,我们怎么去解决呢。
02在我们的电脑上找到“计算机”,并打开进入计算机页面。
03在计算机页面中,我们可以看到该页面上方有诸多的功能选项,比如系统属性、卸载或更改程序、打开控制面板等等,在中间区域,我们可以看到硬盘分区,有四个硬盘区域等。
04假如被隐藏的文件储存在电脑E盘中,我们则选择点击E盘,进入E盘页面中并找到被隐藏的文件。
05将被隐藏的文件夹或文件的中文命名改为英文会字母代替,因为我们在输入的修改程序中只能输入字母而不能输成中文。比如:将命名为“材料”的隐藏文件夹用“abc”命名代替。
06接着,我们点击电脑“开始”菜单,在“搜索程序和文件”栏中输入cmd,按回车键。
07这时,电脑页面出现黑色的程序框,我们在程序框中输入文件夹所在的盘符,比如E盘,就输入e:,按回车键。
08此时,在刚才输入的内容下方会d出的下一个程序,我们输入attrib-s-r-habc,再按下回车键即可完成修改隐藏属性为灰色的 *** 作。
09最后,当我们返回E盘中去查看该文件时,文件夹已经显示出来,文件夹隐藏属性的“√”也去掉了。
针对每一个系列的DSP,TI官方网站上都有相应的头文件和cmd文件,你可以去TI的官网上搜索,搜索器件型号比如TMS320F2812或者关键字C/C++ Header Files,可以下载的。下载以后,解压到你想要的位置,就可以通过添加文件的方法添加了。TI提供的头文件和cmd文件很详细,具体,基本上就够用了,当然cmd文件有时候还是要自己配置的,但是对于新手入门来说,TI提供的cmd文件已经够用了。等到你熟悉cmd文件格式和要求,就可以自己写了,这方面的资料TI官网上也有
1、要在Memory Section Manager属性中为“Segment For DSP/BIOS Objects” 和 “Segment For malloc()/free()”分配Dynamic Memory Heaps,必须首先在要分配的段(比如,IRAM)中勾选“create a heap in this memory“,并给出heaps size。2、要把*.tcf文件生成的*.cmd文件手动加入工程中,否则编译报错如下:
------------------------------ test.pjt - Debug ------------------------------
Warning: The project has no cmd file while the Text Linker is selected
[Linking...] "D:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -@"Debug.lkf"
<Linking>
>>warning: creating output section .gblinit without SECTIONS specification
>>warning: creating output section .mem without SECTIONS specification
>>warning: creating output section .rtdx_data without SECTIONS specification
>>warning: creating output section .sys without SECTIONS specification
>>warning: creating output section .clk without SECTIONS specification
>>warning: creating output section .hst1 without SECTIONS specification
>>warning: creating output section .hst without SECTIONS specification
>>warning: creating output section .pip without SECTIONS specification
>>warning: creating output section .hst0 without SECTIONS specification
>>warning: creating output section .hwi_vec without SECTIONS specification
>>warning: creating output section .swi without SECTIONS specification
>>warning: creating output section .printf without SECTIONS specification
>>warning: creating output section .sts without SECTIONS specification
>>warning: creating output section .tsk without SECTIONS specification
>>warning: creating output section .TSK_idle$stk without SECTIONS specification
>>warning: creating output section .idlcal without SECTIONS specification
>>warning: creating output section .idl without SECTIONS specification
>>warning: creating output section .LOG_system$buf without SECTIONS
specification
>>warning: creating output section .log without SECTIONS specification
>>warning: creating output section .sysinit without SECTIONS specification
>>warning: creating output section .vers without SECTIONS specification
>>warning: entry point symbol _c_int00 undefined
undefinedfirst referenced
symbol in file
-------------------------
SWI_D_rdytab d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
IRAM$B d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_EXC_initd:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_GBL_procId d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
__HOOK_knlId d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_KNL_exitd:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
IRAM$L d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
TSK_VCREATEFXN d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_UTL_doError d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
PIP_F_start d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
GBL_boot d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
TSK_VDELETEFXN d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
KNL_glue d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_UTL_doAbort d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
IDL_F_loop d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_CLK_DFLTMICROSECS d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_GBL_cacheInit64Pd:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_EXC_dispatchd:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_CLK_htimePerLtime d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
GBL_stackbeg d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_CLK_D_tddr d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_UTL_doPutc d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_MEM d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
PRD_F_tick d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
__HOOK_NUMHOOKS d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_CLK_D_microseconds d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
RTA_F_or d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
TRC_R_mask d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
GBL_stackend d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_c_int00 d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_TSK_config d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_OBJ_table d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
HWI_A_VECS d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_FXN_F_nop d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_CLK_enableTimer d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_CLK_D_prd d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
IDL_D_calibrate d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_TSK d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_KNL_run d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
LNK_dspFrameRequestMask d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
CLK_F_isrd:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
PIP_D_tabbeg d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
TRC_cinitd:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_UTL_haltd:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_MEM_initd:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
RTA_F_dispatch d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_TSK_startup d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_TSK_setup d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_KNL_queues d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
CLK_A_TABBEG d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
LNK_F_dataPump d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
TSK_VEXITFXN d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
HWI_F_dispatch d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_RTDX_Poll d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_TSK_initd:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
IDL_D_busyObjd:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_TSK_exitd:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
SWI_F_enable d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
FXN_F_rund:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_GBL_getVersion d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_CLK_inputClock d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
GBL_initdone d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
_HWI_dispatchTab d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
LNK_dspFrameReadyMaskd:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
IDL_F_busy d:\\CCStudio_v3.3\\myprojects\\test\\Debug\\testcfg.obj
>> error: symbol referencing errors - './Debug/test.out' not built
>>Compilation failure
Build Complete,
2 Errors, 23 Warnings, 0 Remarks.
3、
[main.c] "D:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -pdsw225 -fr"D:/CCStudio_v3.3/MyProjects/test/Debug" -d"_DEBUG" -me -mv6400+ -@"Debug.lkf" "main.c"
"main.c", line 20: warning: function declared implicitly
[Linking...] "D:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -@"Debug.lkf"
<Linking>
Build Complete,
0 Errors, 1 Warnings, 0 Remarks.
warning 的原因是对应行的元素没有声明。
解决办法就是加入声明。
举例如下:
#include <std.h>
#include <string.h>
//#include <stdio.h> //打开该句就可以了
void main(void)
{
unsigned int i
unsigned int sum=0
for(i = 0i<=100i++ )
{
sum += i
}
printf("the sum = %d .\n",sum)
printf("the program run over!\n")
printf("the program run over!\n")
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)