1.1 printf和logMsg
直接在代码中追加打印语句。(齐XX 最爱)
printf(“xxxxxxxxx \n”); ------- 不能用于中断
logMsg(“xxxxxxxxx \n”, 1,2,3,4,5,6 ); ------- 可用于中断
=====> 2者都不能用于 WatchDog处理中。
1.1 串口常用系统命令
| vx6.8 | vx5.5 |
解压 | -> tarExtract( "/ramd/collect.tar", 0, 1) ) | 不明? |
|
|
|
显示当前路径 | pwd | 相同 |
切换路径 | cd "/flash" | 相同 |
显示文件详细信息 | -> ll | 不明? |
查看磁盘空间 | -> chkdsk "/ramd" /ramd/ - disk check in progress ... /ramd/ - Volume is OK
total # of clusters: 40,785 # of free clusters: 23,917 # of bad clusters: 0 total free space: 23,917 Kb max contiguous free space: 24,491,008 bytes # of files: 2 # of folders: 0 total bytes in files: 16,865 Kb # of lost chains: 0 total bytes in lost chains: 0 value = 0 = 0x0 | 不明? |
|
|
|
删除文件 | xdelete "/flash/config" | rm "/flash/config" |
拷贝文件 | cp("/flash/config", "/flash/1") | copy("/flash/config", "/flash/1") |
移动文件 | mv("/flash/config", "/flash/1") | move("/flash/config", "/flash/1") |
显示函数调用关系 | 需要在kernel configuration中打开INCLUDE_DEBUG à tt | 相同 |