CY_NORETURN CY_ISR(IntDefaultHandler)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi All,

I am using CY8ckit-042-ble-a Kit ,I am trying to add Upgradable Stack OTA Bootloader in my project,

but it is going in to 2nd while loop(in to an infinite loop) of CY_ISR(IntDefaultHandler)

CY_NORETURN

CY_ISR(IntDefaultHandler)

{

    /***************************************************************************

    * We must not get here. If we do, a serious problem occurs, so go into

    * an infinite loop.

    ***************************************************************************/

    #if defined(__GNUC__)

        if (errno == ENOMEM)

        {

            #ifdef CY_BOOT_INT_DEFAULT_HANDLER_ENOMEM_EXCEPTION_CALLBACK

                CyBoot_IntDefaultHandler_Enomem_Exception_Callback();

            #endif /* CY_BOOT_INT_DEFAULT_HANDLER_ENOMEM_EXCEPTION_CALLBACK */

           

            while(1)

            {

                /* Out Of Heap Space

                 * This can be increased in the System tab of the Design Wide Resources.

                 */

            }

        }

        else

    #endif

        {

            #ifdef CY_BOOT_INT_DEFAULT_HANDLER_EXCEPTION_ENTRY_CALLBACK

                CyBoot_IntDefaultHandler_Exception_EntryCallback();

            #endif /* CY_BOOT_INT_DEFAULT_HANDLER_EXCEPTION_ENTRY_CALLBACK */

            while(1)

            {

            }

        }

}

please help me to solve this issue.

0 Likes
1 Solution
Anonymous
Not applicable

Generally this occurs when you call BLE functions when the BLE stack is:

  • Not ready
  • Not turned on
  • Invalid state for function to be called
  • Incorrect BLE API usage

View solution in original post

0 Likes
2 Replies
Anonymous
Not applicable

Generally this occurs when you call BLE functions when the BLE stack is:

  • Not ready
  • Not turned on
  • Invalid state for function to be called
  • Incorrect BLE API usage
0 Likes
haljonat
Level 1
Level 1
First like received 5 replies posted First question asked

I would like to add one more cause for the CY_ISR infinite loop.

I am using a CYBLE-012011-00 with BLE. Whenever I called the CyBle_Start() function, I would get the CY_ISR infinite loop. It turns out on our circuit board, the VDDR pin of the CYBLE-012011-00 (VDD Radio) did not have a good connection, so the radio was not powered. Fixing the radio power supply connection resolved the CY_ISR issue. 

0 Likes