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.

TMS320F28027: Transfer text file to flash

Part Number: TMS320F28027
Other Parts Discussed in Thread: CONTROLSUITE

Hey Gurus, 

I have a question about the reading of a text file to the controller. 

I would like to load the text file to the flash. For example:

Text file can read a percentage such as; 50%. under a file name of flashThis.txt, the controller would open the file and read the 50% and convert to hex and load it into one of the sectors. Using jus a simple USB stick will create the problem of the program maneuvering to the file on its own, which I would like to avoid. 

I am not sure if I would be able to do this through tera term. I know I can maneuver to the file using tera term so that I know exactly what I am uploading. What is the best way for me to approach this problem. 

Regards,

Rajan Joshi

  • Hi Rajan,

    I'm sure you could write a program for the host PC to read the file and send the data out through a serial connection. The MCU would need to listen on the SCI port for new data and flash the data once received.

    Alternately, we have an example for reading from an SD card for F2837xD. You could port this to F2802x and then put your file onto the SD card, which you then connect to the MCU which can read the file contents via SPI.

    controlSUITE\device_support\F2837xD\v200\F2837xD_examples_Cpu1\sd_card\cpu01