嵌入式开发者社区

标题: 28377D DA输出 [打印本页]

作者: chendelta    时间: 2018-10-25 17:53
标题: 28377D DA输出
28377D开放板,想试DA输出。

(1) 拷贝 光盘下 Demo\DSP_F28377D\NonOS\Appliation\led_flash 的2个project,load后led正常闪烁,说明双核正常工作;

(2) 用 Demo\DSP_F28377S\NonOS\Appliation\DAC project中 main.c 的内容替换 led_flash_cpu01中 main.c 的内容,build project,没有Error,
只是提示 Warning : This project was created using a version of compiler that is not currently installed - 6.4.2 [C2000]. Another version of the compiler will be used during build - 18.1.3.LTS.   ... ...

(3) CPU1 load DAC 对应的out文件,CPU2 load 原来的led_flash_cpu02的out文件,Run, 没有反应。本来应在J5的A0输出1.5V,按KEY1、KEY2可以改变电压值,但实际输出接近0V。led也不闪烁。


问题似乎与 F2837xD_DefaultISR.c 有关,因为CCS自己把这个文件打开了。这个中断服务例程中的函数都是如下形式:
{
    // Insert ISR Code here

    // Next two lines for debug only to halt the processor here
    // Remove after inserting ISR Code
    asm ("      ESTOP0");
    for(;;);
}

请问可能是哪儿出了问题?谢谢!

作者: tronlong-gxd    时间: 2018-10-26 08:49
提示: 作者被禁止或删除 内容自动屏蔽
作者: chendelta    时间: 2018-11-13 18:16
28377D可以直接使用28377S的project,虽然在debug还是load的时候会报一个错,应该是关于CPU2的。
作者: chendelta    时间: 2018-11-18 16:59
tronlong-gxd 发表于 2018-10-26 08:49
您好:
      DAC的例程需要单独运行,如果要改变DAC的电压值,需要在主函数钟添加对应的按键功能 。
      ...

您好,
    我把一个 采用Timer0中断闪烁LED 的例子和一个 DA输出 的例子结合到一块输出一个方波。
    1. link时如果采用2837xD_RAM_lnk_cpu1.cmd,
    1.1 有1个Warning:Description        Resource        Path        Location        Type
#10247-D null: creating output section "ramfuncs" without a SECTIONS specification        DA_SQR_INT                         C/C++ Problem
    1.2 debug,显示
“C28xx_CPU1: GEL Output:
Memory Map Initialization Complete
C28xx_CPU1: If erase/program (E/P) operation is being done on one core, the other core should not execute from shared-RAM (SR) as they are used for the E/P code.  Also, CPU1 will be halted to determine SR ownership for the CPU which will run the Flash Plugin code, after which CPU1 will be set to run its application. User code execution from SR could commence after both flash banks are programmed.”
    可以运行,LED闪烁,DA输出方波。但是load后,LED不闪,DA无输出。

    2. link时如果采用2837xD_FLASH_lnk_cpu1.cmd,
    2.1 Debug时显示与1.2同样的内容,运行时LED不闪,DA无输出,自动打开F2837xD_DefaultISR.c,位置在interrupt void ILLEGAL_ISR(void)。
    2.2 Load, 不运行。

    请问可能是哪里出了问题?谢谢!
作者: tronlong-gxd    时间: 2018-11-19 09:06
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 嵌入式开发者社区 (https://51dsp.net/) Powered by Discuz! X3.4