Forum Discussion
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by david_cai@Dec 12 2005, 02:18 AM but i still have some uncomfirming issues:
(1)the effect of the option of system library property: "use a seperate exception stack" --- Quote End --- The separate exception stack is not for ISR code, just for the stack that is used by the ISR code. You must add a tightly coupled data memory that is only connected to the cpu's tightly coupled data master and specify this as the separate exception stack. For the ISR code use the dual port tcm that you have. This is only connected to the cpu's tightly coupled instruction master and the cpu's data master (not the tightly coupled data master). Use __attribute__ ((section(".exceptions"))) when declaring a function that should be placed into this memory. If you call an inline function from such an ISR it will be placed into the same section (no __attribute__ required).