Advertisement
aalh

TFLite Errors

Jul 18th, 2021
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.78 KB | None | 0 0
  1. Arduino: 1.8.15 (Windows 10), Board: "Adafruit CLUE, S140 6.1.1, Level 2 (Full Debug)"
  2.  
  3. WARNING: library Adafruit_WavePlayer_Library claims to run on samd architecture(s) and may be incompatible with your current board which runs on nrf52 architecture(s).
  4.  
  5. arduino_audio_provider.cpp:62:41: error: 'DEFAULT_BUFFER_SIZE' was not declared in this scope; did you mean 'SERIAL_BUFFER_SIZE'?
  6.  
  7.    62 | constexpr int kAudioCaptureBufferSize = DEFAULT_BUFFER_SIZE * 16;
  8.  
  9.       |                                         ^~~~~~~~~~~~~~~~~~~
  10.  
  11.       |                                         SERIAL_BUFFER_SIZE
  12.  
  13. arduino_audio_provider.cpp:63:32: error: size of array 'g_audio_capture_buffer' is not an integral constant-expression
  14.  
  15.    63 | int16_t g_audio_capture_buffer[kAudioCaptureBufferSize];
  16.  
  17.       |                                ^~~~~~~~~~~~~~~~~~~~~~~
  18.  
  19. arduino_audio_provider.cpp:70:35: error: 'DEFAULT_BUFFER_SIZE' was not declared in this scope; did you mean 'SERIAL_BUFFER_SIZE'?
  20.  
  21.    70 | volatile int16_t recording_buffer[DEFAULT_BUFFER_SIZE];
  22.  
  23.       |                                   ^~~~~~~~~~~~~~~~~~~
  24.  
  25.       |                                   SERIAL_BUFFER_SIZE
  26.  
  27. C:\Users\aalha\Documents\Arduino\libraries\Adafruit_TensorFlow_Lite\examples\micro_speech_arcada\arduino_audio_provider.cpp: In function 'void TIMER_CALLBACK()':
  28.  
  29. arduino_audio_provider.cpp:121:20: error: 'DEFAULT_BUFFER_SIZE' was not declared in this scope; did you mean 'SERIAL_BUFFER_SIZE'?
  30.  
  31.   121 |   if (audio_idx >= DEFAULT_BUFFER_SIZE) {
  32.  
  33.       |                    ^~~~~~~~~~~~~~~~~~~
  34.  
  35.       |                    SERIAL_BUFFER_SIZE
  36.  
  37. arduino_audio_provider.cpp:138:3: error: 'recording_buffer' was not declared in this scope
  38.  
  39.   138 |   recording_buffer[audio_idx] = sample;
  40.  
  41.       |   ^~~~~~~~~~~~~~~~
  42.  
  43. C:\Users\aalha\Documents\Arduino\libraries\Adafruit_TensorFlow_Lite\examples\micro_speech_arcada\arduino_audio_provider.cpp: In function 'void CaptureSamples()':
  44.  
  45. arduino_audio_provider.cpp:180:33: error: 'DEFAULT_BUFFER_SIZE' was not declared in this scope; did you mean 'SERIAL_BUFFER_SIZE'?
  46.  
  47.   180 |   const int number_of_samples = DEFAULT_BUFFER_SIZE;
  48.  
  49.       |                                 ^~~~~~~~~~~~~~~~~~~
  50.  
  51.       |                                 SERIAL_BUFFER_SIZE
  52.  
  53. arduino_audio_provider.cpp:191:58: error: 'recording_buffer' was not declared in this scope
  54.  
  55.   191 |   memcpy(g_audio_capture_buffer + capture_index, (void *)recording_buffer, DEFAULT_BUFFER_SIZE*2);
  56.  
  57.       |                                                          ^~~~~~~~~~~~~~~~
  58.  
  59. exit status 1
  60.  
  61. 'DEFAULT_BUFFER_SIZE' was not declared in this scope; did you mean 'SERIAL_BUFFER_SIZE'?
  62.  
  63.  
  64.  
  65. This report would have more information with
  66. "Show verbose output during compilation"
  67. option enabled in File -> Preferences.
  68.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement