Skip to main content
vnd241092
Associate
May 4, 2014
Question

Problem with UART1 DMA

  • May 4, 2014
  • 10 replies
  • 2224 views
Posted on May 04, 2014 at 03:14

The original post was too long to process during our migration. Please click on the attachment to read the original post.
    This topic has been closed for replies.

    10 replies

    vnd241092
    vnd241092Author
    Associate
    May 5, 2014
    Posted on May 05, 2014 at 14:44

    Hello, anyone help me please!!!

    Tesla DeLorean
    Guru
    May 5, 2014
    Posted on May 05, 2014 at 15:47

    So the code worked on one part and not the other? Perhaps the issue isn't the software?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    vnd241092
    vnd241092Author
    Associate
    May 6, 2014
    Posted on May 06, 2014 at 03:11

    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?

    Tesla DeLorean
    Guru
    May 6, 2014
    Posted on May 06, 2014 at 03:32

    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

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    vnd241092
    vnd241092Author
    Associate
    May 6, 2014
    Posted on May 06, 2014 at 08:56

    thanks for your suggestion but I did those things before and now I want to try with DMA. 

    Tesla DeLorean
    Guru
    May 6, 2014
    Posted on May 06, 2014 at 14:26

    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.
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    vnd241092
    vnd241092Author
    Associate
    May 7, 2014
    Posted on May 07, 2014 at 18:52

    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?

    Tesla DeLorean
    Guru
    May 7, 2014
    Posted on May 07, 2014 at 19:16

    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.

    0690X00000604xYQAQ.png

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    May 7, 2014
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    vnd241092
    vnd241092Author
    Associate
    May 7, 2014
    Posted on May 07, 2014 at 19:48

    Thank Clive so much for supporting me. I solved the problem. I think the Author wants to segmentalize his code and make it difficult to use. For this reason, I will not public how to fix it. Now it work perfectly.

    By the way, my email is vnd241092@gmail.com. I would be happy if we have more talk ^^