PSoC4 SysTick interrupt

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

cross mob
Anonymous
Not applicable

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     

 

0 Likes
1 Reply
Anonymous
Not applicable

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

0 Likes