Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

How do I specify preemption?

Hi Folks,

I have write my own peripherals for NIOS and they are working successfully. Yay. However I need to declare them as accepting pre-emption, I have the VIC core and so far the peipherals jum to their ISRs but it appears that one will not interrupt the other if pre-emption is not enabled, even if the priority levels are set.

On reading the developers handbook and the build tools ref I think I am supposed to add a line in the hw_tcl. However when I add the line:

set_sw_property isr_preemption_supported true

I get an error, I also tried preceding with:

create_sw_package test

I am not really sure how to do this,

could someone offer some advice please?

deBoogle

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The set_sw_property statements go in the _sw.tcl not the _hw.tcl. Can you try adding it there and see what happens?