I'm using a rs485 IC. I transmit and receive data through it. When I send small amount of data like 10-20 there is no problem but when I try to receive more than 40 HAL_UARTEx_ReceiveToIdle makes nonsense. It receive data different then what I send o...
Hi everyone,I'm using STM32g491 and rs485 modules. I'm trying to transmit data from uart1 with DMA when I receive data. There is a dilemma it transmit data but also does not? When I try to send a buffer which defined on stm's code, it transmits but w...
I use MAX9611 to measure current. It has 2 register to read current. 12 bits divides 2 bytes. MSB(8 bits) and LSB(4 bits). I tried to read only MSB but I couldn't, Can anyone help me? Note: there is no externall pull up res, I configure an internal p...
Hi everyone,I write a function to start all other functions without any parameter like Start(); in while, but in this funciton I write different function like thisvoid Start() { if(huart->Instance == USART1) measure(tx1_buffer); ...
Oh, I'm sorry, typed wrong it here. It should be HAL_UARTEx_ReceiveToIdle_DMA. But this is not my problem, as I said above when I use it for only receiving there is no problem but when I want to transmit and receive data something goes wrong and I wa...
Thank for your reply,I solve the problem mentioned in question but there is still problem. I write a GUI with C#, I check if data come from guı from STM's debug and every time I send I can see it on debug. When it comes UARTs, I know it bcs I'm also ...
Hi, Thanks for your reply and apologize to answer too late. I change my IC and reset enable pin in error and rx callback and problem solved. HAL_GPIO_WritePin(DNM_EN_GPIO_Port, DNM_EN_Pin, 0); And also the quotation that you give from the kod, it was...
First of all thank you for your reply,I wondered how could I check if line is idle and search for it. I saw it in a video and I implemented it. When I debug code, it returns HAL_OK every time. But I will check and make it in a proper way. I check MAX...
Firstly thank you for your reply,To be clear about what I want to do void dataSend(UART_HandleTypeDef *huart) ----> there is a parameter
{
if(huart->Instance == huart1.Instance)
{
memset(&tx1_buffer, 0 ,sizeof(tx1_buffer)...