Manivannan-maker / ECGAnalyzer

I worked on a TinyML application powered by Edge Impulse to develop a mini-Diagnosis ECG analyzer device which can fit on a pocket and it can diagnose heart diseases independently without an Internet.
GNU Affero General Public License v3.0
7 stars 4 forks source link

Error compiling for board Arduino Mega or Mega 2560. #1

Open reubens308 opened 3 years ago

reubens308 commented 3 years ago

I have used Arduino Mega to run this project. But the code doesnt compile. it falls on an error as shown below. I feel its a library issue, but I have set up the libraries asper the requirements.

In file included from E:\Users\sreu1\Documents\Arduino\libraries\EI_Deployed_Library\src/edge-impulse-sdk/dsp/spectral/spectral.hpp:27:0, from E:\Users\sreu1\Documents\Arduino\libraries\EI_Deployed_Library\src/edge-impulse-sdk/classifier/ei_run_dsp.h:27, from E:\Users\sreu1\Documents\Arduino\libraries\EI_Deployed_Library\src/edge-impulse-sdk/classifier/ei_run_classifier.h:30, from E:\Users\sreu1\Documents\Arduino\libraries\EI_Deployed_Library\src/ecg_analyzer_inference.h:41, from E:\Users\sreu1\Downloads\ECGAnalyzer-main\ECGAnalyzer-main\ECGAnalyzer\ECGAnalyzer\EI_Deployed_Library\examples\ECGAnalyzer\ECGAnalyzer.ino:9: E:\Users\sreu1\Documents\Arduino\libraries\EI_Deployed_Library\src/edge-impulse-sdk/dsp/spectral/processing.hpp:26:10: fatal error: vector: No such file or directory

include vector

           ^~~~~~~~

compilation terminated. exit status 1 Error compiling for board Arduino Mega or Mega 2560.

vlasov01 commented 3 years ago

As per @janjongboom on Edge Impulse forum the library "need a target that supports a C++11 compiler". Another issue is that 8kb of SRAM on Mage 2560 is not enough to run Edge Impulse inference. You may need to try on a bit more powerful MCU like Arduino Nano 33 BLE or other development boards as per their documentation.