Hi, I am running the supplied example application "AWECore ST_EVAL_CortexM4 Release-8.B.5.1_ST_Eval_build61\SampleApps\STM32F407\Source" and exported the needed files from AWE designer.
nResult = awe_loadAWBfromArray(&g_AWEInstance, Core0_InitCommands_Len, Core0_InitCommands, &nErrorOffset); returns "E_SUCCESS", input can be read and everything is working as expected, including controlling parameters of the AWE design via external hardware and so on.
But: audio only will play when I trigger it from AWE Designer via the "play button" there. In standalone-mode there will be no audio audible.
I tried to call usrAudioStart() (declared in "Platform.h") but then I get an error from the linker, that the symbol/function can not be found.
I had a look at "awe-core-integration-guide.pdf" but could not find how to start/stop audio in a stand-alone application there, too.
Also this documents seems to be outdated, because for loading the AWB-data awe_fwPacketExecuteArray() is suggested which seems to got substituded by awe_loadAWBfromArray().
Anyways, I guess this is a simple thing and I am just missing the right way to start audio for a stand-alone application without AWE Designer.
Or is there another file that has to be included / linked to supply usrAudioStart() - I did not find that with the sample-application or in the docu so far?
7:22pm
Hello Visuelle-musik,
Could you please try flashing the board via ST-Link Utility, by following the STM32F407 User's Guide located in "C:\DSP Concepts\AWECore ST_EVAL_CortexM4 Release-8.B.5.1_ST_Eval_build61\SampleApps\STM32F407\Doc"? You can find the binary flash files located in "C:\DSP Concepts\AWECore ST_EVAL_CortexM4 Release-8.B.5.1_ST_Eval_build61\SampleApps\STM32F407\Bin". This will enable the board to run without Designer.
Thanks,
Kevin
8:51pm
Hi Kevin,
thanks for the quick reply, but sorry to say this does not solve the problem.
The binary in this location is actually identical to the one I created myself using the supplied "\DSP Concepts\AWECore ST_EVAL_CortexM4 Release-8.B.5.1_ST_Eval_build61\SampleApps\STM32F407\Build\SW4STM32build.bat"
to the location "D:\DSP Concepts\AWECore ST_EVAL_CortexM4 Release-8.B.5.1_ST_Eval_build61\SampleApps\STM32F407\Build\SW4STM32\STM32F407_Discovery\Release", I guess it gets copied during that process.
To be sure I also loaded the original file and there is no difference.
Actually my application is running, I see the blinking LED as I modified it and can read my trace-output as expected.
The point is, there is no audible audio. My assumption (although this is not documented in the Platform-includefile or AWE Core intergration document) is that similar to the "play-button" in the designer processing audio has to be triggered. As mentioned before, there is a usrAudioStart() declared in "Platform.h" , which is included from "Platform.c" (where my application is situated) but the function can not be found by the linker. I had assumed it would be part of libAWECore.a at \DSP Concepts\AWECore ST_EVAL_CortexM4 Release-8.B.5.1_ST_Eval_build61\AWECore\Lib\SW4STM32 which seems to be not the case, though.
This should be an easy task, because it's so fundamental to make an embedded system work.
So if you please could explain it once again, even if for a different toolchain? Thanks a lot, Mathias
11:34pm
Hello Mathias,
Sorry, I misunderstood your question. The F407 BSP has 3 input channels, and 2 output channels. The first two channels are stereo USB audio and this is the audio which is streaming from the PC. The last input channel is the mono microphone. The 2 output channels are stereo out to the DAC. To pump Audio through AWECore (audible audio), you'll need to create and run a simple model in Audio Weaver and plug in speakers to the F407’s 3.5 mm audio output jack. Real-time processing will only happen once an Audio Weaver model is running.
Thanks,
Kevin
5:51am
Hi Kevin, thanks for your explanations, but I actually did all what you said already (I should have made this clear I guess, but I did not want my post to get too long, sorry ;-). I'll have a look into what Ben wrote, too, now...
3:26am
Hello Mathias,
it seems that you want to have the board running standalone, without any PC connected to it to run, correct?
If so, you need to flash the layout that you want to execute to the board.
This can be done in some simple steps:
As additional information: You can also delete files, but they will just be removed from the index, not freeing the memory, so if you should run out of memory after multiple changes of the file, you can format the flash (with the "Format Flash" Button in the flash manager) to free up the space.
Edit:
For some more information regarding build of target files you can have a look into our Designer Users Guide, Page 20 and 22.
BR
Ben
5:58am
Hi Ben,
I did what you said, and believe it or not it's up and running now :-)
So thank very much indeed for your very helpful information, highly appreciated!
BTW: Maybe you could tell me where this information can be found in the documentation, because I'd like to pass it own to my colleague as well. Just in cast it's not "written down" yet, I'll simply pass on the link to this thread instead, no problem.
all the best,
Mathias
PS: Just out of curiosity, telling by your lastname - are you maybe situated in Germany as well?