Hi,
I am using M0 App of LPC 4367 to interface 128*64 graphical LCD(TM12864A8CCWGWA).
I have created display library along with application code.
The following function takes CPU into hard fault Handler.
/*********************************
void SettingScreen(const st_EditViewParamList *ptrEditViewPara,uint16_t SizeOfList,uint8_t SetGroup)
{
unsigned char temp=0;
for(temp = 0; temp < g_st_EditPara.ui_nCount; temp++)
{
g_tempEditSettingsParam[temp] = ptrEditViewPara[temp];
}
for (temp = 0; temp < g_st_EditPara.ui_nCount; temp++)
{
g_tempEditSettingsParam[temp].ptrVariable = &g_ultemp[temp];
if(ptrEditViewList[temp].VariableType == 2)
{
g_ultemp[temp] = (uint32_t)(*(ptrEditViewPara[temp].ptrVariable)) & (uint32_t)0x0000FFFF;
}
else
{
g_ultemp[temp] = (*(ptrEditViewPara[temp].ptrVariable)) & 0xFFFFFFFF;
}
}
}
***********************************/
SettingScreenfunction is used to maintain backup of the data on the display screen.
typedef struct strEditViewPrm
{
const char *String,*PAD,*Unit;
int32_t *ptrVariable;
uint16_t VariableType;
uint8_t MinExitPresent,MaxExitPresent;
uint16_t ValueOfMinExit;
uint16_t ValueOfMaxExit;
int32_t Min,Max;
uint16_t Mul,Div,Plus,Minus;
uint16_t StepSize;
uint8_t iReqSave;
tdStringTable *StringTableList;
uint8_t StringTableSize;
InitVar_t *m_pfuncInit;
}st_EditViewParamList;
Please help in resolving the issue