Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: problem with an CC430F5137 and MSP-Gang.dll

$
0
0
Andres, Thank you so much for providing the full code - we now found your issue. When you are setting up the DLL functions, it looks like you have a typo that is causing your issue: //LONG WINAPI MSPGANG_SetConfig( LONG index, LONG data ); pMSPGangSetConfig = GetProcAddress(hDLL430, "MSPGANG_SetConfig"); pMSPGangSetTmpGANGConfig= GetProcAddress(hDLL430, "MSPGANG_SetTmpGANG_Config"); //LONG WINAPI MSPGANG_GetConfig( LONG index ); pMSPGangSetConfig = GetProcAddress(hDLL430, "MSPGANG_GetConfig"); //LONG WINAPI MSPGANG_Set_MCU_Name( LPTSTR name ); As you can see, you have pMSPGangSetConfig defined a second time, instead of defining pMSPGangGetConfig. This typo means that pMSPGangSetConfig is really pointing to the MSPGANG_GetConfig function from the DLL (since the second definition will override the first one) so none of your device configuration is actually taking effect! If you fix the typo, I think all should work. Thanks for posting and I hope this resolves your issue! Regards, Katie

Viewing all articles
Browse latest Browse all 62309

Trending Articles