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.

AWR1642BOOST: Error in running lua scripts

Part Number: AWR1642BOOST

Hello,

I've built two scripts, init_mmwave_Studio.lua and transmit_signal.lua, based on the mmwave studio script. As per requirement of the project, I was able to capture the data for 8 minutes, which was confirmed by the size of the data.(See Pic-1). I have, however, been experiencing two errors.

  1. The script publishes the message "***Script completed successfully.***" after 1:10 seconds and the message "Frame Ended" after 2 minutes(See Pic-2). In fact, it should be displayed after 8 minutes if the script is successfully completed. Could you please review the given script and assist me in resolving the issue?
  2. There is repeated printing of the message "Time Unit report async event received!" Could you please explain what this notification means and ensure that the data is being collected correctly?
    Could you please explain what this notification means and ensure that the data is being collected correctly?

I've included a screenshots(Pic-1 and Pic-2) and the scripts that were written.

   mmwave_code.zip

         Pic-1                                 Pic-2                                                                        Scripts

Regards

Arjun

Regards

Arjun

  • Hi,

    Do you get these warning if you try to capture a smaller number of frames, for example 100?

    thank you

    cesar

  • Hi Cesar,

    Yes, You can also check from the attached pic the appearance of the warning at the time of frame starts, and continued for 2 minutes. I have also provided the lua scripts for detailed investigations.

    Regards

    arjun

  • Hi,

    in the script

    init_mmWave_Studio.lua, can you please make following change in order not to enable Low Power Mode. Let's see if the behavior changes

    thank you

    Cesar

    if (partId == 1642) then
        if (ar1.LPModConfig(0, 0) == 0) then
            WriteToLog("LPModConfig Success\n", "green")
        else
            WriteToLog("LPModConfig failure\n", "red")
        end
    else
        if (ar1.LPModConfig(0, 0) == 0) then
            WriteToLog("Regualar mode Cfg Success\n", "green")
        else
            WriteToLog("Regualar mode Cfg failure\n", "red")
        end
    end

  • Hi Cesar,

    I made the changes as per your suggestion, but it shows the additional LP mode failure. Please see the below screenshot. I would also like to highlight that data is being collected while the NERR_OUT Led is red(See video file).

          

    Regards

    Arjun

  • Thank you

    Could you try this script provided with mmWave Studio

    C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Scripts\DataCaptureDemo_xWR.lua

    Does this script work on your board?

    Thank you

    Cesar

  • Hi,

    I received the same error with another error. Can you also tell me the meaning of the I am getting? 

    Regards

    Arjun

  • Hi,

    Please give us some time to get back to you

    thank you

    Cesar

  • Hi Cesar,

    I have been still waiting for your response. Could you please update me?

    regards

    Arjun

  • Hi, 

    So the error you are getting here is due to mmwavestudio not being able to locate the bitoperations.lua file which is referenced in DataCaptureDemo_xWR.lua. It seems like it is looking for the file inside C:\ti\mmwave_studio_02_01_01_00\\ directory when it should be looking inside C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Scripts. 

    To ensure the problems you are having are not related to missing files or incorrect file paths, could you verify that you have a bitoperations.lua file located inside your mmwave studio directory which in this case would be C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Scripts and check that the DataCaptureDemo_xWR.lua file has the correct pathways as shown below 

    Let us know what results you get after verfiying

    best, 

    Bhuiyan

  • Hi Bhuiyan,

    I verified that the bitoperations.lua file is in the C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Scripts directory, and the DataCaptureDemo_xWR.lua file has the correct path as well. Please check the attached screenshots.

       

    Please let me know your opinion.

    Regards

    Arjun

  • Hey Arjun,

    We are still concerned this issue may be due to incorrect file paths. We noticed that in your screenshot, the file path for your BSS FW and MSS FW are not the default filepaths. When mmwave studio is installed, the device specific firmware is located in the C:\ti\mmwave_studio_02_01_01_00\rf_eval_firmware folder while in your configuration it is looking for the firmware in C:\ti\mmwave_studio_02_01_01_00\Scripts\..\..\rf_eval_firmware. 

     

    I recommend deleting and reinstalling mmwave studio as this is a novel issue that maybe due to mmwave studio being unable to find all the files referenced in your lua scripts. Try running the scripts after reinstalling and let us know the results

     

    Best,

    Bhuiyan Rifat al hadi

  • Hi Bhuiyan,

    I think I noticed the problems. Actually, I'm using two scripts: transmit_signal.lua and init_mmwave_studio.lua. My friend wrote the scripts, and I just ran them from the C:\ti\mmwave_studio_02_01_01_00\ folder to capture the data. The attached snapshot shows the locations of the scripts, BSS, and MSS paths.

    I don't know a lot about Lua programming. Therefore, it would be wonderful if you could assist me in resolving the problems by offering thorough instructions on placing the scripts appropriately and changing the path. I have attached both scripts herewith.

    One way is to replace the TI written scripts from this location C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Scripts\mmWave_Code with my scripts updating with the same path as given in TI scripts. However, I am afraid it might damage the device.

         Data_cature_scripts.zip

    Regards

    Arjun

  • Hi Arjun,

    I recommend reinstalling mmwave studio and placing and running your scripts from C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Scripts folder. That is is the environment the example scripts from TI are designed to run in. 

    If you want your lua script to be path independent, you can include full file paths for all the references to other files in your script as I see you friend has done for some of his paths, but I can not verify if that is the case for all their paths. Your current mmwave studio environment is modified which is why some TI scripts are not working. DataCaptureDemo_xWR.lua is designed to be run from C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Scripts and not from C:\ti\mmwave_studio_02_01_01_00 as it looks like in your screenshot. The script will fail if it is not run from the correct folder. This why the recommendation is to reinstall mmwave studio to reset to the default environment and running all TI provided scripts from the scripts folder and running custom scripts from the scripts folder or wherever the author of the script intended for them to run from. 

    Best,

    Bhuiyan