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.

IWRL1432: Raw ADC Streaming with SPI

Part Number: IWRL1432
Other Parts Discussed in Thread: SYSCONFIG, MMWAVE-L-SDK, IWRL6432AOP

Tool/software:

Hi Ti Team,

I'd like to ask for help to achieve a working connection to stream RawData from IWRL1432EVM Board to PC via SPI with FTDI Cable (as decribed in Resource Explorer under mmwavedemo). I made a .pdf with screenshots of what i am trying to manage. Would be very grateful, if you could help me with this.

IWRL1432_SPI_ADC.pdf

  • Hello.

    Can you please provide the individual screenshots in the post itself?  In addition, have you referred to the SDK documentation regarding streaming data over SPI?  It describes how to set it up for streaming with FTDI in the section 

    Steps for SPI based streaming.

    Sincerely,

    Santosh

  • IWRL1432 Boost with flashed demo (changed sysconfig and compiled in CSS, then flashed in visualizer GUI with built .appimage):

    “motion_and_presence_detection_demo_xwrL14xx-evm_m4fss0-0_freertos_ti-arm-clang”

    ->sysconfig changed in CSS with ADC Streaming via SPI enabled:

    .cfg Sent via Visualizer.exe GUI

    C:\ti\MMWAVE_L_SDK_05_04_00_01\examples\mmw_demo\motion_and_presence_detection\profiles\xwrL14xx-evm\MotionDetect.cfg

    Changed parameters in \MotionDetect.cfg:

    adcLogging 2

    lowPowerCfg 0

    After sending MotionDetect.cfg: Terminal of visualizer.exe still showing “SPI ADC Streaming is not enabled”.

     

     From TI Resource Explorer: xWRL1432 MMWAVE-L-SDK  05.04.00.01:

    “RAW ADC data streaming / Steps for SPI based streaming”

    Connected as seen in picture:

    Figure 1: C232HM-DDHSL-0

    SWITCH S1.6 ON

    adcDataSPIFTDI.exe:

    Tried different Parameter Settings. .txt is generated but only containing “-1”

    adcdata.txt is generated with only containing “-1”

     

    Also tried to configure Radar with CLI Tool C:\ti\radar_toolbox_2_10_00_04\tools\studio_cli\gui\mmw_cli_tool:

    With same .cfg and changed mmwaveconfig.txt (port/ADC/filepath etc.)

    mmwave_studio_cli.exe is connecting the device. Configuring stops after few Parameters “done” without error Code.

     

    Questions:

    Is there a more detailed description of the correct order of the steps below? It says there, that i have to do the steps of adcDataSPIFTDI Application before "SensorStart" command, but as soon i have sent the .cfg via visualizer the device has already executed "SensorStart"?! Whats the correct approach in this case? sending SensorStart with teraterm or mmw_cli_tool?

    2 How do I use adcDataSPIFTDI.exe with TeraTerm/CLI Tool/Visualizer.exe to get raw Data via SPI? Is it necessary to also activate MCSPI in syscfg?

    (The Default Demo of this example without ADC rawdata is working with visualizer, plots showing data etc…)

    from: xWRL1432 MMWAVE-L-SDK  05.04.00.01/ RAW ADC Streaming/Steps for SPI based streaming i used this: 

    • Ensure that switch S1.6 is ON.
    • Run the demo and use configuration with "adcLoggging 2" to enable this feature.
    • Run the adcDataSPIFTDI.exe application located in tools/spi_adc_streaming folder after issuing the configuration (via Visualizer or serial term etc.) and before the sensor start command is sent to device.
    • Give all the inputs to adcDataSPIFTDI application like Device Type, Number of ADC samples, Number of chiprs in burst, Number of burst in frame, Number of Frames, Number of Rx Antennas as given in configuration file. Ensure that this is done before "sensorStart" comamnd is sent.
    • After the demo starts, Raw ADC Data for given number of frames will get stored in a adcData.txt file in spi_adc_streaming folder.
  • Hello.

    Let me look into this and I will have an update by the end of the day tomorrow.

    Sincerely,

    Santosh

  • IWRL1432 Boost with flashed demo (changed sysconfig and compiled in CSS, then flashed in visualizer GUI with built .appimage):

    I know you said you are making the changes and then building, but are you building the demo after making the sysconfig changes or before?  Currently if you enable spi streaming in the base MPD demo, it will fail and a couple of errors will have to be resolved.  Have you 1) made sure you are building the demo after making the sysconfig changes and 2)resolving the errors seen when the demo builds?

    Is there a more detailed description of the correct order of the steps below? It says there, that i have to do the steps of adcDataSPIFTDI Application before "SensorStart" command, but as soon i have sent the .cfg via visualizer the device has already executed "SensorStart"?! Whats the correct approach in this case? sending SensorStart with teraterm or mmw_cli_tool?

    Do you need to send the configuration prior to the adcDataSPIFTDI application?  If you do, you can send the configuration without sensorStart, then run the application, and send sensorStart via teraterm as you suggested.

    2 How do I use adcDataSPIFTDI.exe with TeraTerm/CLI Tool/Visualizer.exe to get raw Data via SPI? Is it necessary to also activate MCSPI in syscfg?

    MCSPI does not need to be enabled as enabling ADC data streaming over SPI will enable sections of code that manually enable and configure MCSPI.  Can you try following the suggestion from the first question and see if that resolves your issues?

    Sincerely,

    Santosh

  • yes, i am building the demo after i changed syscfg. I managed to send all the commands through Putty terminal, so the connection should  be ok now("done" after adcLogging 2 command). Unfortunately my 1432 Board is defect and i had to switch to a IWRL6432AOP. As not to mess up this post, i created a new question in this forum. I think I'm making mistakes when choosing the right parameters for .cfg File and adcDataSPIFTDI. I am not getting any error message.

  • Ok.  I will close this thread and include a link to the new thread just for reference.

    https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/1388606/iwrl6432aop-adc-streaming-via-spi-with-6432aop

    Sincerely,

    Santosh