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.

IWR1443: Bootloader over SPI or UART

Part Number: IWR1443
Other Parts Discussed in Thread: TIDEP-0091, UNIFLASH, AWR1243,

Dear TI Team,

We are integrating IWR1443 into our system,  with another MCU as master controller communicating over SPI with IWR1443.

Our design contains one dataflash attached to master controller, we do not want to use additional dataflash with IWR1443 for firmware storage.

Our requirement is an example bootloader source over one of the serial protocol for IWR1443. Existing reference material available at TI website seems to be insufficent to address the requirement.

We came across https://e2e.ti.com/support/sensor/mmwave_sensors/f/1023/p/672455/2474702

  • Hello Atul,

    I'd recommend looking at the TIDEP-0091 for examples on integrating with external MCU over SPI.

    Let me know if you have more questions on it!


    Cheers,
    Akash
  • Hello Akash,

    Thanks for the reference link, but I already pointed to a thread where you mentioned it and it is limited to SPI communication only.

    Our requirement is example bootloader for IWR1443 over SPI or any other serial protocol. 

    Thanks and regards,

    Atul

  • Hey Akash,
    To help clarify this, I think Atul is referencing Section 3.5.1 of the technical reference manual (Table 3-9) or section 6.8 of the datasheet.

    Atul,
    Correct me if my statement above as not right. Are you looking for functional mode or flash mode with QSPI?

    Best,
    Nick
  • Hi Nick,

    Yes, your statement is right about my query!

    In the section 6.8.2 of IWR1443 datasheet it is mentioned that ,

    "If a valid image (or the QSPI Serial Flash is not found), the bootloader initializes the SPI port and awaits
    for the image transfer. This operation comes handy for configurations where the IWR1443 is interfaced to
    an external processor which has its own nonvolatile storage hence can store the user application and the
    IWR1443 device’s firmware image."

    My query is for application note supporting above statement from TI, with a example utility or firmware for external processor which loads User Application and Radar Patch to IWR over SPI.

    Regards,

    Atul

  • Hi!
    It's my condition too, what's the protocol for load the firmware? In IWR443BOOST usb port is connected to XDS110 "support" processor and I don't know how it load and what the protocol for Uniflash. Someone can help me?
  • Atul,

    Within the Radar SDK:

    check this is reference implementation for SPI bootloading: pdk\packages\ti\drv\vps\src\devices\radar_ar12xx\src\bspdrv_ar12xxFmwPriv.c

    Best,

    Nick

  • Atul,

    The overall SPI boot mode and sequence is described in section "2.3 Bootmode – SPI" of the Bootloader Flow app note at: www.ti.com/.../swra561.pdf. The SPI protocol and APIs used during the download are described in the AWR1xxx Radar Interface Control Document in the DFP package docs directory (DFP is installed as part of Radar SDK mentioned below or can be downloaded separately from: www.ti.com/.../mmwave-dfp). The main download API is described in section "10.1.4 rlDeviceFileDownload".

    As a code reference, the Radar SDK mentioned previously (actually named PROCESSOR-SDK-RADAR) can be downloaded from the following link.
    www.ti.com/.../PROCESSOR-SDK-TDAX

    And the full path to the file mentioned previously (after installing PROCESSOR-SDK-RADAR) is:
    <RadarSDK>\ti_components\drivers\pdk_01_09_00_17\packages\ti\drv\vps\src\devices\radar_ar12xx\src\bspdrv_ar12xxFmwPriv.c

    This file contains a function named Bsp_ar12xxFmwSpiDwld() which downloads the three required images (BSS, MSS, Config (mem_swap)). If you look at the code you will see it eventually calls the mmWavelink API rlDeviceFileDownload() function from the mmWave DFP package (included with the PROCESSOR-SDK-RADAR install). This function is found in the source code at <RadarSDK>\ti_components\radar\mmwave_dfp_01_00_00_01\ti\control\mmwavelink\src\rl_device.c and is described in the DFP mmwavelink Doxygen at:<RadarSDK>/ti_components/radar/mmwave_dfp_01_00_00_01/ti/control/mmwavelink/docs/doxygen/html/group___device.html

    Please mark the thread as answered if the question is resolved or reply if more support is required.

    Best Regards,
    John

  • John,

    Thank You!

    Since you bookmarked the post with IWR1443, I assue the information is equally applicable for bootloading of IWR1443.  I will definitely look into it.

    One quick query, does the example contains code reference for SPI master at other end may be a MSP32 or TIVA ARMCM4F? Is there any?

    Thanks and regards,

    Atul

  • Atul,

    The Radar SDK code (based on TDA) is the only SPI-boot reference currently.

    Regards,
    John
  • Hi

    In the SWRA561 document it is written that booting from sflash is for development phase only.
    In the deployment phase you need to use the SPI boot.
    Given that I will have to use a very small controller to obtain the distance measured by the IWR1443 and that it is unthinkable for this controller to load via SPI the firmware at each power on since the product will be used in ON/OFF mode and the final consumption will have to be <3.5mA, can I think of using the boot from QFLASH also on the production boards?
    To do this, how can I connect UNIFLASH to the IWR? Do I have to go through the XDS110?
    Thanks Nino

  • Hello Nino,

    The SPI boot mode described in the SWR561 (AWR1243 Bootloader Flow) doc is the same for IWR1443. However, the notes about only using SFLASH for development mode only apply to AWR1243, not IWR1443. For IWR1443, SFLASH should be present for production as well.

    Uniflash is the standard way to communicate between a PC and the IWR1443 on the IWR1443BOOST EVM to write the firmware to the SFLASH on the EVM. It uses the UART to USB converter on the EVM so that Uniflash just sees and uses a standard COM port on the PC to talk to the IWR1443.

    If you have more questions about flashing please feel free to open a new thread so we can keep this one focused on the original SPI boot topic.

    Thanks,
    John