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.

TMS320F2812: Flashing Images over dslite

Part Number: TMS320F2812

Tool/software:

I managed to erase entire flash and flash bootloader.out file using these commands below.

    # Erasing the entire flash memory
    try:
        subprocess.run(
            [
                dslite_path,
                "--config",
                ccxml_path,
                "-a",
                "Erase",
            ],
            check=True,
        )
        messagebox.showinfo("Info", "Entire flash memory erased successfully!")
    except subprocess.CalledProcessError as e:
        messagebox.showerror("Error", f"Failed to erase flash memory: {e}")
        return
# Flashing the bootloader
    try:
        subprocess.run(
            [
                dslite_path,
                "--config",
                ccxml_path,
                "--flash",
                bootloader_path,
            ],
            check=True,
        )
        messagebox.showinfo("Info", "Bootloader flashed successfully!")
    except subprocess.CalledProcessError as e:
        messagebox.showerror("Error", f"Failed to flash bootloader: {e}")
        return

For application, I have an image in .srec format.
I can do this in uni-flash.
However, dslite is not working properly.

However, when I flash srec file like I did bootloader,
It erase entire flash and then flash srec file. I also tried --mode load option but nothing changed.
Can you help me on this one.



  •     # Flashing the application srec file without erasing memory
        try:
            subprocess.run(
                [
                    dslite_path,
                    "--timeout",
                    "60",
                    "--config",
                    ccxml_path,
                    "--flash",
                    application_path,
                    "--load-settings",
                    load_settings_path,
                ],
                check=True,
            )
        except subprocess.CalledProcessError as e:
            messagebox.showerror("Error", f"Failed to flash application: {e}")
            return

    I managed to flash a specific part of memory. You should make a setup containing your flash setting e.g. Flash,Verify Only ( Do not Select Erase option), Unclick all Flash regions and under the Standalone Command Line Section click on Generate Package.
    It generates zip file including your settings in a file called generated.ufsettings.
    File should have settings like that:
    {"Blackhawk XDS560v2-USB System Trace Emulator/C28xx":{"FlashOperations":"Program, Verify","FlashSectorA":false,"FlashSectorB":false,"FlashSectorC":false,"FlashSectorD":false,"FlashSectorE":false,"FlashSectorF":false,"FlashSectorG":false,"FlashSectorH":false,"FlashSectorI":false,"FlashSectorJ":false}}
    Just pass the path of this file onto your command as I shared above. ( --load-settings "settings_path") with other part of command, that's it.