Writing a multi-stack application that runs on multiple stacks with nested interrupts and separate interrupt stacks

From ErikaWiki

Jump to: navigation, search

Reference test

examples/s12xs/porting_examples/multistack/EEtest4

Description

  • The goal of this test is to activate two tasks that runs on multiple stacks with nested interrupts. The interrupts runs on a separate stack.
  • We changed inside the EEtest4 the eecfg.c file to create the ISRs stack. The program again configures two periodic timers to enable the corresponding interrupt. The ISRs functions explicitly calls ActivateTask for the two tasks. Please note that this small application can be executed to test the behavior of the kernel internal function ready2stacked, the ISRs nesting mechanism and the behaviour of the ISR stack. The kernel functions must be linked and used without problems resulting in an fully linked executable file.

Expected output

When everything is done in the right way, with the following commands we can have the executable file:

  • open a Cygwin shell
  • cd into the Debug directory
  • the commands make clean and make all should work correctly producing an executable inside the Debug directory.

To simulate the application we can use directly the hardware or a "good" software debugger.

Personal tools