I wanted to sample Arduino Nano 33 sense board at 4kHz instead of 16kHz.
I changed the value in ei_microphone.cpp from 4000 to 16000 in line 36
And also changed the values in file - /src/ingestion-sdk-platform/nano-ble33/ei_device_nano_ble33.cpp
from 16000 to 4000 in these two lines -
sensors[MICROPHONE].max_sample_length_s = available_bytes / (16000 * 2);
sensors[MICROPHONE].frequencies = 16000.0f;
On starting sampling, the row hangs on “Sampling… (1s left)” and the error is-
Sampling failed : Timeout when waiting for > (timeout: 4000) AT+SAMPLESTART = Built-in microphone
Should I change any other values in the firmware before building it?