Writing a multi-stack application that runs on multiple stacks with interrupt not nested

From ErikaWiki

Jump to: navigation, search

Reference test

examples/s12xs/porting_examples/multistack/EEtest2

Description

  • The goal of this test is to activate two tasks that runs on multiple stacks with interrupt not nested.
  • We changed inside the EEtest2 the C file with the main() function. The program configures a periodic timer to enable an interrupt. The ISR function explicitly calls ActivateTask for both the tasks. Please note that this small application can be executed to test, in a particualar case, the behavior of the kernel internal function ready2stacked, and of the ISRs in the MULTISTACK case. 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