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.

Linux/AM5728: File copy from UART to eMMC

Part Number: AM5728

Tool/software: Linux

I wanted to copy any file format(.bin,.txt,.c,.exe etc) into the processor Emmc for the same what i am doing is,i have open new UART port into the processor am5728 Eval_Board this UART port connected to the host PC using USB to serial converter. so i need to send my file through this new port with the help of any protocol(x,y,z ,kermit or gtkterm send option).Now i am using Gtkterm send raw file option,but how i receive that file at receive end obviously there is no chance to open that new uart port through gtkterm and save the raw file. my doubt is that :

1) how can i receive that file, is there any need to write any application?

2) can i use serial console to receive that file( so with the help of save raw file option on the serial console i can able to save the file)

3) Is it possible to receive that file by doing cat > file < /dev/ttyUSB0. on serial console(debug port).

Thank you!!!

  • Hi Tejas,

    Do you use AM57x TI PSDK? Which version?

    You need to copy the file from UART to DDR memory, then you can flash this file from DDR to eMMC.

    Regards,
    Pavel
  • Hello sir!

    1) Yes we are using PSDK.

    2) Actually we do not want to flash it into EMMC we wanted to copy files into EMMC through serial port, so will it be possible with X/Y/Z modem protocol??

    Thanks,

    tejas

  • Tejas,

    This is a pretty generic Linux question and you will probably find many more solutions researching in the broader Linux community.

    Any time you "write" to an eMMC, you are flashing it as eMMC is a managed NAND memory. Pavel's answer above it spot on and there are a variety of ways to achieve that. Using something on the EVM to do xyz modem should be fine. However, I don't believe we include anything provides this in our default FS.

    Effectively you need to set up the port and then send and receive data. stty may be a simple option for you and I believe you can find examples on the web.

    I hope this is helpful.