Home > other >  F4 minimum system board serial port communication problem solving (unacceptable under Linux serial d
F4 minimum system board serial port communication problem solving (unacceptable under Linux serial d

Time:03-29

RT, above the board of the F7 realized before, serial communication, serial port under Windows at the time of the assistant and the cutecom under Ubuntu and write their own procedures to be able to receive packets,

But now because of the project requirements, the F7 above program onto the F4, the problem is that currently the F4 to Win the following serial assistants to normal communication, by not under Linux, however embodied in the just plug in USB port, cutecom on the first will receive a piece of data, but the back, there is no data has been received,

TtyUSB0 under Linux permissions is opened entirely, also still won't do, can someone encountered this problem can be solved?

Now I wonder if the underlying reason, because in F7, I is according to the development of the atomic manual written inside, send data using register,
.
for(i=0; iUsart1_send_char (send_buff);
}

//a serial port to send 1 characters
//ch:
character to be sentVoid usart1_send_char (u8 ch)
{
While ((USART1 - & gt; ISR& 0 x40)==0);
USART1 - & gt; TDR=ch;
}


But in F4 seems don't have the ISR register, so I can directly use the
HAL_UART_Transmit (& amp; UART1_Handler send_buff, sizeof (send_buff), 0 XFFFF);
For data sending,

Could it be this reason, have to know the bosses can give directions

CodePudding user response:

If you confirm you can to win assistant serial port communication, then certainly can hand communication serial port group and Ubuntu, if not, then is Ubuntu is a problem with the driver

CodePudding user response:

reference 1/f, worldy response:
if you confirm you can to win assistant serial port communication, then certainly can hand communication serial port group and Ubuntu, if not, then is the Ubuntu is a problem with the driver

I under Linux installed CH340 drive again, but still won't do, is on the board of F7 can before, but the transfer of the application to the above 4 F not line, I don't know why

CodePudding user response:

If Windows can communicate, on behalf of your program, no problem
  • Related