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.

MSP430FR6043: [FR6043_USSSVLIB_template_example] No signal detected error

Part Number: MSP430FR6043
Other Parts Discussed in Thread: EVM430-FR6043

Hi everyone

Using the USS program, I tested the operation of my ultrasonic sensor and then used 'Generate Header' to create a config file.

The picture below shows the settings of USS and the measurement signal.

I generated the config file using 'Generate Header' and applied it to template_example. When I ran it,

I encountered an error: 'USS_message_code_algorithm_error_no_signal_detected_ups_channel'.

So, to see the signal from the sensor directly, I created the following function "print_upsptr" and ran it after USS_runAlgorithms()

void print_upsptr()
{
 uint16_t* pUPSCap16 = (uint16_t*)(USS_getUPSPtr(&gUssSWConfig));
 uint16_t c = 0;
 uint8_t msg[40], i=0;

 for(i=0; i<USS_USER_CONFIG_NUMBER_OF_SAMPLES_PER_CAPTURE-1; i++)
 {
  sprintf(msg, "%d,", *pUPSCap16);
  uartWriteStr(msg);
  pUPSCap16++;
 }

 sprintf(msg, "%d", *pUPSCap16);
 uartWriteStr(msg);
}

The left picture shows the sensor signal measured with an oscilloscope, and the right one is the values received from the print_upsptr() function plotted on a graph.

Looking at the oscilloscope signal, it seems to be working properly.
But the firmware doesn't seem to be measuring properly and I have no idea what the problem is.

This is the raw data  from the print_upsptr()

-1,-31,-212,-474,-639,-768,-896,-1024,-1152,-1280,-1408,-1536,-1664,-1792,-1920,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,

-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,

-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,

-2048,-2048,-2048,-2048,-2048,-2048,-2048,-2048,-1920,-1792,-1664,-1536,-1408,-1280,-1152,-1024,-896,-768,-640,-512,-384,-256,-128

**Attention** This is a public forum