我的代码: if (type == USB_STANDARD_REQUEST) (*StandardDeviceRequest[req])(); 定义:void (*StandardDeviceRequest[])(void) = { get_status, clear_feature, reserved, set_feature, reserved, set_address, get_descriptor, reserved, get_configuration, set_configuration, get_interface, set_interface, reserved, reserved, reserved, reserved }; 我用ADS2.2MAKE后,后成的ELF文件,在SDRAM中调试,调用get_status()时不能跳到正确的函数地址,选中下面那项时,MAKE后就可以了,不明白为什么会这样?请高手指教,给我一个解决问题的思路也可以的!先谢谢了! |