STM32F205RG USART1 transfering not same string.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-10-03 10:17 PM
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); } }
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-10-04 4:47 AM
Posted on October 04, 2016 at 13:47
What is ''AccessPort app''? And what exactly is the problem?
JWOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-10-04 6:14 AM
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..
Up vote any posts that you find helpful, it shows what's working..
