This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCSTUDIO: CONNECTING EXE DEVELOPED IN VISUAL STUDIO AND RM46L852 CONTROLLER

Part Number: CCSTUDIO
Other Parts Discussed in Thread: RM46L852, MAX232

Dear Team,

RM46L852 is used as MCU for the application. We have developed an application in visual studio and its bundled as .exe. In application, there ia download button, when i click a txt file will be generated. and this txt file has to be read by RM46 controller the moment download button is created. The ideal interface between PC and RM46 would be Ethernet connection, else Rs232. Kindly suggest in brief , how this can be realised.

 

  • Hi Shruthi,

    To enable your RM46L852 microcontroller to read a text file generated by your PC application when the download button is clicked, you have two main interface options:

    Option 1: Ethernet Connection

    The RM46L852 has integrated Ethernet MAC (EMAC), making this a viable option:

    1. Hardware Setup:

      • Utilize the RM46L852's EMAC peripheral
      • Connect the MCU to an Ethernet PHY chip
      • Use standard RJ45 connection to your network
    2. Implementation Approach:

      • Implement a TCP/IP stack on the RM46L852 (TI-RTOS, FreeRTOS+TCP, or lwIP)
      • Create a simple server on the MCU that listens for incoming data
      • Configure your PC application to send the text file content via TCP/IP to the MCU's IP address
    3. Protocol Options:

      • Simple TCP socket connection
      • HTTP POST request
      • FTP transfer

    Option 2: RS232 Connection (Simpler)

    If Ethernet implementation is too complex:

    1. Hardware Setup:

      • Use the RM46's SCI/UART peripheral
      • Add RS232 level converter (MAX232 or similar)
      • Connect via DB9 or USB-to-Serial adapter to PC
    2. Implementation Approach:

      • Configure UART at appropriate baud rate (115200 recommended)
      • Implement simple serial protocol with start/end markers and error checking
      • Have PC application send file content directly to COM port
    3. Communication Protocol:

      • Define simple packet structure (header, length, data, checksum)
      • Implement acknowledgment mechanism for reliable transfer

    You can find several SCI and Ethernet examples in below link:

    (+) [FAQ] TMS570LC4357: Examples and Demos for Hercules Controllers (E.g. TMS570x, RM57x and RM46x etc) - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums

    --
    Thanks & regards,
    Jagadish.

  • Hi, How to read txt file and extract tall the details inside txt file to arrays or variables in CCS?

  • Hi Shruthi,

    Serial communication tools like Tera term will allow you to send text files directly.

    You can directly select file you want to send and then you can transfer from the tool, so this tool will send byte by byte data on the text file to the controller on the other end over UART. The other end device like micro-controller can receive this data on the UART and can save it to the array.

    --
    Thanks & regards,
    Jagadish.

  • Hi, 

    That means I should use Tera Term also. What I want is I have developed an application where the final code is txt file. When I want to download the application (basically txt file will be generated), without using any tool, txt file will be dumped and we will write the variables in txt file in an array.

  • That means I should use Tera Term also

    Yes, you should use it to send text file data to the controller.