1 Reply Latest reply on Dec 5, 2013 6:38 AM by robert.seczkowski

    PSoC4 SysTick interrupt

    resh

      SysTick feature is supported in Cortex M0 and hence can be used in PSoC4 as  system tick interrupt to control task switching.     

       

         

       

         

      SysTick is Cortex Vector #15. System API functions CyIntSetSysVector() and SysTick_Config() have to be used to initialize the SysTick and control its frequency     

       

        • 1. Re: PSoC4 SysTick interrupt
          robert.seczkowski

          Could You point me where NVIC memory excactly is:

             

          CM0 heder points to SRAM address where NVIC table is located

             

          My systickirq function has address 0x0000056c

             

          But when I look in SRAM where NVIC should be located :

             

          cyisraddress *ramVectorTable = (cyisraddress *) CY_INT_VECT_TABLE

             

          CY_INT_VECT_TABLE = 0x20000000 (SRAM_BASE)

             

          But the contents of this table is null. No pointers to to ISR functions I've declared:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
          0x20000000001000209b000010
          0x200000088d2200008d220000
          0x200000108d2200008d220000
          0x200000188d2200008d220000
          0x200000208d2200008d220000
          0x200000288d2200008d220000
          0x200000308d2200008d220000
          0x200000388d220000f10a0000
             

          I followed Your advice and apart from systick no other interrupts are working