Dictaphone project - MKRZero hangs indefinitely

sandeepmistry:
Hi @lehippie,

Have you tried to lower the sample rate to 8000 (instead of 10000)?

Also, what type of computer is your MKRZero connected to?

Hi @sandeepmistry, thank you for your answer.

Unfortunately, it does not change anything when I try to play with the sampling rate, it just stops after some time as usual. In fact, I know that the output is limited by the baud rate of the serial port but in the end, I want to record it on the SD card and I see the same effect on it. The corresponding code being longer, I just showed a simple one getting to the point of my issue.

I just did several tests and the arduino stops the correct I2S reading after respectively 29s, 3min18s, 16s, 21s and 41s...
During this entire time my logic analyser did get correct values :confused:

As for your other question, the MKRZero is connected on my Dell Precision M3800 that runs UbuntuGNOME 16.04. That reminds me that in my use case, I want to supply it from a wallplug. I will try this to see if it changes anything.

MarkDerbyshire:
From what I have understood about these boards remove the

while (!Serial) {;}

line

--
Mark

Thank you @Mark, I just copied this line from a tuto and I have to admitt I did not quite get its use... No impact on my issue, though :cry: