Skip to content

A Smart home system created by STM32cubemx and base on STM32F407vet6 which use freertos

Notifications You must be signed in to change notification settings

qiyudada/STM32F4-Smart-house-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

A Intelligent house system Base on STM32F407 and FreeRTOS created by stm32cubemx

>>Some bug record:

2024/6/28 1.Programme was stuck in Hay_delay() ,because the control system of freertos is based on sysTick timer. Solution: change sysTick base on TIM4 or don't use it or rewrite fuction 2.Programme die in prvTaskexiterror() , before call for xQueueGenericSend() Solution: forget to create the queue of some Task queue handle 3.DTH11 init is failed,because of TIM7 is stuck in get count value function Solution:change delay base on TIM4 ,and verify the ms/ns accuracy

2024/6/30

1.use vTaskdelete to kill the void MQTT_Client_Init(void *Param),result in MQTT break connection Solution: substitute vTaskdelete() for vTaskSuspend(); 2.osPriority setted by hal's freertos doen't match the original priority; Solution: substitute #include "cmsis_os.h" for #include "cmsis_os2.h",use the (osPriority_t) to relieve the limitation of priority is less. 3.Programme through three times start to stuck in vportfree(),consider maybe its stack and heap is overflow,so expand the capacity.but helpless. Solution: after check the process,I find myself create and delete task handle over and over again ,so change the method and add a judge to determine handle or not code : if (G_xMQTT_Client_Task != NULL)
{ vTaskDelete(G_xMQTT_Client_Task); G_xMQTT_Client_Task = NULL; printf("G_xMQTT_Client_Task task deleted\r\n"); }

2024/7/2 1.when create same priority tasks which are running immediately Solution: use Mutex to protect resource avoid being interrupted 2.Programme was stuck in hardware_error,because of stack is overflow Solution:use memset to clear upload buffer.

2024/7/3

1.add lcd and use the spi+dma created by hal library , when send a data after the program will wait hal_ready never exit

call for HAL_SPI_Abort()

image-20240703234418607

About

A Smart home system created by STM32cubemx and base on STM32F407vet6 which use freertos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages