- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
0x20000000 | 00 | 10 | 00 | 20 | 9b | 00 | 00 | 10 |
0x20000008 | 8d | 22 | 00 | 00 | 8d | 22 | 00 | 00 |
0x20000010 | 8d | 22 | 00 | 00 | 8d | 22 | 00 | 00 |
0x20000018 | 8d | 22 | 00 | 00 | 8d | 22 | 00 | 00 |
0x20000020 | 8d | 22 | 00 | 00 | 8d | 22 | 00 | 00 |
0x20000028 | 8d | 22 | 00 | 00 | 8d | 22 | 00 | 00 |
0x20000030 | 8d | 22 | 00 | 00 | 8d | 22 | 00 | 00 |
0x20000038 | 8d | 22 | 00 | 00 | f1 | 0a | 00 | 00 |
I followed Your advice and apart from systick no other interrupts are working