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.
Part Number: MSP430FR6043
I have used ms430fr6043 for one of my application where I have designed my own board and have take the code "FR6043_USSSWLib_template_example" in the code basically I am trying to get the UPS_TOF and DNS_TOF via uart and have succesfully done it .My problem is that the algResults.totalTOF_UPS and algResults.totalTOF_DNS calculated are incorrect as they do not vary and constatly give same TOF in output. Please help me with this.
What is the constant value of algResults.totalTOF_UPS and algResults.totalTOF_DNS that you get?
What about the fixed-point equivalent of the UPS_TOF & DNS_TOF? Are they valid? You can find this in ussSwLibAlgorithm.c:USS_runAlgorithms() in the variable "fixedResults": iq40TotalTOF_UPS & iq40TotalTOF_DNS. Do they change correctly as expected?
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Srinivas Lingam:
When I run the code both the TOF are 0.000200162045 and I am unable to find iq40TotalTOF_UPS & iq40TotalTOF_DNS in the code anywhere.There is no such file ussSwLibAlgorithm.c
In reply to azista azista:
If you are using the latest version of the USS SW Library available at http://www.ti.com/tool/MSP-ULTRASONIC-DESIGN-CENTER -> http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/USSSWLib/USSSWLibWater/latest/, you will find ussSwLibAlgorithm.c at C:\ti\msp\USS_02_30_00_03\USS\lib\USS\source, You can also see it in CCS:
As I have mentioned I am using the code "FR6043_USSSWLib_template_example"it doesnot have the ussSwLibAlgorithm.c file in it. You can see the below attached image for the files present in that project.
Can you please check the USS SW Lib version that you are using? You might be using an older version of the library (02.20)
The latest version has that file ussSwLibAlgorithm.c. You can also see the version from the install directory in C:\ti\msp. For example, the latest version (02.30.00.03) will be in C:\ti\msp\USS_02_30_00_03\USS\lib\USS\source.
As I have developed my own board where I am using Uart communication to fetch my TOF in output I am using this code "FR6043_USSSWLib_template_example". And I am interested in using this code only as the other codes are meant to communicate via GUI to the board. I suggest if u could please go through this code and help me solving the issue.
Please make sure you have the latest VERSION of "FR6043_USSSWLib_template_example". It should be part of the 02.30.00.03 download. What version are you working with? If you use the latest version, you will have the necessary files to debug the issue.
What do u mean by latest version of "FR6043_USSSWLib_template_example".If there is any latest version of "FR6043_USSSWLib_template_example" please provide it to me. Presently I am working with the code which has as said by you a library of older verison from yours which I could guess by the UssSwlib.h file which is as seen below in the image.
Later as suggested by you I downloaded and installed the latedt version of USS_02_30_00_03. and linked lib file from it the C:\ti\msp\UltrasonicWaterFR604x_02_30_00_03\include\ussSwLib.h and got the errors as seen in the below image.
You are getting the build error because your include paths are still pointing to the older version (02_20_00_16). You need to update them to make sure they are pointing to USS_02_30_00_03.
Thank you for pointing my mistake in linking library. But one thing I want to discuss about is that as i am working with the code "FR6043_USSSWLib_template_example" I think linking the library USS_02_30_00_03 will also not solve my issue, As currently my project(with library USS_02_20_00_16) has ample source file needed for the calculation of TOFs for that if I try doing it with a different library will yield me to new unexpected error. I request you to please check the code "FR6043_USSSWLib_template_example" with USS_02_20_00_16 library and help me solve the issue if possible. I am really looking with a big hope
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.