Download Eddy-DK v2.5.1.1 Programmer Guide
Transcript
Eddy DK Programmer Guide 6.10 Debugging Function Eddy can debug operating condition of each application via Telnet in real time. The following functions are used to print debug log message to Telnet window when SB_DEBUG of each application is set ON. SB_LogDataPrint Function Print each byte of data in hex or ascii code. Format void SB_LogDataPrint (char *RTx, char *buff, int data_len); Parameter *RTx Description message of data *Buff Buffer address of data to be printed is saved/ Data_len Size of data. None Prints messages to telnet which logged in first. The message include Eddy’s tick counter of 1msec unit and printed in following form. SB_LogDataPrint (‚Send‛, ‚\t12345\n‛, 8); [191020202] Send 8 = 08,1,2,3,4,5,0d,0a -------------- ------- ---------------------------Tick Counter RTx data_Len buff Debugging of each application in Eddy can be configured as follows by using Def command. (Please see def.c) # def po <1/2/all> debug <on/off> Returns Notice SB_LogMsgPrint 122 Function Prints in the same format as Printf. Format void SB_LogMsgPrint (const char *Format, . . . ); Parameter Returns Notice *Format Format of Printf None Prints messages to telnet which logged in first. The message include Eddy’s tick counter of 1msec unit and printed in following form. SB_LogMsgPrint (‚%s means Real-Time\n‛, ‚Eddy‛); [191020202] Eddy means Real-Tile Debugging of each application in Eddy can be configured as follows by using Def command. (Please see def.c) # def po <1/2/all> debug <on/off>