Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

AM6442: UART in circular mode

Part Number: AM6442
Other Parts Discussed in Thread: SYSCONFIG

Dear TI expert

From my understanding  current SDK for UART RX is transaction based where it requires finate bytes count.

Using Sysconfig "User Managed Interrupt" we have implemented a UART with circular buffer, so the processor does not have to re-init UART transaction. 

Attached is sample source code.uart_circular.h uart_circular.cUART_Circular_readme.zip

Would you consider to implement something similar for future SDK release

 

  • Attached is sample source code.uart_circular.h uart_circular.cUART_Circular_readme.zip

    Would you consider to implement something similar for future SDK release

    Hey few points I wanted to clarify.

    Can this example be tested on the TI EVM? Or did you test this on your custom board?

    Also is this a UART Echo sort of an example? Or it requires some HW setup including jumper wires?

    Regards,

    Vaibhav

  • Attached is uart_echo_circ.zip

    Compile and run \uart_echo_circ\multicore\tx , it will do UART TX and RX  on MCU UART 1. You can use EVM and put a loop back wire between 

    The program will TX  variable length FRAME for 500 frames and print statistics. on both RX and TX  and It will repeat the process.

    Details in readme.md

    TX start and RX init is called only once.uart_echo_circ.zip

  • Hi Alan,

    I will run this and let you know by the starting of next week.

    Regards,

    Vaibhav

  • Hi Vaibhav

    uart_echo_circ_2.zip

    Attached is update zip file. Is has cleaner statistics report

    CORE0 rx_total_bytes=140826 rx_frames_crc_ok=1000 rx_frames_crc_fail=0 rx_frames_length_fail=0 rx_dropped_length_bytes=0 rx_dropped_crc_bytes=0 rx_dropped_sync_bytes=0 rx_dropped_ring_full_bytes=0 rx_dropped_discontinuity_bytes=0 rx_dropped_line_error_bytes=0 rx_dropped_partial_bytes=0 rx_overruns=0 rx_line_errors=0 rx_frames_consecutive=999 rx_frames_nonconsecutive=0 rx_fifo_max_depth=31 tx_fifo_max_depth=35 rx_ring_occupancy=0 rx_ring_max_depth=2502 tx_fifo_frames=1000 echo_queued=0 echo_dropped=0 tx_completed=1000 tx_errors=0
    CORE0 rx_last_frame_length=132 rx_last_frame=A5 5A C3 3C E7 79 00 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 30 E8 F4 FC
    CORE0 rx_total_bytes=209449 rx_frames_crc_ok=1500 rx_frames_crc_fail=0 rx_frames_length_fail=0 rx_dropped_length_bytes=0 rx_dropped_crc_bytes=0 rx_dropped_sync_bytes=0 rx_dropped_ring_full_bytes=0 rx_dropped_discontinuity_bytes=0 rx_dropped_line_error_bytes=0 rx_dropped_partial_bytes=0 rx_overruns=0 rx_line_errors=0 rx_frames_consecutive=1499 rx_frames_nonconsecutive=0 rx_fifo_max_depth=31 tx_fifo_max_depth=35 rx_ring_occupancy=0 rx_ring_max_depth=2502 tx_fifo_frames=1500 echo_queued=0 echo_dropped=0 tx_completed=1500 tx_errors=0
    CORE0 rx_last_frame_length=35 rx_last_frame=A5 5A C3 3C DB 18 00 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 73 6F CC B8
    CORE0 ...

  • Hi Alan,

    Thanks for your message.

    Please expect responses in sometime.

    Thanks,

    Vaibhav

  • Vaibav

    Thank you for looking into this proposal.

    Let me know if you need more information

  • Hi Alan,

    We can have this example tied to the following external repository which we maintain. This repository contains examples outside of the standard MCU+ SDK which we ship as a part of software offering.

    Link: https://github.com/TexasInstruments/Beyond-SDK

    Please let me know if this will be feasible for you.

    Regards,

    Vaibhav

  • Hi Vaibhav looks good.

  • Hi Alan,

    I am going to check if the example you have worked on can be clubbed into the Beyond SDK github repo from customer's end.

    We are checking on this possibility where you can initiate a pull request, we can review the code and then accept it. This will in turn help the community as well.

    I will keep you posted on this!

    Thanks,

    Vaibhav