This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi all,
I am making custom GUI using the DLL.
MSPGANG_Interactive_EraseSectors is described SLAU358.
This is sector erase.
Are available is a function of Mass erase?
My cutom gui is using MSPGANG_Interactive_EraseSectors.
This is slower than "default MSP-Gang.exe" but it.
I think "Mass erase" is being used in the "default MSP-Gang.exe".
thanks
Hi,
Do you need to be using the MSP-GANG in interactive mode?
If you see the DLL example projects that come included with the MSP-GANG software download in the folder MSP-GANG > Examples, you'll see that in the examples we use programming from an image. First the DLL creates an image that it loads into the MSP-GANG, and then it uses this image for the programming settings. Starting with the example at MSP-GANG > Examples > C_Applications_MSP_DLL you can see in DLLtest.c how the process is done by setting up a configuration with the SetConfig commands, reading the code file for the code you want to load into the part and creating an image from this, and then using MainProcess to actually execute the erase + programming of the part with the settings you already defined.
Using the MSPGangSetConfig command defined in the user's guide section 4.3.24 and used in the DLL example, you can use the parameter CFG_FLASHERASEMODE to setup a mass erase of the part for the options similar to those in the GUI - all memory, only memory used by the program, etc.
I'd highly recommend starting from the example DLL projects and just modifying them - this will help you get everything set up correctly more quickly.
Regards,
Katie
thanks for the reply
I can successfully access and use the inteructive mode in MSP-Gang.exe
So I used inteructive mode.
MSPGANG_MainProcess think that It is not an instruction to perform functions that are reserved.
Do you have either of the following?
For example, steps that are erase in the Interactive Mode of MSP-Gang.exe .
or
What is the name of the function the MSP-Gang.exe is using
thanks.
**Attention** This is a public forum