This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cortex M4 and ARM FIR Q15 Hardfault

Hi

I have tried to test CMSIS DSP FIR library in my STM32G474. Unfortunately after writing a simple test code, where i have prepared input signal and fir coefficients (by Matlab, verified) processor after executing arm_fir_q15 instruction goes to the HardFault. Im using newest DSP library from the Github. arm_mat.h 1.7.0, amr_fir_init_q15.c 1.6.0 and arm_fir_q15.c 1.6.0. 

Its hard to catch where exacly processor goes to the debug (lots of clicking in debug step by step instruction execution) but what is strange for me that processor executes a code an function arm_fir_q15_1_8_mve from arm_fir_q15.c whith is not defined! (my IDE shoudnt compiled this). However when i removed this function and forced software to use standard arm_fir_q15 function , HardFault appears also. I have also tried older 1.5.1 version of amr_fir_q15.c but result is the same.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) 2020 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
*
******************************************************************************
*/
/* USER CODE END Header */
/* Includes ------------------------------------------------------------------*/
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

0