This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with save command

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?