This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

tms320f28035中使用 DELAY_US

Other Parts Discussed in Thread: TMS320F28035

我使用的是官方的tms320f28035官方例程,在AD实验中得init AD中调用了DELAY_US(1000L);发现在下载到RAM中可以运行,但是烧到FLASH就不行了,其他的例程中我发现一旦在程序中调用那个汇编的延时文件,就会下载到RAM中可以运行,但是烧录到flash中就运行部了,这是为什么呢?我用的是官方例程的

  • 1. 声明extern void DSP28x_usDelay(unsigned long Count); 在你的程序中。

    2. 需要确认cmd文件是采用支持flash cmd文件。DELAY_US()函数是定义在ramfuncs section的。

    3. 需要执行Memcopy把这个函数从flash中copy到ram中运行,并需执行InitFlash()函数配置Flash参数。

    4. 具体可以参考f28035的头文件例程目录下的flash例程。

  • 我用的是TI给我例程,没有任何改动。怎么也不行呀?和上述情况一样。回答没有任何帮助 。