[PSoC 5] [LCD 128x64] My Application Program is Running fine with CY8CKIT-050 but in my Hardware it hangs on CY_ISR(IntDefaultHandler) in file name "Cm3Start.c"

dhruvacharya wrote on Friday, October 02, 2015:

Hi @rtel,

Yes I have defined configASSERT().

I have definied this in FreeRTOSConfig.h:

extern void vAssertCalled ( char * u8FileName, int u8LineNum );

#define configASSERT( x )		if( ( x ) == 0 ) vAssertCalled( __FILE__, __LINE__ )

And in my c file I have defined vAssertCalled like this :

void vAssertCalled ( char * u8FileName, int u8LineNum )
{
	/* The heap space has been execeeded. */
	taskDISABLE_INTERRUPTS();
	
	( void ) u8LineNum;
	
	uint8 CYXDATA u8TempIndex0=0;
	
	for(u8TempIndex0=0 ; u8TempIndex0<25 ; u8TempIndex0++)
	{
		if(u8FileName[u8TempIndex0]==0)
			break;
		
		u8FaultFileName[u8TempIndex0]= u8FileName[u8TempIndex0];
	}
	
	while( 1 )
    {
        /* Do nothing - this is a placeholder for a breakpoint */
		//LED_4_Write ( LED_4_Read () ^ 0x01 );
		
		//CyDelay(500);
		CY_NOP;
    }
}

I am using FreeRTOS V8.2.1. And In FreeRTOSConfig.h I have this:

#define configCHECK_FOR_STACK_OVERFLOW	2

Thank you.