HardFault_Handler when trying to UART_Transmit interrupt - FreeRTOS STM32F767ZI
I've just started to learn FreeRTOS on CMSIS and im trying to make an interactive menu on a task and I also have another task with an HAL_GPIO_TogglePin just to coexist and see that both tasks are working. The menu text itself is sent to the terminal with no issues, then I send a character thar corresponds to one of the options available. The character is identified correctly and I've setted an informative message to confirm the option and give more instructions, but only the 2 or 3 first characters of the message are sent, then HardFault_Handler is activated.
I've tried some solutions like changing the TIM6 to Systick for the Timebase Source, because some people say that Youtube Tutorials are wrong about changing it to TIM6.
On the image below you can see my Transmit_Callback that I've been using in all my programs before starting to use FreeRtos.
These are the functions that I call on the tasks to send the messages
This is the Menu task:
This is the new_Message function and the option function

The set_rx funtion is to make the Rx flag to 1, in order to let the rx_callback recieve the characters from the user.
Ask if you need more information!