You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
esp32-i2s-slm:108:1: error: could not convert '{1.0e+0, {{-1.0e+0, 0.0, 9.9919999999999998e-1, 0}}}' from '' to 'SOS_IIR_Filter'
};
^
esp32-i2s-slm:132:1: error: could not convert '{4.7732641883680299e-1, {{9.6986791463971267e-1, 2.3515976355743193e-1, -6.6819480047699276e-2, -1.1152199068812799e-3}, {-1.9890593174362445e+0, 9.8908924206960169e-1, 1.9975533185390604e+0, -9.9755481510122113e-1}}}' from '' to 'SOS_IIR_Filter'
};
^
esp32-i2s-slm:145:1: error: could not convert '{-4.5733702338341298e-1, {{-5.4404793191685896e-1, -2.4836175932179999e-1, 4.0329889166229799e-1, -2.0734618635184299e-1}, {-1.909911869441421e+0, 9.10830292683527e-1, 1.790285722826743e+0, -8.0408581236913401e-1}, {0.0, 0.0, 1.148493493802252e+0, -1.50599527756651e-1}}}' from '' to 'SOS_IIR_Filter'
};
^
esp32-i2s-slm:156:1: error: could not convert '{1.0019783465469601e+0, {{-1.9869204583444511e+0, 9.8696322694661598e-1, 1.9951785105041659e+0, -9.9518432219409103e-1}}}' from '' to 'SOS_IIR_Filter'
};
^
esp32-i2s-slm:169:1: error: could not convert '{1.0012406849675299e+0, {{-1.0e+0, 0.0, 9.9919999999999998e-1, 0}, {-1.994461610298131e+0, 9.9446927873820801e-1, 1.997675693595542e+0, -9.9767704419556302e-1}}}' from '' to 'SOS_IIR_Filter'
};
^
esp32-i2s-slm:182:1: error: could not convert '{1.00123377961525e+0, {{-1.0e+0, 0.0, 9.9919999999999998e-1, 0}, {-1.988897663539382e+0, 9.8892847900809899e-1, 1.9938533761834909e+0, -9.9386282142957205e-1}}}' from '' to 'SOS_IIR_Filter'
};
^
esp32-i2s-slm:200:1: error: could not convert '{1.6999494814742999e-1, {{-2.0002699613310599e+0, 1.0002705614271901e+0, -1.0608684385092779e+0, -1.6398744588592601e-1}, {4.3591238420314404e+0, 3.0912026578388399e+0, 1.2084199263635931e+0, -2.7316699842833198e-1}, {-7.0930303489758995e-1, -2.9071868393580003e-1, 1.982242159753048e+0, -9.8229859492898897e-1}}}' from '' to 'SOS_IIR_Filter'
};
^
esp32-i2s-slm:214:1: error: could not convert '{-4.9164716933713998e-1, {{1.4604385758204708e+0, 5.275070373815286e-1, 1.9946144559930252e+0, -9.9462170701408825e-1}, {2.3762224049395089e-1, 1.40411206016894e-2, -1.3396585608422749e+0, -4.4214578076945588e-1}, {-2.0e+0, 1.0e+0, 3.7758000474208181e-1, -3.5636575668043e-2}}}' from '' to 'SOS_IIR_Filter'
};
^
esp32-i2s-slm:237:1: error: 'QueueHandle_t' does not name a type
QueueHandle_t samples_queue;
^
C:\Users\neouf\Downloads\esp32-i2s-slm-master\esp32-i2s-slm-master\esp32-i2s-slm\esp32-i2s-slm.ino: In function 'void mic_i2s_init()':
esp32-i2s-slm:249:9: error: 'i2s_config_t' does not name a type
const i2s_config_t i2s_config = {
^
esp32-i2s-slm:263:9: error: 'i2s_pin_config_t' does not name a type
const i2s_pin_config_t pin_config = {
^
esp32-i2s-slm:82:27: error: 'I2S_NUM_0' was not declared in this scope
#define I2S_PORT I2S_NUM_0
^
C:\Users\neouf\Downloads\esp32-i2s-slm-master\esp32-i2s-slm-master\esp32-i2s-slm\esp32-i2s-slm.ino:270:22: note: in expansion of macro 'I2S_PORT'
i2s_driver_install(I2S_PORT, &i2s_config, 0, NULL);
^
esp32-i2s-slm:270:33: error: 'i2s_config' was not declared in this scope
i2s_driver_install(I2S_PORT, &i2s_config, 0, NULL);
^
esp32-i2s-slm:270:52: error: 'i2s_driver_install' was not declared in this scope
i2s_driver_install(I2S_PORT, &i2s_config, 0, NULL);
^
esp32-i2s-slm:279:26: error: 'pin_config' was not declared in this scope
i2s_set_pin(I2S_PORT, &pin_config);
^
esp32-i2s-slm:279:36: error: 'i2s_set_pin' was not declared in this scope
i2s_set_pin(I2S_PORT, &pin_config);
^
C:\Users\neouf\Downloads\esp32-i2s-slm-master\esp32-i2s-slm-master\esp32-i2s-slm\esp32-i2s-slm.ino: In function 'void mic_i2s_reader_task(void*)':
esp32-i2s-slm:82:27: error: 'I2S_NUM_0' was not declared in this scope
#define I2S_PORT I2S_NUM_0
^
C:\Users\neouf\Downloads\esp32-i2s-slm-master\esp32-i2s-slm-master\esp32-i2s-slm\esp32-i2s-slm.ino:312:12: note: in expansion of macro 'I2S_PORT'
i2s_read(I2S_PORT, &samples, SAMPLES_SHORT * sizeof(int32_t), &bytes_read, portMAX_DELAY);
^
esp32-i2s-slm:312:78: error: 'portMAX_DELAY' was not declared in this scope
i2s_read(I2S_PORT, &samples, SAMPLES_SHORT * sizeof(int32_t), &bytes_read, portMAX_DELAY);
^
esp32-i2s-slm:312:91: error: 'i2s_read' was not declared in this scope
i2s_read(I2S_PORT, &samples, SAMPLES_SHORT * sizeof(int32_t), &bytes_read, portMAX_DELAY);
^
esp32-i2s-slm:324:5: error: 'TickType_t' was not declared in this scope
TickType_t start_tick = xTaskGetTickCount();
^
esp32-i2s-slm:324:16: error: expected ';' before 'start_tick'
TickType_t start_tick = xTaskGetTickCount();
^
esp32-i2s-slm:341:38: error: 'xTaskGetTickCount' was not declared in this scope
q.proc_ticks = xTaskGetTickCount() - start_tick;
^
esp32-i2s-slm:341:42: error: 'start_tick' was not declared in this scope
q.proc_ticks = xTaskGetTickCount() - start_tick;
^
esp32-i2s-slm:345:16: error: 'samples_queue' was not declared in this scope
xQueueSend(samples_queue, &q, portMAX_DELAY);
^
esp32-i2s-slm:345:48: error: 'xQueueSend' was not declared in this scope
xQueueSend(samples_queue, &q, portMAX_DELAY);
^
C:\Users\neouf\Downloads\esp32-i2s-slm-master\esp32-i2s-slm-master\esp32-i2s-slm\esp32-i2s-slm.ino: In function 'void setup()':
esp32-i2s-slm:359:24: error: 'setCpuFrequencyMhz' was not declared in this scope
setCpuFrequencyMhz(80); // It should run as low as 80MHz
^
esp32-i2s-slm:374:3: error: 'samples_queue' was not declared in this scope
samples_queue = xQueueCreate(8, sizeof(sum_queue_t));
^
esp32-i2s-slm:374:54: error: 'xQueueCreate' was not declared in this scope
samples_queue = xQueueCreate(8, sizeof(sum_queue_t));
^
esp32-i2s-slm:381:94: error: 'xTaskCreate' was not declared in this scope
xTaskCreate(mic_i2s_reader_task, "Mic I2S Reader", I2S_TASK_STACK, NULL, I2S_TASK_PRI, NULL);
^
esp32-i2s-slm:389:43: error: 'portMAX_DELAY' was not declared in this scope
while (xQueueReceive(samples_queue, &q, portMAX_DELAY)) {
^
esp32-i2s-slm:389:56: error: 'xQueueReceive' was not declared in this scope
while (xQueueReceive(samples_queue, &q, portMAX_DELAY)) {
^
exit status 1
could not convert '{1.0e+0, {{-1.0e+0, 0.0, 9.9919999999999998e-1, 0}}}' from '' to 'SOS_IIR_Filter'
The text was updated successfully, but these errors were encountered:
It's always helpful to provide more details when filing an issue. For instance, which ESP are you using? How did you compile the program? Have you made any changes to the code?
Providing as many details as possible reduces the amount of guesswork others have to do.
Hello,
I have this issue when i try your code.
Do you know why please ?
Best,
Charles
esp32-i2s-slm:108:1: error: could not convert '{1.0e+0, {{-1.0e+0, 0.0, 9.9919999999999998e-1, 0}}}' from '' to 'SOS_IIR_Filter'
};
^
esp32-i2s-slm:132:1: error: could not convert '{4.7732641883680299e-1, {{9.6986791463971267e-1, 2.3515976355743193e-1, -6.6819480047699276e-2, -1.1152199068812799e-3}, {-1.9890593174362445e+0, 9.8908924206960169e-1, 1.9975533185390604e+0, -9.9755481510122113e-1}}}' from '' to 'SOS_IIR_Filter'
};
^
esp32-i2s-slm:145:1: error: could not convert '{-4.5733702338341298e-1, {{-5.4404793191685896e-1, -2.4836175932179999e-1, 4.0329889166229799e-1, -2.0734618635184299e-1}, {-1.909911869441421e+0, 9.10830292683527e-1, 1.790285722826743e+0, -8.0408581236913401e-1}, {0.0, 0.0, 1.148493493802252e+0, -1.50599527756651e-1}}}' from '' to 'SOS_IIR_Filter'
};
^
esp32-i2s-slm:156:1: error: could not convert '{1.0019783465469601e+0, {{-1.9869204583444511e+0, 9.8696322694661598e-1, 1.9951785105041659e+0, -9.9518432219409103e-1}}}' from '' to 'SOS_IIR_Filter'
};
^
esp32-i2s-slm:169:1: error: could not convert '{1.0012406849675299e+0, {{-1.0e+0, 0.0, 9.9919999999999998e-1, 0}, {-1.994461610298131e+0, 9.9446927873820801e-1, 1.997675693595542e+0, -9.9767704419556302e-1}}}' from '' to 'SOS_IIR_Filter'
};
^
esp32-i2s-slm:182:1: error: could not convert '{1.00123377961525e+0, {{-1.0e+0, 0.0, 9.9919999999999998e-1, 0}, {-1.988897663539382e+0, 9.8892847900809899e-1, 1.9938533761834909e+0, -9.9386282142957205e-1}}}' from '' to 'SOS_IIR_Filter'
};
^
esp32-i2s-slm:200:1: error: could not convert '{1.6999494814742999e-1, {{-2.0002699613310599e+0, 1.0002705614271901e+0, -1.0608684385092779e+0, -1.6398744588592601e-1}, {4.3591238420314404e+0, 3.0912026578388399e+0, 1.2084199263635931e+0, -2.7316699842833198e-1}, {-7.0930303489758995e-1, -2.9071868393580003e-1, 1.982242159753048e+0, -9.8229859492898897e-1}}}' from '' to 'SOS_IIR_Filter'
};
^
esp32-i2s-slm:214:1: error: could not convert '{-4.9164716933713998e-1, {{1.4604385758204708e+0, 5.275070373815286e-1, 1.9946144559930252e+0, -9.9462170701408825e-1}, {2.3762224049395089e-1, 1.40411206016894e-2, -1.3396585608422749e+0, -4.4214578076945588e-1}, {-2.0e+0, 1.0e+0, 3.7758000474208181e-1, -3.5636575668043e-2}}}' from '' to 'SOS_IIR_Filter'
};
^
esp32-i2s-slm:237:1: error: 'QueueHandle_t' does not name a type
QueueHandle_t samples_queue;
^
C:\Users\neouf\Downloads\esp32-i2s-slm-master\esp32-i2s-slm-master\esp32-i2s-slm\esp32-i2s-slm.ino: In function 'void mic_i2s_init()':
esp32-i2s-slm:249:9: error: 'i2s_config_t' does not name a type
const i2s_config_t i2s_config = {
^
esp32-i2s-slm:263:9: error: 'i2s_pin_config_t' does not name a type
const i2s_pin_config_t pin_config = {
^
esp32-i2s-slm:82:27: error: 'I2S_NUM_0' was not declared in this scope
#define I2S_PORT I2S_NUM_0
^
C:\Users\neouf\Downloads\esp32-i2s-slm-master\esp32-i2s-slm-master\esp32-i2s-slm\esp32-i2s-slm.ino:270:22: note: in expansion of macro 'I2S_PORT'
i2s_driver_install(I2S_PORT, &i2s_config, 0, NULL);
^
esp32-i2s-slm:270:33: error: 'i2s_config' was not declared in this scope
i2s_driver_install(I2S_PORT, &i2s_config, 0, NULL);
^
esp32-i2s-slm:270:52: error: 'i2s_driver_install' was not declared in this scope
i2s_driver_install(I2S_PORT, &i2s_config, 0, NULL);
^
esp32-i2s-slm:279:26: error: 'pin_config' was not declared in this scope
i2s_set_pin(I2S_PORT, &pin_config);
^
esp32-i2s-slm:279:36: error: 'i2s_set_pin' was not declared in this scope
i2s_set_pin(I2S_PORT, &pin_config);
^
C:\Users\neouf\Downloads\esp32-i2s-slm-master\esp32-i2s-slm-master\esp32-i2s-slm\esp32-i2s-slm.ino: In function 'void mic_i2s_reader_task(void*)':
esp32-i2s-slm:82:27: error: 'I2S_NUM_0' was not declared in this scope
#define I2S_PORT I2S_NUM_0
^
C:\Users\neouf\Downloads\esp32-i2s-slm-master\esp32-i2s-slm-master\esp32-i2s-slm\esp32-i2s-slm.ino:312:12: note: in expansion of macro 'I2S_PORT'
i2s_read(I2S_PORT, &samples, SAMPLES_SHORT * sizeof(int32_t), &bytes_read, portMAX_DELAY);
^
esp32-i2s-slm:312:78: error: 'portMAX_DELAY' was not declared in this scope
i2s_read(I2S_PORT, &samples, SAMPLES_SHORT * sizeof(int32_t), &bytes_read, portMAX_DELAY);
^
esp32-i2s-slm:312:91: error: 'i2s_read' was not declared in this scope
i2s_read(I2S_PORT, &samples, SAMPLES_SHORT * sizeof(int32_t), &bytes_read, portMAX_DELAY);
^
esp32-i2s-slm:324:5: error: 'TickType_t' was not declared in this scope
TickType_t start_tick = xTaskGetTickCount();
^
esp32-i2s-slm:324:16: error: expected ';' before 'start_tick'
TickType_t start_tick = xTaskGetTickCount();
^
esp32-i2s-slm:341:38: error: 'xTaskGetTickCount' was not declared in this scope
q.proc_ticks = xTaskGetTickCount() - start_tick;
^
esp32-i2s-slm:341:42: error: 'start_tick' was not declared in this scope
q.proc_ticks = xTaskGetTickCount() - start_tick;
^
esp32-i2s-slm:345:16: error: 'samples_queue' was not declared in this scope
xQueueSend(samples_queue, &q, portMAX_DELAY);
^
esp32-i2s-slm:345:48: error: 'xQueueSend' was not declared in this scope
xQueueSend(samples_queue, &q, portMAX_DELAY);
^
C:\Users\neouf\Downloads\esp32-i2s-slm-master\esp32-i2s-slm-master\esp32-i2s-slm\esp32-i2s-slm.ino: In function 'void setup()':
esp32-i2s-slm:359:24: error: 'setCpuFrequencyMhz' was not declared in this scope
setCpuFrequencyMhz(80); // It should run as low as 80MHz
^
esp32-i2s-slm:374:3: error: 'samples_queue' was not declared in this scope
samples_queue = xQueueCreate(8, sizeof(sum_queue_t));
^
esp32-i2s-slm:374:54: error: 'xQueueCreate' was not declared in this scope
samples_queue = xQueueCreate(8, sizeof(sum_queue_t));
^
esp32-i2s-slm:381:94: error: 'xTaskCreate' was not declared in this scope
xTaskCreate(mic_i2s_reader_task, "Mic I2S Reader", I2S_TASK_STACK, NULL, I2S_TASK_PRI, NULL);
^
esp32-i2s-slm:389:43: error: 'portMAX_DELAY' was not declared in this scope
while (xQueueReceive(samples_queue, &q, portMAX_DELAY)) {
^
esp32-i2s-slm:389:56: error: 'xQueueReceive' was not declared in this scope
while (xQueueReceive(samples_queue, &q, portMAX_DELAY)) {
^
exit status 1
could not convert '{1.0e+0, {{-1.0e+0, 0.0, 9.9919999999999998e-1, 0}}}' from '' to 'SOS_IIR_Filter'
The text was updated successfully, but these errors were encountered: