HardFault Interrupt in LPC 4367

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

HardFault Interrupt in LPC 4367

815 次查看
prasannanaik
Contributor III

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

0 项奖励
回复
1 回复

720 次查看
converse
Senior Contributor V

From the information you have provided, it is impossible to provide any help.

However, you can debug a hard fault yourself. See 

https://community.nxp.com/thread/389002 

0 项奖励
回复