Cortex-M3 vector_catch testing support
commit2a0c9b08d7ee0c1b0eb5b593d18f68d0c910927d
authorDavid Brownell <dbrownell@users.sourceforge.net>
Wed, 20 Jan 2010 19:07:42 +0000 (20 11:07 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Wed, 20 Jan 2010 19:07:42 +0000 (20 11:07 -0800)
treee1b860436ba0e5c491aaa41714ef39b3e6e743ae
parent22d25e69213c49395ee0d40f6cc1eda935873ed2
Cortex-M3 vector_catch testing support

The "cm3-ftest.cfg" can be used to verify that OpenOCD handles
certain faults correctly:

 - Test #1: it ignores faults that it wasn't told to catch
 - Test #2: if vector_catch is told to catch, it catches

The "fault.c" generates ASM code to trigger faults, while the
config script loads and runs pre-compiled code.

This covers most, but not all, of the vector_catch options.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
testing/examples/cortex/cm3-ftest.cfg [new file with mode: 0644]
testing/examples/cortex/fault.c [new file with mode: 0644]