自动代码生成笔记|simulink建模基础及c2000 dsp代码自动生成笔记二

28335 专栏收录该内容
27 篇文章 0 订阅

simulink建模基础及c2000 dsp代码自动生成笔记二

书的第2章讲的是闰年判断,差不多在90/475才开始讲搭建模型并建立 91/475 p82讲的是不同solver的区别,ode45不是哟关于刚性系统,但啥是刚性系统呢?而且说ode45是大多数问题首选算法。。。。ode23适用于轻度刚性的系统/

流水灯模型,,p156,166/475,但为啥是stateflow建模呢。。stateflow貌似是状态图建模?///不对,stateflow的流水灯模型貌似只是在示波器上的,不算我所要的模型。。

p269,直接把Arduino的LCD1602显示屏代码弄到Simulink里了

直接看p277,也就是///但从p284开始讲的都是电机用的28027,不是我要的28335啊

414/475 p404显示了点亮黄灯和红灯的,,但是这就有launchpad tms320f2802x啊,太好了吧。。。但p401 410/475还是用的stateflow来弄的啊。。。C2000 launchpad XL

在这里插入图片描述
在这里插入图片描述
C:\ProgramData\MATLAB\SupportPackages\R2018a\toolbox\target\supportpackages\tic200
0\CCS_Config, 用 CCS 打开 f28335.ccxml 文件,并修改为自己仿真器型号保存。
估计还得在CCS修改;;这一步就直接在controlsuite里随便找一个例程弄吧
在这里插入图片描述
这里就看不懂了啊

The following error occurred during deployment to your hardware board: 

Debug Server Scripting (DSS) error: 
*** User inputs: 
    Target Configuration: C:\PROGRA~3\MATLAB\SUPPOR~1\R2019b\toolbox\target\SUPPOR~1\tic2000\CCS_CO~1\F28335~1.CCX
    Program Name: C:\Users\think\Desktop\LED___~1.OUT
    Board Name: *
    CPU Name: unspecified (connect to first CPU)

*** Starting debug session...
*** Debug Session Name: Texas Instruments XDS100v1 USB Emulator_0/C28xx
*** Board Name: Texas Instruments XDS100v1 USB Emulator_0
*** CPU Name: C28xx

*** Connecting to target...
SEVERE: C28xx: Error connecting to the target: (Error -151 @ 0x0) One of the FTDI driver functions used during the connect returned bad status or an error. The cause may be one or more of: no XDS100 is plugged in, invalid XDS100 serial number, blank XDS100 EEPROM, missing FTDI drivers, faulty USB cable. Use the xds100serial command-line utility in the 'common/uscif' folder to verify the XDS100 can be located. (Emulation package 7.0.100.0) 

SEVERE: emulation failure occurred
SEVERE: Error connecting to the target: emulation failure occurred
SEVERE: Cannot perform operation, target is not connected.
SEVERE: Error reseting target: Cannot perform operation, target is not connected.
org.mozilla.javascript.WrappedException: Wrapped com.ti.ccstudio.scripting.environment.ScriptingException: Error reseting target: Cannot perform operation, target is not connected. (C:\PROGRA~3\MATLAB\SUPPOR~1\R2019b\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~2.JS#93)
	at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1693)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)
	at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:204)
	at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:119)
	at org.mozilla.javascript.gen.c1._c0(C:\PROGRA~3\MATLAB\SUPPOR~1\R2019b\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~2.JS:93)
	at org.mozilla.javascript.gen.c1.call(C:\PROGRA~3\MATLAB\SUPPOR~1\R2019b\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~2.JS)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
	at org.mozilla.javascript.gen.c1.call(C:\PROGRA~3\MATLAB\SUPPOR~1\R2019b\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~2.JS)
	at org.mozilla.javascript.gen.c1.exec(C:\PROGRA~3\MATLAB\SUPPOR~1\R2019b\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~2.JS)
	at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:503)
	at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:425)
	at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:391)
	at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:382)
	at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:179)
	at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:100)
	at org.mozilla.javascript.Context.call(Context.java:528)
	at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:450)
	at org.mozilla.javascript.tools.shell.Main.exec(Main.java:162)
	at com.ti.ccstudio.apps.internal.scripting.RunScript$1.run(RunScript.java:89)
Caused by: com.ti.ccstudio.scripting.environment.ScriptingException: Error reseting target: Cannot perform operation, target is not connected.
	at com.ti.debug.engine.scripting.Target.reset(Target.java:622)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:145)
	... 18 more
*** Starting debug session...
*** Debug Session Name: Texas Instruments XDS100v1 USB Emulator_0/C28xx
*** Board Name: Texas Instruments XDS100v1 USB Emulator_0
*** CPU Name: C28xx

*** Connecting to target...
SEVERE: C28xx: Error connecting to the target: (Error -151 @ 0x0) One of the FTDI driver functions used during the connect returned bad status or an error. The cause may be one or more of: no XDS100 is plugged in, invalid XDS100 serial number, blank XDS100 EEPROM, missing FTDI drivers, faulty USB cable. Use the xds100serial command-line utility in the 'common/uscif' folder to verify the XDS100 can be located. (Emulation package 7.0.100.0) 

所以应该是仿真器配置错了,我是XDS200的啊
在这里插入图片描述
反正研旭的是能看到这个ccxml文件的;;;
在这里插入图片描述
又没法build了,忘记之前是在哪里的了,咋就看不到#include “DSP2833x_Device.h” 了啊

  • 0
    点赞
  • 8
    评论
  • 3
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值