Problem with UART1 DMA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-03 6:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-05 5:44 AM
Hello, anyone help me please!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-05 6:47 AM
So the code worked on one part and not the other? Perhaps the issue isn't the software?
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-05 6:11 PM
Hi Clive, The hardware is my design. Everything seem to be OK (LCD, LEDs and Button). Can you please make a short test on your kit?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-05 6:32 PM
I'm not actively working on F1 designs right now, why don't you test the USART functionality without DMA? Try something like a simple echo back, or looping IRQ
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-05 11:56 PM
thanks for your suggestion but I did those things before and now I want to try with DMA.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-06 5:26 AM
Ok, and those worked on both the original board, and your new board?
I'm not familiar with your design, but if the software worked on one chip with a different pin configuration, and doesn't work on another one, then I would check the HARDWARE thoroughly.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-07 9:52 AM
Ok. Today I tried different codes on my design, just to make sure that is not a UART hardware problem. Everything is OK except the code above.
Can you please re-check is there anything wrong?By the way, I do not really understand why(uint32_t)SERIAL_UART + 0x04
not 0x00?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-07 10:16 AM
Ok. Today I tried different codes on my design, just to make sure that is not a UART hardware problem. Everything is OK except the code above. Can you please re-check is there anything wrong? By the way, I do not really understand why
(uint32_t)SERIAL_UART + 0x04
not 0x00?I skimmed through it, didn't see anything awful in there, perhaps not how I'd do it, but as I said I'm not currently doing development work with F1 parts, and I know very little about your hardware. This isn't something I can easily standup and run. Perhaps you should speak to the people who wrote it? The DR (Data Register) is not at the base of the peripheral, it's offset. You could always use &USART1->DR if you wanted some clarity. Review the Reference Manual for your part.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-07 10:20 AM
One of my F1 DMA TX examples for USART1, about half way down.
Up vote any posts that you find helpful, it shows what's working..
