1、在Debug->Function Editor里输入下面函数
在printf函数内可以更改输出格式。
2、进入调试,在command窗口输入export_data(),即可运行函数。
3、生成的文件在工程文件的MDK-ARM文件夹下,Data.log文件。