Hi all,
I am new to AWE and I have created a really simple AWD file including only two second order filter smoothed and one volume control. If I build and run it after connecting to the SAM V71 via the AWE Server everything works like expected. That is I can hear the music and live changes in the AWE Designer are hearable in real-time, too.
Now I would like to flash this simple preset onto the development board so that it is executed every time after power up. I did not find much about it in the manual and I did not managed to do this so far.
What I tried was to "Generate Target Files..." and to create an AWB file from the AWD file as well as an _ControlInterface.h file (which is also default checked option in the Generate Target Files dialog but I do not know why). And afterwards I went to the Flash Manager of the AWE Server and added the AWB file (of course I checked the "Boot file" checkbox before pressing the Add button). Then I clicked "Format Flash" and waited for some seconds assuming that now the SAM V71 board should be flashed. But after a power cycle or after pressing the reset button the audio output does not play like expected. In fact nothing is hearable unless I rise my headphone gain about 50dB so that I can hear the input music, probably it is a crosstalk signal.
What is wrong with my approach?
9:29pm
Hello,
Thanks for providing a detailed description of your problem, it helps. Before we talk about flashing your SAMV71, may I please ask if you programmed the BSP (Board Support Package) for Audio Weaver onto your device? It would have been a .bin file. This file allows Audio Weaver Designer and Server to communicate with the target (SAMV71 in your scenario).
Based on your comments, I think you were running your .awd file in "Native" Audio Weaver Server connection mode, which means it was running on your laptop (rather than running on the SAMV71).
In the Audio Weaver Server window, you will see a 'Target' tab at the top of the window. When you left-click or hover over "Target" with your mouse, you will see a "Change Connection..." option. Clicking this will bring up a window which allows you to change the Audio Weaver Server's connection (Native PC, RS232, USB, TCP/IP, SPI). In your case, with the SAMV71, you would be connected via USB.
Once we've figured out this step, we can try to diagnose flashing your SAMV71.
Thanks,
Kevin
6:40am
Hello Kevin,
thank you very much for your reply.
Yes I used SAM-BA v2.15 and loaded the .bin file onto the board before starting with AWE Designer. The Server connection is configured to talk with the board via USB, VID 1003 and PID 25089. Its output frame says the following:
Name: SAMV71
AWECore Version: 6.2.4.19
Processor type: CortexM7
CPU clock rate: 300 MHz
Profile clock rate: 300 MHz
Sample rate: 48000 Hz
Basic block size: 32 samples
Communication buffer size: 264 words
Is floating point: Yes
Is FLASH supported: Yes
Size of 'int': 4
Heap padding
Core ID: 0 [0:0]
Static core: yes
Threads: 2
Pins:
Input: 2 channels fract
Output: 2 channels fract
This seemed correct to me but of course there could be a problem. What do you think about?
Sorry for the insufficient description of my audio setup. I use a firewire audio interface by MOTU which sends music to the development boards microphone input and it also receives the audio which is outputted by the board. Then I can hear the latter signal via Headphones which are plugged into the front panel of the audio interface.
Should I maybe use a newer version of SAM-BA or could it be a problem that I am still using Windows 7?
Best regards,
Yann
10:21am
Hello Yann,
Based on your comments, I can't think of anything that would be wrong so far. I'm checking about Windows 7 for you, but in the mean time. What version of Audio Weaver are you running? Also, may I see your .awd file? Also, when you say microphone input, you have audio going in as described in the attached picture correct?
11:10am
Hello Kevin,
I downloaded the trial version of AWE some days ago. The desktop icon says "Standard 8.B.1.4.B".
Of course you can see the .awd file. I will attach it here.
Yes, the picture is correct. On the board the jacks are labeled MICROPHONE and HEADPHONE. That is why I used these names but in fact I use the input jack like a line-in.
Thank you for your assistance so far!
11:54am
Hi Yann,
When you created the .awb file, did you select the 'Boot file' option for that .awb file when adding it to the Flash Manager?
To load the .awb on the board, the file must be set as the "Boot file".
2:16pm
Hi Kevin,
I made the following steps.
Generate AWB file with AWE Designer:
open the Flash Manager in AWE Server and add the file with "Boot file" checked:
confirm that I want to delete all files from the target flash:
wait while the erasing flash file system is done:
after the loading bar is completed nothing more happens and I see this:
I wonder if there should be any confirmation that flashing the board was successful. Maybe the flash is not executed completely?
2:46pm
Don't you want to first erase all files and then write the AWB?
4:19pm
Okay, yes, that sounds reasonable! I thought the button "Format Flash" would do both erasing the boards memory and flashing the selected AWB file into it afterwards. As I said in the beginning I did not find a section in the manual how to flash. Now I just tried to add the AWB file with checked "Boot file" without pressing "Format Flash" afterwards and indeed the added file stays on the board and music is processed like expected after a power cycle. :-)
Thank you so much!