Altera_Forum
Honored Contributor
20 years agoHow to allocation ISR into a faster memory device
Hi everybody:
In order to speed up interrupt responding time, I hope to allocate exception handler and all ISR into a tightly-coupled memory(TCM). So, I do the following steps: 1. add a onchip memory(dual ports) into system and connect it to CPU's tightly-coupled data master and instruction master 2. point exception address to this onchip memory(this step will allocate exception handler into onchip memory) 3. In NiosII IDE, in order to allocate ISR code in onchip memory, I check the option 'Use a separate exception stack'. but after compiling projecct, I found that all ISRs code are not allocated in onchip memory but in SDRAM. WHY? Then I tried the other way, Advanced Placement Options: one piece of my code is as the following shows: void INTERRUPT_1_ISR __attribute__ ((section (".onchip_memory_s1.text"))) (void* context, alt_u32 id) but the following compiling error occur: error: storage size of `INTERRUPT_1_ISR' isn't known interruptible_and_TCM.c Is my code's format wrong? I wrote it base on the Advanced Placement Options which is described in page70 of document "NiosII Software developer's handbook". Thanks any help very much. regards. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/tongue.gif