From 1e928debb351c32e8f17998552ab4ce453f1a78e Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 13 Sep 2014 08:18:23 +0000 Subject: Fixed bug #533. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7264 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- ...x-IRQ_STORM_FPU (OpenOCD, Flash and Run).launch | 52 ++++++++++++++++++++++ testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c | 9 ++++ 2 files changed, 61 insertions(+) create mode 100644 testhal/STM32/STM32F4xx/IRQ_STORM_FPU/debug/STM32F4xx-IRQ_STORM_FPU (OpenOCD, Flash and Run).launch (limited to 'testhal/STM32/STM32F4xx') diff --git a/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/debug/STM32F4xx-IRQ_STORM_FPU (OpenOCD, Flash and Run).launch b/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/debug/STM32F4xx-IRQ_STORM_FPU (OpenOCD, Flash and Run).launch new file mode 100644 index 000000000..198b9537a --- /dev/null +++ b/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/debug/STM32F4xx-IRQ_STORM_FPU (OpenOCD, Flash and Run).launch @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c b/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c index 7ec769a9c..ad81f8b48 100644 --- a/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c +++ b/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c @@ -147,6 +147,12 @@ static const GPTConfig gpt3cfg = { /* Generic demo code. */ /*===========================================================================*/ +CH_FAST_IRQ_HANDLER(Vector184) { + + while (1) + ; +} + static void print(char *p) { while (*p) { @@ -183,6 +189,9 @@ int main(void) { unsigned i; gptcnt_t interval, threshold, worst; + /* Enables FPU exceptions.*/ + nvicEnableVector(FPU_IRQn, 1); + /* * System initializations. * - HAL initialization, this also initializes the configured device drivers -- cgit v1.2.3