In the process of development, I have come across the following error while debugging my application on a Colibri Dev-kit:
I2C Error: .\src\config_parser.c, 401: Context Corruption CMApplication.exe has triggered a breakpoint
The call stack shows the following:
Library.dll!LibMsg(unsigned long type, char * libName, char * fileName, unsigned long lineNr, char * fmtStr, ...) Line 42 Library.dll!CfgPrs_GetHandle(void * hPort, const char * LibName) Line 402 Library.dll!Imx6I2c_SetConfigInt(void * hPort, const wchar_t * paramName, unsigned long value, ParamStorageType storageType) Line 187 Library.dll!I2c_SetConfigInt(void * hPort, const wchar_t * paramName, unsigned long value, ParamStorageType storageType) Line 235
Can you provide any guidance as to what this might indicate? The code which calls I2cSetConfigInt is called multiple times before it triggers this error. I do initialize other peripherals in my code (SPI) - could this be related?