2023-06-25 10:29 PM
Solved! Go to Solution.
2023-06-26 02:06 AM
> I running the code in debug mode to analyze everything.
Don't observe UART registers using debugger while it's running.
JW
2023-06-25 11:21 PM
I even tried the interrupt and the DMA approach but I am not getting it is still not working. I running the code in debug mode to analyze everything. I am giving input from hercules software. But nothing is working. The RxBuffer is showing 0 only. Can anyone please help
HAL_UART_Receive_DMA(&huart2,RxBuffer,3);
__HAL_UART_ENABLE_IT(&huart2, UART_IT_IDLE);
HAL_GPIO_WritePin(LD2_GPIO_Port, LD2_Pin, GPIO_PIN_RESET);
2023-06-26 02:06 AM
> I running the code in debug mode to analyze everything.
Don't observe UART registers using debugger while it's running.
JW
2023-06-26 06:15 AM
You are right, debug mode made problems to the register or even say HAL_Receive_IT/HAL_Receive_DMA functions.