# Stm32h723 and freertos hit hardfault when initializing MXUART8\_Init();

**URL:** <https://forums.freertos.org/t/stm32h723-and-freertos-hit-hardfault-when-initializing-mxuart8-init/21463>\
**Category:** Libraries\
**Tags:** debug\
**Created:** [September 19, 2024, 10:16am UTC](https://forums.freertos.org/t/stm32h723-and-freertos-hit-hardfault-when-initializing-mxuart8-init/21463 "2024-09-19T10:16:17Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [September 22, 2024, 7:33am UTC](https://forums.freertos.org/t/stm32h723-and-freertos-hit-hardfault-when-initializing-mxuart8-init/21463/4 "2024-09-22T07:33:08Z")

</div>

The following does not seem right -

```auto
void HAL_Delay(uint32_t Delay)
{
	vTaskDelay(Delay);
}

uint32_t HAL_GetTick(void)
{
	return xTaskGetTickCount();
}

```

Why are you doing that? You likely need to remove it.

> [@gerardnhaiyi](#):
>
> HAL\_TIM\_PeriodElapsedCallback which increments the Ticks is not called at all. Is the tick incremented somewhere else?

This likely means that you have not setup timer interrupt correctly. How did you set it up? You can use CubeMX UI to change the HAL timebase as I have described here - [What I learned about STM32 HAL STOP mode and crash in FreeRTOS - #5 by aggarg](https://forums.freertos.org/t/what-i-learned-about-stm32-hal-stop-mode-and-crash-in-freertos/10247/5).

---

_[View the full topic](https://forums.freertos.org/t/stm32h723-and-freertos-hit-hardfault-when-initializing-mxuart8-init/21463)._
