7 Replies Latest reply on Feb 9, 2015 12:04 PM by rohit.kumar

    ISR enable is blocking the rest of main()

    adrienne.payne

       In my current PSoC 4200BLE project the enabling of an isr seems to "block" the rest of the main function.

         

      In main there is a for loop after the ISR is enabled where I want to "print" to the UART some data calculated in the ISR, but the system naver reaches that part of the code:

         

      CyGlobalIntEnable; 

         

      isr1_Disable();

         

      isr1_SetVector(InterruptHandler1);

         

      isr1_Enable();                                                                                     

         

      for(;;)

         

          {   

         

              UART_UartPutString("in main \n");

         

          }

         

      If I don't enable the ISR, the message in the for loop is sent. But if I do enable the ISR, it is not.