Skip to main content
Associate III
July 22, 2026
Question

Program goes into hardfault mode on NUCLEO F767ZI, but not on NUCLEO H7S3L8

  • July 22, 2026
  • 2 replies
  • 21 views

The code I’ve written in main.c for a program on NUCLEO H7S3L8 works perfectly fine, but on NUCLEO F767ZI goes into hardfault mode when reaching line 455 “mfcc_compute(mfcc_left, audio_buffer_16bit_left, mfcc_feature_left);” (more precisely, inside this function, at line 263 “float last = (float)audio_data[0] / (1 << 15);”). Can someone tell me how to solve the problem? I’ve declared arrays static to not go into stack overflow. Can someone tell me how to solve the problem? (Int_mic_F7 is the project for NUCLEO F767ZI while audio.zip is the project for NUCLEO H7S3L8) 

2 replies

mƎALLEm
ST Technical Moderator
July 22, 2026

Hello,

1- How to debug a HardFault on an Arm® Cortex®-M STM32

2- Same code running on a STM32 family but not in the another: did you take into account the memory addresses change/architecture between both products? 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Associate II
July 22, 2026
  /* set Mfcc DPU to controller */  IDPU * p_dpu = MfccTaskGetDpu((MfccTask_t*)spMfccObj);  AppControllerSetPreprocessDPU((AppController_t*)spControllerObj, p_dpu);

 F767ZI seems dont have DPU inside...

s319189Author
Associate III
July 22, 2026

at what line of code should i insert these two suggested lines?