Hello,
I was using the minimal project from github to create my own project. I have been flashed Audiomoth several times using Audiomoth Flash App. But the last time I did this, Audiomoth didn't work.
(the project maintains the flashing of the LEDs when switch is in CUSTOM or DEFAULT mode, and they don't blink when I switch is in those positions).
It is not found by the Flash App either. I tried in another computer but it didn't work.
Using flash application, when I run flash.exe I obtain "No serial ports found".
The difference between the last version that I flashed (that worked) and the one that failed were these added lines (I don't include the whole program for a better readability):
char STR[12300] = "";
for (int i = 0; i <NUMBER_OF_SAMPLES_IN_BUFFERS_DATA; i+= 1){
char str[12];
sprintf(str, "%f, ", var0[i]);
strncat(STR, str, 12);
}
RETURN_BOOL_ON_ERROR(AudioMoth_openFile("data.txt"));
RETURN_BOOL_ON_ERROR(AudioMoth_writeToFile(STR, sizeof(STR)));
RETURN_BOOL_ON_ERROR(AudioMoth_closeFile());
I don't know if the problem is related to this.
I am using windows 10.
What can I do?
Thanks in advance.
Perfect! I recovered the device. I was afraid of having damaged the device.
Thank you for your advise!