We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
With a last version of Keil for ARM (4.13a) I am not able to establish a UVSC connection. Before it was running.
Matlab example:
obj.Keil = getenv('KEIL_DIR'); obj.libName = 'UVSC';
try unloadlibrary(obj.libName); end [notfound, warnings] = loadlibrary(obj.libName , @rgm_target_common.uvscif) % loadlibrary(obj.libName, 'UVSC_C.h')
obj.Name = 'rgm_con1'; Handle = int32(0); obj.Port = int32(4823); ptrHandle = libpointer('int32Ptr', Handle); ptrPort = libpointer('int32Ptr', 0); ptrLogFile = libpointer('cstring', 'D:\uvsc.log'); uvCmd = obj.Keil; if ~exist(uvCmd, 'file') CmdError(obj, 'UVSC_OpenConnection_file_exist', -1); end
calllib(obj.libName, 'UVSC_Init', obj.Port, obj.Port)
status = 1; [status] = calllib(obj.libName, 'UVSC_OpenConnection', ... ... % name, iConnHandle, pPort obj.Name, ptrHandle, ptrPort, ... ... % uvCmd, uvRunMode, callback uvCmd, 0, 0, ... ... % cb_custom, logFileName, logFileAppend, logCallBack 0, ptrLogFile, 1, 0)
Result of the logfile:
00:00:00.00 [T->] CUv3Client::GEN_EXIT() 00:00:00.00 [T->] CUv3Client::DBG_EXIT() 00:00:00.00 [T->] CUv3Client::DBG_STOP_EXECUTION() 00:00:00.00 [-->] [DBG_STOP_EXECUTION ] 00:00:00.09 [<--] [DBG_STOP_EXECUTION ] [UV_STATUS_NO_PROJECT (No project)] 00:00:00.09 [-->] [GEN_CPLX_COMPLETE ] 00:00:00.09 [<--] [GEN_CPLX_COMPLETE ] [OK] 00:00:00.09 [<-T] CUv3Client::DBG_STOP_EXECUTION() = UVSC_STATUS_COMMAND_ERROR 00:00:00.09 [-->] [DBG_EXIT ] 00:00:00.10 [<--] [DBG_EXIT ] [UV_STATUS_NO_PROJECT (No project)] 00:00:00.10 [-->] [GEN_CPLX_COMPLETE ] 00:00:00.10 [<--] [GEN_CPLX_COMPLETE ] [OK] 00:00:00.10 [<-T] CUv3Client::DBG_EXIT() = UVSC_STATUS_COMMAND_ERROR 00:00:00.10 [-->] [GEN_EXIT ] 00:00:00.10 [<--] [GEN_EXIT ] [OK] 00:00:00.10 [<-T] CUv3Client::GEN_EXIT() = UVSC_STATUS_SUCCESS 00:00:00.17 [<==] [PRJ_CLOSE ] [OK (Closed project 'ÎÝ‘|îÏ‘|œò')]