Skip to main content
Senior
April 9, 2024
Solved

Usart Multiprocessor

  • April 9, 2024
  • 5 replies
  • 1468 views

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.

This topic has been closed for replies.
Best answer by nimaltd

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)

{

}

5 replies

Senior
April 9, 2024
nimaltdAuthor
Senior
April 10, 2024

Anyway, I have found the solution.

Andrew Neil
Super User
April 10, 2024

@nimaltd  Please share the solution for the benefit of others who may come here with the same question.

Then mark that as The Solution.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
nimaltdAuthor
Senior
April 10, 2024

hello @MA4 . thanks for your answer. but it is nit my topic. I could not find anything here

nimaltdAuthorBest answer
Senior
April 10, 2024

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)

{

}