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.
工具/软件:Code Composer Studio
您好,我正在尝试通过我的DSS脚本设置浮点值。
在我的C代码应用程序中,有一个定义如下的变量
静态浮点myVariable = 0.0f;
使用DSS API,我可以通过以下任何方式将此变量设置为任意整数(我以'25'为例,但任何整数都可以使用):
myDebugSession.expression.Evaluate ("myVariable=25")
或
var myVariableAddress = myDebugSession.symbol.getAddress("myVariable")
myDebugSession.memory.writeData (第9章,myVariableAddress,25,32)
或
我可以使用.memory.writeWord()函数
它们都可以成功写入整数值。 但是我想写值0.0.0225万 (十六进制0x396BEDFA)
使用上述任何方法都不起作用。 是否有人知道如何做到这一点?
我正在使用CCS版本7.1 .0.0.0014万
谢谢!
千斤顶