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.

Open source example for SWD flashing

Other Parts Discussed in Thread: UNIFLASH, SEGGER, MSP-FET

Is there any TI open source example for flashing (all) TI ARM devices by SWD? Something like this from Silicon Labs for EFM32 devices...

AN0062 Programming Internal Flash Over the SWD Interface

AN1011 Standalone Programmer via the SWD Interface

  • Hello Zrno

    No, we do not have such a document or tool. The tools like UniFlash from TI are not Open-Source.

    If you are looking for an open-Source tool, then I would suggest openocd.
  • Hi Amit,

    May I note that my firm has enjoyed great success in programming & debugging: LM3S, LX4F & TM4C123 via IAR and J-Link - always and only via SWD. (and multiple other ARM MCUs (M0, M3, M4, M7 from other ARM vendors)

    J-Link is available from Segger at great (educational) discount - and you need not claim "student status" to receive the discount.
    Note too that J-Link & IAR have existed far longer than (local/vendor) versions - most always prove superior - and enable one to choose the best part from many vendors...
  • Amit Ashara said:
    No, we do not have such a document or tool. The tools like UniFlashfrom TI are not Open-Source.

    Uniflash is PC side that is communicate with on board JTAG / SWD master, and this is not what I am writing about.

    Amit Ashara said:
    If you are looking for an open-Source tool, then I would suggest openocd.

    Open OCD is PC side that is using hardware device / glue logic for JTAG / SWD communication with target device. I can find something there, but this is not what I need.

    cb1 said:
    May I note that my firm has enjoyed great success in programming & debugging: LM3S, LX4F & TM4C123 via IAR and J-Link - always and only via SWD. (and multiple other ARM MCUs (M0, M3, M4, M7 from other ARM vendors)

    Thank you for info, but I don't need J-Link.


    I was thinking on something like on Silicon Labs example, where one microcontroller (ARM or not, irrelevant) is SWD master device, and another is ARM target, under master control, with direct connection between them. Something like slau320 for MSP430 devices.

    TI MSP FET hardware / dll / firmware is open source (http://www.ti.com/tool/mspds

  • Hi,

    Try CMSIS-DAP for what you need.

  • zrno soli said:

    I was thinking on something like on Silicon Labs example, where one microcontroller (ARM or not, irrelevant) is SWD master device...

    Aha - I "get" your objective now - perhaps similar description (w/out requiring "helpers" to divert to link) proves more effective.

    Agree w/poster Petrei and also Xilinx App Notes - aimed at past FPGAs - detailed such methods for, "On the Fly" (i.e. Dynamic) FPGA programming via board mounted MCU...  (appears well matched to your desire - now that you've further detailed...)

  • Let me finish last line breaked by forum.

    TI MSP-FET hardware / dll / firmware is open source (http://www.ti.com/tool/mspds) and it is able to program / debug also MSP432 that is Cortex-M4 device, so I was thinking that TI ARM tools are also open source.

  • Such response must come from the vendor. I find that (most) vendors are (somewhat) guarded in releasing such info...
  • zrno soli said:
    so I was thinking that TI ARM tools are also open source.

    The thread Is it possible for TI to release XDS110 TM4C firmware? has a response from July 2016 that it was intended for the XDS110 is to be an open design, but there was some ongoing development work required.

    Also, other threads have mentioned that a standalone XDS110 is in development, which unlike the onboard XDS110's will support a configurable voltage supply.

    I haven't seen the source for the XDS110 firmware yet.

    [There is also the thread MSP432 and XDS110-ET asking about the availability of the XDS110 firmware source code, which didn't get a reply from any TI employee]