cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F205RG USART1 transfering not same string.

tony1987
Associate
Posted on October 04, 2016 at 07:17

Hello, everyone.

AccessPort app was used for test.

AccessPort prints ''0x00, 0x55, 0x55, 0x55, 0x55, 0x55, 0x79, 0x3D''

Test code is as follows;

int main(void)

{

    char szTemp[8] = {0x55, 0x55, 0x55, 0x55, 0x55, 0x0D, 0x0A, 0};

    uart_init();

    led_init();

    //Uart_SendString(''hello STM32F205..!!!\r\n\0'');

    Uart_SendString(szTemp);

 

  /* Infinite loop */

  while (1)

  {

      Delay_ms(500);

        GPIOC->BSRRH |= (1 << 2);

        Delay_ms(500);

        GPIOC->BSRRL |= (1 << 2);        

  }

}

2 REPLIES 2
Posted on October 04, 2016 at 13:47

What is ''AccessPort app''? And what exactly is the problem?

JW

Posted on October 04, 2016 at 15:14

Assume for a second it is not an issue with the code shown, show the code that actually outputs the string.

Use a debugger, confirm that the static data in memory reflects the data you expect to be sent.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..