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.

IWR1642BOOST: People count example does not start due to com ports issue

Part Number: IWR1642BOOST
Other Parts Discussed in Thread: UNIFLASH

I am running ES1.0 with SDK 1.2.0.5, Industrial toolbox 2.3.0

I have loaded the firmware on the EVM and when I try to start the application I get the following error

Initially the XDS110 port numbers were 5 and 4. the GUI still showed 10 and 11. I have changed them from the control panel to be 10 and 11. still the same problem.

I have also compiled the example and loaded it from CCS 7 and still have the same problem.

the mmwave SDK demo runs well. 

  • Hi Adrian,

    Apologies for the delay, are you still experiencing issues?

    Let us know and we can have an expert look into this for you.


    Cheers,
    Akash
  • Thanks for getting back to me. I still have the problem and started learning Matlab to be able to debug it. Somebody's help would be great.

    Thank you.

  • Can you let us know your PC(laptop) manufacturer and model number?

    Thanks and regards,
    Hayden Kim
  •  Please see attached

  • I saw the same issue with several laptop models (LG and Lenovo).
    It might be an issue with PC(laptop) COM port driver or configuration.

    Best regards,
    Hayden
  • OK, so any hint on what I can do with the config to fix it? If you have a debug version of the comport driver/emulator happy to run it for you to get to the bottom of this.

  • Kim,

    Any progress? Any idea where the problem may be? Could help if you gave me a bit of a run down on all the software components involved.

  • Hi Adrian,

    Have you been able to run the standard out of box demo with your EVM? I would like to determine if the issue is specific to the People Counting GUI. Is this the only TI device you have connected to your computer?

    thanks,
    Justin
  • Justin, yes I have been able to run the out of the box demo. However there is a problem I can use the ti cloud agent in administrator mode only. As soon as I am a user keeps asking me to install it. I have reported the problem under the following link

    http://e2e.ti.com/support/sensor/mmwave_sensors/f/1023/p/706889/2605953#2605953

    Obviously Uniflash and code composer studio connect to the unit successfully. It is the only device connected.

  • Hi Adrian,

    I believe the GUI is not properly detecting your device. This is why the GUI did not auto populate the correct COM Ports, and this is why the GUI cannot connect to the device. Please try running the GUI in admistrator mode to see if this is a permissions issue with windows.

    Regards,

    Justin

  • Hi Justin,

    I believe I have an answer. I was running the code in debug mode from Code Composer. The composer obviously takes over the emulator's com ports. This points to a fundamental problem with the development environment. How do you develop/modify an application that needs to interact with a desktop client as all your examples are?

    I think your emulator needs to provide separate ports to access jtag port for debug purposes. Is there an option to do that?

  • Hi Adrian,

    This is not the issue. I run the code in development mode constantly with the GUI, and do not have connection issues.  Have you been able to connect when running the precompiled software after loading with Uniflash?

    Regards,

    Justin

  • Justin,

    The problem was with an ES1.0 board as described at the beginning of the thread I run industrial toolbox 2.3 with sdk 1.2 CCS 7. In the mean time I ordered a ES2.0 board which arrived. The com ports do connect however the application does not run. Please see two inserted screen dumps:

    1. the debug output from the radar board

    2. the console screen from the matlab application

  • Hi Adrian,

    Change this line in your config: lowPower 0 1
    Reason: The ES2.0 boards all use lowPower mode.

    Regards,
    Justin
  • The config file had the correct value but I had to choose the "Use File" option because don't know which default file is used. I had a config file in the same directory with the exe which was the current working directory.

    However I encountered new problems.

    1. If I don't power cycle the board from one session to the next I get the following error when loading the mss binary after connecting the target:

  • The main problem is that when I successfully start everything: reboot board, connect target, load software, start the visualizer and use the config file I don't get any detection. Please see screen dump

  • Hi Adrian,

    This demo filters out all still objects, so if you point it somewhere where nothing is moving, you will not get any detection points. Furthermore, please make sure you power cycle the device before loading a new configuration to ensure that the demo functions properly. 

    Regards,

    Justin

  • Justin,

    I actually move the board (rotate it) or shake my hand or move myself in front of the radar. it would probably help if you elaborated a bit on each parameter that is involved in filtering out static objects, Probably min speed, time it needs to be moving for, size etc so I can experiment with them. May be beneficial to have that in the user manual or maybe already there and I missed the explanation.

    As I have the same problem with Ellie for my ES1 board I will wait for a resoulution on that one rather than continuing it in this thread. I am using industrial toolbox 2.3.0 with CCS 7 and SDK 1.2.0.(0?).5 on a completly different computer with the ES1 system. However if there is anything you want me to test to help I am more than happy to though at this stage I did break my USB connector and will have to res-solder.

    Thank you for your support, much appreciated,

    Adrian

  • Justin, I do run as administrator. Still have the problem and the other thread that has the same problem does not seem to go any further either.
    Any news?
  • Hi Adrian,

    Sorry for the delayed reply. From the post on July 18th, it looks like the device is sending data back to the GUI, as the Frame Number is increasing. However, any movement in front of the device should cause points to appear on the GUI. Have you run the Out of Box demo on this board before?

    Regards,
    Justin
  • Justin, I can run the sdk out of the box demo and it detects moving objects like my hand .
    It is probably some config parameters that stop the detections. Do you have a config file that does work and some explanation for the specific config parameters . I do have an explanation for the standard ones from the out of the box demo
  • Hi Adrian,

    I believe you have an ES2.0 board now. Please ensure you are using a the new Industrial Toolbox, version 2.5.1 (2.5.0 and 2.4.0) are fine as well. Please load the pre-compiled binary on the device, and try running this with the GUI. If this runs, please create a new workspace in CCS, then follow the steps in the User's Guide to import and run the application. Ensure you use the debug binary from SDK 2.00.00.04 when you run with CCS.

    If this fails, please run the device in debug mode and put a break point at line 277 in task_mbox.c, in the MSS project. If the demo hits this break point, then your computer is not receiving data on the UART DATA port. If this line is not hit, put a breakpoint at line 203 in the same file, task_mbox.c. The demo will hit this breakpoint if the DSS is generating a point cloud.

    If this fails, we will need to check if the DSS is functioning. A breakpoint at line 1206 will get hit if the device is processing each chirp, and a breakpoint at line 1230 will get hit if the device is processing the frames. After the break point at line 1230, the outputDataToArm struct should have point cloud information.

    Please take these debug steps and let me know what fails.

    Regards,
    Justin
  • The application does not reach line 277 so probably the "length" is "0". It does reach line 203 but it is impossible to debug. As soon as it hits the break point the application crashes. I can not see see what is going on. How are you debugging this guys? The Matlab application crashes too as soon as you pause the radar application so it will be impossible to resume even if it worked. The Matlab application would have to be restarted and it will want to resend all the parameters again which the radar application does not support.
  • Hi Adrian,

    There are Asserts in the dss_main.c that are triggered when the device takes too long to process a chirp or frame. Anytime we stop at a breakpoint, the device will take too long to process the frame, and these asserts will be triggered.  Removing the asserts, or commenting them out, will not break the demo (if you are using the default configs), and will allow you to step through the program. You can find these at dss_main.c line 317 and line 288. You will also see a line number appear in the console when an assert is triggered.

    Please remove these asserts and try the debug steps again.  If possible, can you send me console output from matlab when the configuration is sent?

    Thank you,

    Justin

  • Hi,

    I am using the default config file I found in the Industrial Toolbox 2.5.0. If I use the default settings without selecting a fileI get the high power mode which is one of the first faults you identified. So I have selected the default file. I also watched a webminar mentioning the four values that can be used for tuning and they said that on the forum somewhere there is an explanation of how they are used. Attached is the default.cfg file I am using.

  • asserts,

    maybe we are not using the same main_dss file. I suspect the asserts you are referring to are at lines 188 and 212 as in the following two files attacted. I have also attached a dump of the lines 280 to 320 so you can see what it is there. Instead of the asserts I suspect the system should just wait for mss to finish the process even if it means it skips some frames. Otherwise it corrupts memory or at least this is what I think.

    Thank you for your support and apologies if my problems look simple for you but it is really hard when you are new to everything and nothing works. When things work you just concentrate on a small area of interest which you learn and understand and slowly solowly you expend your knowledge.

  • Hi Adrian,

    I believe I gave you the wrong line numbers, but it looks like you found the right lines.   We have chosen to add the asserts because we do not want to run a configuration that takes too long to process - we do not want to miss a chirp, otherwise our velocity calculation will be incorrect.   In the case that you are running in debug mode and sit at a specific line, only the ADC buffer will be overwritten, so you are safe to step through the code.

    I am worried that your BSS may not be running properly - understanding if the device is receiving the chirp interrupt will be helpful to me.  Here is a quick basic flow of the software:

    1) BSS generates chirp data, places in ADC buffer

    2) DSS reads from ADC buffer after each chirp and puts this 1D FFT data in a different buffer.

    3) DSS processes all 1D FFT data after the frame is complete. This results in detection points, which the device will send to the MSS

    4) MSS receives points from DSS, runs points through tracker

    5) Points and tracks are sent over UART by MSS.

    We are trying to find where this is flow is failing. Step 5 is not sending anything, because there is nothing to send.  These are the points I have asked you to put breakpoints at.  See if you can identify  the point will data stops flowing.

    There is another thread here that seems to have a similar issue, which may provide some insight to you.

    Regards,

    Justin

  • Justin, I think this is a real problem and can be a bit hard to solve this way. The problem can be the compiler or the some hard to find silicon issue. May I suggest the following course of action.
    1. I can reinstall the SDK and re import the projects from either industrial toolbox 2.5.0 or 2.5.1 at your choice. I recompile on my system and email you the .o** files. You can compare them with your outputs and if they are the same (appart from a small variable fileds) we are fine here.
    Please give me an email address as the forum will insert the binary in the text instead of attaching the file.
    2. If we can not identify the problem the best would be to send you my board with/without the PC as is. All I would need is you send me a BOOST board that works so I can work on some other parts of the project while you debug it. A second board to use instead of my ES1.0 board that I could not get going either would be nice. Somebody else had the same problem that does not seem to have been solved. I am a small business, just myself, with no financial backer.
    3. Happy to host one of your developers staying with me free boarding and kitesurfing lessons in the evening to debug the problem. I live in Melbourne and work from home. Started the business in the bedroom as I don't have a garage (:=)
    4. happy to take the lot with me and come and work with you guys I can be the tester.

    I think this is something you guys want to get to the bottom of cause it may well prove to be a problem that affects a % of your chips and when it all goes to mass production and hits the market can cause serious issues. If we keep goinng like this we will take a long while and may not be able to solve the problem. I have been trying to get the people counting demo going since end of April.
  • Hi Adrian,

    I have been able to reproduce your issue by changing the compiler I am using for the c6000. Please go into the DSS project in CCS and check the compiler version: Right click pplcount_dss_16xx->properties->General, then you will see the Compiler version in the bottom half of the screen.  This should be compiler version TI v7.4.16.  If it is not, you can find the download link here in the developer's guide section.

    Regards,

    Justin

  • I have tried to download the compiler but I keep getting an error. I have asked "software download support" to help.
    Which CCS do you use? I thought 8.0.. is the one and the compiler was there after installing sdk 2.0 and ccs 8
    The compiler used was 8.1.3 . There is another one 8.2.2 but it is even worse, don't even get the frame increases. They are newer compilers from the number.
  • Hi Adrian,

    You can use CCS 8. This is the version I use. CCS has an option to download the software as well. In CCS, go to Help->Install Code Generation Compiler Tools->TI Compiler Updates.  Make sure that "Show only the latest versions of available software" is NOT selected.  Then scroll to find C6000 Compiler Tools 7.4.16.

    Regards,

    Justin

  • Thank you Justin. It does work now. What do we do about the ES1.0 board? The other thread seems to be idle. No news that it has been fixed or not. I will tick this resolved my issue here but would appreciate if you had any suggestions about the original problem. I can't use the ES1.0 board