在熟悉开发板过程中将板子的测试例程都成功在板子上运行了。于是新建了一个test工程希望重复操作led这个测试例程。
在新工程中复制了led_test.c和main.c文件,编译报错,因为找不到对应的.h文件。于是将.h以及bsl文件夹里的.c文件手动添加到工程文件夹中。编译成功了,生成的.out文件下载到板子中运行没有效果,halt再继续运行出现如下报错,是什么原因呢?
Can't Run Target CPU:
Error 0x00000020/-1141
Error during: Execution,
Processor communication timeout.
It is recommended to RESET EMULATOR. This will disconnect each target,
perform an emulation reset, and then reconnect each target.
Power cycle the target board before continuing.
初学DSP对文件不是很了解,.h文件后来发现可以添加路径自动添加。bsl的lib文件应该怎么添加?之前不知道怎么用所以直接把.c文件拷进工程来用了。看了ccs的一些教程,但是都没有细讲这些。。后来直接将usbstk5505bsl.lib添加进工程,编译却出现了如下错误:
fatal error: file "../usbstk5505bsl.lib<usbstk5505_led.obj>" has a
Tag_Memory_Model attribute value of "2" that is different than one
previously seen ("1"); combining incompatible files