Hello Henrik and Panu,
I ran your updated version of the "Rec" command and I got it to work with keyboard input.
Here is the output for different input combinations:
Pressing Alt Gr and the "^ ¨ ~" key (next to Å key) ONCE and typing 0209 <enter>, produces "~0209" in notepad and
In the VSOS console. When I copy-paste my self-typed input from notepad and press enter, it gives me the VU value:
Pressing Alt Gr and the "^ ¨ ~" key (next to Å key) TWICE and typing 0209 <enter>, produces "~~0209" in notepad and
In the VSOS console. Copy-pasting from notepad doesn't give wanted output.
Pressing Alt Gr and the "^ ¨ ~" key (next to Å key) TWICE and pressing backspace once, typing 0209 <enter>, produces "~0209" in notepad and
In the VSOS console. Copy-pasting from notepad also gives wanted output.
That's it for the Rec command. Now back to our main issue.
As Panu said, I formatted the flash memory and copied over some fresh libraries from "VSOS_357_RootAndLibrariesSourceCode.zip".
The previous clock speed in CONFIG.TXT was:
and I changed it to what you told me:
I'm not running out of memory on boot anymore, but still running out on recording start.
I changed the input buffer size from 512 to 4096, it was and is still set by this line in the code:
Code: Select all
ioctl(audio.ADCFp, IOCTL_AUDIO_SET_INPUT_BUFFER_SIZE, (void *) ADC_BUFSIZE);
This doesn't help the memory issue at all. The last lines of input when starting recording are:
Code: Select all
IMEM: only 1882w free!
IMEM: only 236w free!
E'Out of mem 0 (@0,992w,0).
With S/PDIF as the input the line "E'Out of mem 0 (@0,992w,0).'" gets printed, on AV input (AUIADC) the program doesn't even reach that point when crashing.
It seems that every time I manage to brick the dev board and restore it successfully, the amount of available memory keeps decreasing. This is only the second time I've bricked and restored it. Do you have any clue what is causing this?
I also tried the version left to my hands by the previous programmer. It omits the input changing feature and some others as well. It used to work quite nicely. Now, after the two bricking cases it no longer works. It runs out of memory right after stopping recording. I can confirm that is used to work with the exact same hardware configuration.