Hi i have a problem. When i use a sensor with freertos and i put in the same task the function to read the value from the sensor and the osdelay() my task do one misuration and after do nothing. I print the value with the HAL_UART_Transmit.
If i use 2 task, and in first task put the VL53L0X_PROXIMITY_GetDistance() with osDelay, second task never start. I tried to replace osDelay() with other function for context switch but i have same problem.
I don't think is the stack because i Have no HardFault_Handler. Idk because with 2 sensor that i try Give the same problem with osdelay and work with Hal_Delay. Thank you a lot anyway
I don't think is a problem of variable because i try the task only with the function to read the value from a sensor and this work with the Hal_Delay and doesn't work with osDelay
Osdelay() with hal_uart_tramsmit() work Well but when i put in the task a function to read by a sensor the task do one cycle and after doesn't work. The osdelay work with 2 or 3 task Also . The task work with the Hal_Delay but not with the osDelay
I declare the variable in this part of code/* USER CODE BEGIN PV */char str_tmp[100];uint8_t temp_value=0;/* USER CODE END PV */and use this in one task that do simply the measure of the temperature.void StartDefaultTask(void *argument){ /* USER CODE...