Skip to main content
Visitor II
January 21, 2021
Question

Hardfault_handler on __sfputs_r() when using Freertos and X-NUCLEO-IDW0xx1 wifi module.

  • January 21, 2021
  • 1 reply
  • 715 views

Hello everyone,

I am currently doing a project using a Nucleo STM32F401RE with CubeIDE software.

I am trying to use the X-NUCLEO-IDW0xx1 wifi module and the X-NUCLEO-53L0A1 sensor module with FreeRTOS.

For now I succeed to make X-NUCLEO-IDW0xx1 work alone and X-NUCLEO-53L0A1 work with FreeRTOS. But when I'm trying to make all of those three things working together, I obtain a hardfault on __sfputs_r(). I tried everything I could find on the web but for now I'm still stuck.

When using the debugger, here is the error I get on the first printf():

0693W000007CA6aQAG.pngAsk me if you need more informations in order to help me solve this issue.

Thank you in advance for your answers.

Best Regards,

Jean

    This topic has been closed for replies.

    1 reply

    Graduate II
    January 21, 2021

    Look at the code disassembly and registers at and immediately prior to the fault. ie half dozen instructions up to 0x8007D54 and the related C code in the _sfputs_r() code at that point.

    Probably an errant pointer, or some address in memory being objected too.