Tool/software:
Hi,
I'm looking to retrieve the name of the selected image in the MSP-GANG, so the name circled here.
I connect to the gang programmer using the API-DLL over serial.
Which API call do I need?
Mike
Tool/software:
Hi,
I'm looking to retrieve the name of the selected image in the MSP-GANG, so the name circled here.
I connect to the gang programmer using the API-DLL over serial.
Which API call do I need?
Mike
Hi Michael,
The API Call you are probably looking for is the one I send in the screenshot here.
Best Regards,
Diego Abad
Hi Michael,
It should be IMAGE_FILE_INDEX. However, if that doesn't work, feel free to try all the other possible index arguments.
Best Regards,
Diego Abad
I've tried all the values identified in the header, and just get empty strings for them all. I've tried it in a C# program with P/Invoke and a native C program (to eliminate any p/invoke errors)
long error = MSPGANG_InitCom((LPTSTR) L"COM4", 115200); for (int a = 0; a < NAMECFG_MAX_INDEX; a++) { LPTSTR nameP = MSPGANG_GetNameConfig(a); std::cout << nameP << "\r\n"; } error = MSPGANG_ReleaseCom();
Hi Michael,
Sorry for the late response. That is weird. Let me consult with one of our experts in our team about this when he comes back to office.
Best Regards,
Diego Abad
Hi Michael,
Sorry for the delay.
Did you refer to page 110/111 of the user's guide for MSP-GANG?
The API works in a unique way where you assume it would be an iteration but it is not. When using MSPGANG_GetNameConfig() the argument that should be passed in is the indexes at the bottom of page 110 and start of 111.
hi henry - I'm afraid I'm not following, would you be able to provide an updated version of the snippet from about 9 days ago that shows what you think I'm doing wrong?
**Attention** This is a public forum