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.

TMS320F280049C: Query Regarding Log File Generation During SCI Boot Loading

Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi Team,

When we are performing SCI boot loading using the command prompt with the following script:

> serial_flash_programmer_appln.exe -d f28004x -k flashapi_ex2_sci_kernel_Bank0.txt -a flashapi_ex3_live_firmware_updateBANK1FLASH.txt -b 9600 -p COM3

I have a few questions regarding log file generation:

  1. Does this process create any log files automatically?

  2. If yes, in which location are these log files saved?

  3. If not, how can we enable or create log files during the operation?

Looking forward to your guidance.

Best regards,
Nibesh

  • Hi Nibesh,

    The Serial Flash Programmer does not generate log files currently. Log files can be generated for the Serial Flash Programmer during runtime in Visual Studio by using the ILoggerFactory interface, to create a logger and write logs to a text file using a custom logger provided. 

    ILoggerFactory exists as a part of Microsoft logging extensions.

    Thanks and regards,

    Charles

  • Hi Charles,

    Currently, I am using the example package located at:
    C:\ti\C2000Ware_5_04_00_00\utilities\flash_programmers\sci_flash_programmer\sci_flash_programmer

    I am facing the following issues;

    1. I am unable to compile the entire project.

    2. How can I compile and run the project in debug mode?

    3. If running in debug mode is not possible, what is the procedure to create an executable or application file?

    4. Are there any guidelines or datasheets available for this? If so, could you please share them?

    5. I am using this command (g++ can_flash_programmer.cpp -o main) to compile the cpp file, Is this the correct command?
    6. Will you please help me to add the ILoggerFactoryinterface in TI provided code.

      I hope to hear from you soon!

      With Regards,
      Nibesh Khulal


  • Hi Nibesh,

    The project must be compiled using Microsoft Visual Studio.

    The project can be compiled and run in 'Release' mode, not only debug mode. 

    The ILoggeryFactory interface we have not used for this project, so I am not certain on its implementation. Can reach out to the team for more info on this.

    Thanks and regards,

    Charles

  • Hi Charles,

    After compiling, I get the application file in the Debug folder.

    I'm using serial_flash_programmer.exe to upload the code with the following command:

    serial_flash_programmer.exe -d f28004x -k flashapi_ex2_sci_kernel.txt -a led_ex1_blinky.txt -b 9600 -p COM3

    However, it's unable to detect and upload the program.

    What could be the issue?
    Also will you please help me to add ILogger in the code, So that It can map the SCI communication data during bootloading.
    Do I have to implement ILogger for every steps inside the code ?

    Thank you.
    I hope to hear from you soon!

  • Hi Nibesh,

    >After compiling, I get the application file in the Debug folder.

    If the "-a" application file is in the debug folder, have you given the correct path to it? The screenshot above shows the file as 'led_ex1_blinky.txt' without a folder path to it. 

    Thanks and regards,

    Charles

  • Hi Charles,

    Thanks for identifying the issue.

    Actually, I copied the file and saved it in another location. I'm trying to run it from there.
    Do you think this could be the problem?

    Is it not possible to copy an executable application file and run it from a different location?

    I hope to hear from you soon.

    Thanks and regards,
    Nibesh

  • Hi Nibesh,

    Yes, you need to give the full path to the application file:

    serial_flash_programmer.exe -k C2000Ware_6_00_00_00\utilities\flash_programmers\serial_flash_programmer\serial_flash_programmer\flashapi_ex2_sci_kernel -a C2000Ware_6_00_00_00\utilities\flash_programmers\serial_flash_programmer\serial_flash_programmer\led_ex1_blinky.txt -b 9600 -p COM3

    Thanks,

    Charles

  • Hi Charles,

    Thanks a lot for clearing my doubts.

    Thank and Regards
    Nibesh