1.CS+ for CC map文件中顯示變量地址
Link Option->List->Output Symbol information
2.FDL庫函數
pfdl_status_t R_FDL_Write(pfdl_u16 index, __near pfdl_u08* buffer, pfdl_u16 bytecount)
pfdl_status_t R_FDL_Read(pfdl_u16 index, __near pfdl_u08* buffer, pfdl_u16 bytecount)
中涉及到指針的變量要用全局變量,用局部變量,會導致寫入數據出錯。
3.CS+ for CC注釋顯示中文
Tool->Option->General->Text Editor
Enable file encoding auto detection 不要打鉤,取消編碼檢測功能。
-
EZ-CUBE調試方法
撥碼:M2–Int.Clock—Debug Mode—5—M3
連線:GND—TOOLO—RESET
上電步驟:先EZ-CUBE,再單片機 -
EZ-CUBE與QB-R5F1026A-TB接線
EZ-CUBE QB-R5F1026A-TB接線 -
GND 14
-
RESET 13
-
VDD 9
-
TOOLO 5
-
EZ-CUBE無法調試時
現象:示波器量TOOL0電壓只有2V,正常為3~5V,無法調試。
解決方法:在通電條件下,T/5:5,Other/M3:M3,先撥到T,Other,再撥回。 -
在使用EZ-CUBE調試器debug、或者串口調試器直接實時調試,電壓不準。
可以先把AD采樣值保存在RAM中,再接上串口輸出AD值,可以避免這個問題。
//一次PWR AD采樣
/*
07.29V //@1mA
07.27V //@1mA
07.24V //@1mA
07.26V //@1mA
07.27V //@1mA
07.27V //@1mA
07.27V //@1mA
07.71V //@0mA 以下同
07.72V
07.74V
07.74V
07.75V
07.75V
…
07.79V
07.81V