2024-04-09 07:00 AM
I can not find any example for Usart Multiprocessor, It does not work.
I config on CubeMx and
HAL_MultiProcessor_EnableMuteMode(&huart1);
HAL_MultiProcessor_EnterMuteMode(&huart1);
put this 2 lines.
Solved! Go to Solution.
2024-04-10 03:01 AM
After doing configuration on Cube and setting Address bit to 7 bits, The master should send first byte (address) or by 0x80. for example if the slave address is 0x01, the master should send 0x81.
but now i can not send data from slave to master. i am working on it...
slave code:
main()
.
.
HAL_MultiProcessor_EnableMuteMode(&huart1);
HAL_MultiProcessor_EnterMuteMode(&huart1);
HAL_UARTEx_ReceiveToIdle_DMA(&huart1, buf, sizeof(buf));
while (1)
{
}
2024-04-09 08:32 AM
2024-04-09 11:32 PM
hello @MA4 . thanks for your answer. but it is nit my topic. I could not find anything here
2024-04-10 02:32 AM
Anyway, I have found the solution.
2024-04-10 02:55 AM
@nimaltd Please share the solution for the benefit of others who may come here with the same question.
Then mark that as The Solution.
2024-04-10 03:01 AM
After doing configuration on Cube and setting Address bit to 7 bits, The master should send first byte (address) or by 0x80. for example if the slave address is 0x01, the master should send 0x81.
but now i can not send data from slave to master. i am working on it...
slave code:
main()
.
.
HAL_MultiProcessor_EnableMuteMode(&huart1);
HAL_MultiProcessor_EnterMuteMode(&huart1);
HAL_UARTEx_ReceiveToIdle_DMA(&huart1, buf, sizeof(buf));
while (1)
{
}