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.

MSP-GANG: Loading Image from file about API (MSP-GANG.dll)

Part Number: MSP-GANG


Hello,

we use the MSP-GANG.dll  in our application.

For our flashing strategy we would like to use the mode "From Image File". 

The image files (.mspgangimage, mspgangbin, .mspgangproj) will be stored  and  managed in database

and according to the production order should the image loaded and flashed to the target device(s). (target devices can vary)

We wont to avoid every time to store the image in the flash memory in relating to 10000 endurance cycles.

Example code

....

string imageFilePath = /.../.../imageName.mspgangimage

MSPGANG.SetConfig(ConfigIndexes.CFG_PROJECT_SOURCE, ConfigIndexes.FROM_IMAGE_FILE_MODE);

MSPGANG.ImageFileLoad(imageFilePath, null, 0);

.and now ?

 

Q1. Which methdoe is call at next after ImageFileLoad(..)?

If not supported in the MSP_GANG.dll, which kind of another flashing strategy is to recommended?

Regards,

Paul

  • Hi Paul,

    Can you use Standalone mode? You're able to add up to 96 unique images for different devices in the MSP-GANG's internal memory. Each image is loaded once, so there's no concern about wearing out the Flash memory.

    You could still have all the image files in your database and then use the Interactive mode to add more images or update existing images stored in the MSP-GANG's internal memory.

    Regards,

    James

  • Hi James,
    the standalone mode is currently using. The background is, we have to make sure
    that nobody manipulate the programmer. The programmer should operate in production field
    as a black box. No tools, no manually activity, just a automatic process.
    At moment we have found this solution and it seems to work the way we wanted it to.

    string imageFilePath = /.../.../imageName.mspgangimage

    MSPGANG.SetConfig(ConfigIndexes.CFG_PROJECT_SOURCE, ConfigIndexes.FROM_IMAGE_FILE_MODE);

    MSPGANG.SetConfig(ConfigIndex.FROMIMAGE_BIT, 0x1000);

    MSPGANG.ImageFileLoad(imageFilePath, null, 0);

    MSPGANG.InteractiveProcess(1000);

    MSPGANG.GetProgressStatus(pnt);

    A long time test will be show if this strategy is right.

    I will closing the ticket.

    Thank you for your fast response and interesting approach.

    Regards
    Paul

**Attention** This is a public forum