Should I use xTaskCreate if I want to use UART?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-08 3:53 AM
I want to send data using UART, I've configured everything but I don't get any data output unfortunately.
My question is whether this can be because of the fact that I am doing nothing with xTaskCreate? When should xTaskCreate be used and should I use it in my case?
- Labels:
-
TouchGFX
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-14 2:22 AM
I think I have to write it into the Model::tick function, right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-14 4:50 AM
If you just want something basic working, then yes you can use Model::tick(), but anything you do here is a part of your RENDER TIME for each frame. This is where a different task and an message queue comes into play-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-14 6:37 AM
I think I almost got it, I have problems with NVIC priority and NVIC Enable, if I use it, I get rubbish out of the UART and screen doesn't show up, if I don't use it, the screen shows up but nothing comes out of the UART.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-18 2:37 AM
Almost got it ! The task gets stuck after the following line:
HAL_NVIC_EnableIRQ(UART5_IRQn);
Why is that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-18 4:10 AM
Update: I get '255' out when I transmit the message in DMA mode when using xTaskCreate. Without using xTaskCreate so when calling a function transmits the message fine (although screen doesn't show up).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-18 5:16 AM
I got it working ! :) Thanx for all the help !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-18 5:30 AM
That's great to hear! :)

- « Previous
-
- 1
- 2
- Next »