EloquentTinyML icon indicating copy to clipboard operation
EloquentTinyML copied to clipboard

Error compiling for board DOIT ESP32 DEVKIT V1

Open embedragx opened this issue 3 years ago • 9 comments

error: insn does not satisfy its constraints: } ^ (insn 45 1406 1640 111 (set (reg:SF 19 f0 [orig:198 _248 ] [198]) (mem/u/c:SF (symbol_ref/u:SI ("*.LC101") [flags 0x2]) [0 S4 A32])) "c:\Users\raghu\Documents\Arduino\libraries\EloquentTinyML-master\src/tensorflow/lite/micro/kernels/activation_utils.h":44 47 {movsf_internal} (expr_list:REG_EQUAL (const_double:SF 6.0e+0 [0x0.cp+3]) (nil))) during RTL pass: postreload

embedragx avatar Sep 18 '21 14:09 embedragx

Can you make it work with other boards? Just select "ESP32 Dev Module" for example.

eloquentarduino avatar Sep 19 '21 21:09 eloquentarduino

In file included from C:\Users...\Documents\Arduino\libraries\EloquentTinyML-master\src\tensorflow\lite\micro\kernels\svdf.cpp:25: C:\Users...\Documents\Arduino\libraries\EloquentTinyML-master\src/tensorflow/lite/micro/kernels/activation_utils.h: In function 'float tflite::ops::micro::ActivationValFloat(TfLiteFusedActivation, float)': C:\Users...\Documents\Arduino\libraries\EloquentTinyML-master\src/tensorflow/lite/micro/kernels/activation_utils.h:53:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:\Users...\Documents\Arduino\libraries\EloquentTinyML-master\src\tensorflow\lite\micro\kernels\svdf.cpp: In function 'TfLiteStatus tflite::ops::micro::svdf::Eval(TfLiteContext*, TfLiteNode*)': C:\Users...\Documents\Arduino\libraries\EloquentTinyML-master\src\tensorflow\lite\micro\kernels\svdf.cpp:558:1: error: insn does not satisfy its constraints: } ^ (insn 45 1406 1640 111 (set (reg:SF 19 f0 [orig:198 _248 ] [198]) (mem/u/c:SF (symbol_ref/u:SI ("*.LC101") [flags 0x2]) [0 S4 A32])) "C:\Users\raghu\Documents\Arduino\libraries\EloquentTinyML-master\src/tensorflow/lite/micro/kernels/activation_utils.h":44 47 {movsf_internal} (expr_list:REG_EQUAL (const_double:SF 6.0e+0 [0x0.cp+3]) (nil))) during RTL pass: postreload C:\Users...\Documents\Arduino\libraries\EloquentTinyML-master\src\tensorflow\lite\micro\kernels\svdf.cpp:558:1: internal compiler error: in extract_constrain_insn, at recog.c:2210 Please submit a full bug report, with preprocessed source if appropriate. See https://gcc.gnu.org/bugs/ for instructions. Using library EloquentTinyML-master at version 0.0.10 in folder: C:\Users...\Documents\Arduino\libraries\EloquentTinyML-master exit status 1 Error compiling for board ESP32 Dev Module.

Same Error ....

embedragx avatar Sep 20 '21 07:09 embedragx

Try to delete the EloquentTinyML-master folder from the Arduino\libraries folder and install the library via Arduino IDE library manager.

eloquentarduino avatar Sep 20 '21 09:09 eloquentarduino

I have a similar issue, I'm trying to compile it for "ESP32 Dev Module", I tried uncommenting the min/max but the error is the following:

In file included from C:\Users\...\libraries\EloquentTinyML-master\src\tensorflow\lite\micro\kernels\svdf.cpp:25:0:

C:\Users\...\libraries\EloquentTinyML-master\src/tensorflow/lite/micro/kernels/activation_utils.h: In function 'float tflite::ops::micro::ActivationValFloat(TfLiteFusedActivation, float)':

C:\Users\...\libraries\EloquentTinyML-master\src/tensorflow/lite/micro/kernels/activation_utils.h:53:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
cc1plus.exe: some warnings being treated as errors
exit status 1
Error compiling for board ESP32 Dev Module.

I'm just trying to upload the example files for the SineExample.ino, hope you can help as I already followed your recommendations here in the thread and doesn't work yet

arnaudonate avatar Oct 25 '21 21:10 arnaudonate

I can confirm it worked on "ESP32 Dev Module" since I used it in my own development. I will take time to look at those files that gives you error. Can you please confirm which core are you using for the ESP32?

eloquentarduino avatar Oct 26 '21 06:10 eloquentarduino

Sure, thanks for the quick reply!

I'm usign the ESP32-WROOM-32 (On an AZDelivery dev board), I've had some issues in the past with the BUILTIN_LED, I usually need to write pin 1 directly otherwise it won't work. Not sure if that can be related at all, hope it can bring some light into the matter.

Thank you for your help!

arnaudonate avatar Oct 28 '21 12:10 arnaudonate

I updated the library. Please install from Github since I didn't published on the Arduino Library Manager yet since I made a major update and need to test yet.

eloquentarduino avatar Oct 31 '21 09:10 eloquentarduino

Thank you so much! I will tets it now :) This is very helpful!

arnaudonate avatar Oct 31 '21 19:10 arnaudonate

I will try it soon.

And thnx for the effort 👍

embedragx avatar Nov 01 '21 07:11 embedragx