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.
Hi all, I'm using uVision 5.23, i've got some problem with SAVE command. I need to make a command button which make a memory dump using the "SAVE xxx.hex 0xC0000000,0xC0001000" command. It work fine if i send it from command window, instead if i try use it in the initialization file i got a syntax error message. This is my initilization file: ---------------------------------------------- KILL FUNC * KILL BUTTON *
FUNC void SaveBuffer(void) { SAVE xxxx.hex 0xC0000000,0xC0001000; }
define button "Save Buffer", "SaveBuffer()" ----------------------------------------------
this is the error message when debugger start: ---------------------------------------------- Include "C:\\SISTEMI DI SVILUPPO\\ARM\\_REVERBERI_ENETEC_\\SLV_WL\\trunk\\MDK-ARM\\dbgInit.ini" KILL FUNC * KILL BUTTON *
FUNC void SaveBuffer(void) { SAVE xxxx.hex 0xC0000000,0xC0006000 _^ *** error 10, line 5: Syntax error *** Function creation aborted due to syntax errors BS \\SLVarm\../Myfunction/Image_processing.c\141 ----------------------------------------------
someone can help me?
instead of:
always use the exec() function when a debugg command needs to be executed from within a debug function:
FUNC void SaveBuffer(void) { exec ("SAVE xxxx.hex 0xC0000000,0xC0001000"); //---with path use: //exec ("SAVE C:/temp/xxxx.hex 0xC0000000,0xC0001000"); //---or (note the double backslash characters): //exec ("SAVE C:\\temp\\xxxx.hex 0xC0000000,0xC0001000"); }
Thank you