Skip to main content
Visitor II
April 24, 2021
Question

freertos + flashwrite gives hardfault

  • April 24, 2021
  • 1 reply
  • 579 views

Hii all,

ım using stm32f103c8t6 and trying to implement freertos project,

i have flash write function and it work very well but when i use it in freertos project, if ı call write flash func before vTaskStartScheduler it is okey but after vTaskStartScheduler from any of task it gives hard fault.

what can go wrong

it tried tasksuspend , taskenterritical, disable_interrupt but none of them helped,

any sugestions, thanx s

    This topic has been closed for replies.

    1 reply

    Visitor II
    May 3, 2021

    Hello @SOZKA.1​ ,

    Can you share the example so I can reproduce your issue ?

    Thanks in advance.

    Walid