DaleGia / nano-33-sense-serial-example

An example program for the Arduino Nano 33 BLE Sense that outputs CSV data for all sensors through UART.
GNU General Public License v3.0
22 stars 3 forks source link

Undefined reference to `arm_rms_q15' compile error #1

Closed netstx closed 3 years ago

netstx commented 3 years ago

I downloaded all the libraries and get the following error while compiling, any ideas?

sketch\nano-33-sense-serial-example.ino.cpp.o: In function `Micophone_computeRMSValue()':
C:\Documents\Arduino\nano-33-sense-serial-example/nano-33-sense-serial-example.ino:295: undefined reference to `arm_rms_q15'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino Nano 33 BLE.
DaleGia commented 3 years ago

This example was made using a now depreciated version of the arduino mbed core. In the depreciated version dsp functions like this are available, but it seems these functions are no longer defined in the new mbed core. I have been intending to bring this up with them.

For the time being when I get a chance i will implement another RMS function (although it wont be early as efficient). If you want to get the example working ASAP, just delete the microphone related code.

Thanks for bringing this up!

netstx commented 3 years ago

@DaleGia thanks for getting back to me right away! That makes sense. And like you said, I commented out the line that calls that function, so I was able to test everything else with the code. :)

netstx commented 3 years ago

@DaleGia after a bit more digging, I found this issue: https://github.com/arduino/ArduinoCore-mbed/issues/7