CyGlobalIntEnable restarts chip

A catchall for PSoC3 discussions not captured by the other forums.

Moderator: ericb

CyGlobalIntEnable restarts chip

Postby rosaldorosa » Sun Jul 14, 2013 12:20 am

Does this command has any special meaning for power requirements?
I've found that above command cause restart the chip.
This is how I discovered
if(CyResetStatus & CY_RESET_WD)
goto fend;
}else if( CyResetStatus != 0) {
ResetStatus = CyResetStatus;
}else if ( ResetStatus > 2)
ResetStatus = 0;

CyGlobalIntEnable; /* Uncomment this line to enable global interrupts. */
ResetStatus is a fixed location in xram. After CyGlobalIntEnable it's set to 1 , and program stops at while(1);
Normally it should be 0
However when I added RTX51_Start() (simple interrupt); before CyGlobalIntEnable the reastart does not happen.
The Big Cheese
The Big Cheese
Posts: 232
Joined: Sun Feb 21, 2010 10:51 pm

Return to “%s” PSoC3 General

Who is online

Users browsing this forum: No registered users and 1 guest