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.

TIDM-1000有没有直接可以在FLASH上运行的程序?

Other Parts Discussed in Thread: TIDM-1000

我看了一下例程,需要运行起来手动改写cleartrip值为1,才可以开起PWM功能。然后这段内容似乎是用的条件编译,这样直接烧写在FLASH上就没办法正常运行了。如果我要修改这一部分,TI官方有什么建议吗?  我直接把条件编译这里改掉可以么?

  • 你是指pfc3phvienna这个例程吗?这个例程的话你在编译的时候,把那个小锤子旁边那个小三角点开,选择flash编译,编译好之后再debug,他就是运行的flash模式,会将程序烧写进flash运行。程序里面的像你说的条件编译的一些选项也会跳到对应选项上去
  • 我会烧写FLASH运行。我的意思是,按照用户指南,联机调试这个程序时候,PWM功能需要手动改写变量cleartrip为1才可以开启,这样的话,烧写到FLASH上面,脱机运行的话,我就没法去改这个变量值了。有没有可以直接开启PWM功能的方法,不要我手动去改变量。
  • 您好,请问您解决了脱机运行的问题吗?

    我的TIDM-1000联机调试时经常会掉,您有遇到这种问题吗?

  • 你说的掉是程序跑死了还是功率部分掉电? 我的CCS有时候会有未响应的情况 但功率没有掉过电 脱机运行我也有办法 要么你把他空出来的DSP IO口自己引出来 接一个按键之类的电路,然后用这个IO触发中断去清掉PWM的TRIP 要么你直接把TRIP条件给改掉 如果保护不跳 输出电压建立到某个阈值之后 你让PWM TRIP清掉就可以了
  • 十分感谢您对于脱机运行的方法建议,很有用。
    我的问题是debug之后,只要点run就会报错:
    C28xx_CPU1: Error: (Error -1044 @ 0x0) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 9.1.0.00001)
    C28xx_CPU1: Trouble Halting Target CPU: (Error -1135 @ 0x8231A) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 9.1.0.00001)
    C28xx_CPU1: Unable to determine target status after 20 attempts
    C28xx_CPU1: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
    只有在重启CCS及重新连接usb之后,会偶尔能够正常运行,而上主电后,过一段时间程序依然会报错,驱动消失。您遇到过这种问题吗,或者您认为大概是什么原因导致它的不稳定?