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; i
}
//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 driverCodePudding user response: