大家好,我正在使用XUPV2P板开发一个audioproject。
我正在使用具有浮点单元的Microblaze,并且对于调试我使用XMD和GDB,提供XPS环境,但它不能很好地工作。
我进行了硬件调试,通过jtag uart连接到
电路板,但即使使用非常简单的代码(类型转换测试):int main(void){int int_var = 0; float fp_var = 0; int int_var2 = 0;
int fine = 0; int_var = 22500; fp_var =(float)int_var; int_var2 =(int)fp_var; fine = 1; return 0;} GDB给出了变量的荒谬值。
我知道微型激光很好地进行了类型转换(我用ac97外设听了结果声音,它几乎是完美的),但是使用GDB调试器,即使它们不参与电流,变量也会改变它们的值。
操作(步进模式)。对你有什么建议吗?谢谢你,西蒙娜
以上来自于谷歌翻译
以下为原文
Hi all,I'm working on an audio project using the XUPV2P board. I'm using the Microblaze with a floa
ting point unit, and for the debug I'm using XMD and GDB, provided with XPS environment, but it doesn't work well. I make a hardware debugging, connecting to the board via jtag uart, but even with a very simple code like this (a typecasting test): int main (void) { int int_var = 0;
float fp_var = 0;
int int_var2 = 0;
int fine = 0;
int_var = 22500;
fp_var = (float) int_var;
int_var2 = (int) fp_var; fine = 1;
return 0;
} the GDB gives absurd values of the variables. I know that the type-casting is made quite well by the microblaze (I listened the resulting sound with the ac97 peripheral and it is almost perfect), but with the GDB debugger the variables change their value even when they are not involved in the current operation (in step mode).Have you any advice for me? Thank you, Simone
0