Hi,
I have the Designer Version 7.A.0.8 STMicro.
I uploaded the STM32F407 FW to the board, that I downloaded from the website (did not build myself). When the server starts up (same version as designer) I can select from the dropdown (Change Connection) - USB - in the popup dialog I can see my board STM32F407 Discovery (115, 407), and the VID and PID Text boxes are populated . with aforementioned numbers. I click change and I still see Native as the selected board in the Output Tab. So I can't upload any designer projects as the designer can not see the board either. I have both USBs plugged in, CM1 at top of board to PC, and CM5 connected to same PC, I can see the Speaker (AWE Audio Class) in the speakers in device manager. Any ideas on how to fix this ?
Thanks.
Marcus
12:01pm
Hi Marcus,
I'm unable to reproduce your reported issue using Designer 7.A.0.8 and the s1.4 STM32F407 BSP from our downloads page. I reflashed the Discovery board with all 3 of the .bin's available in the package and had no problem connecting Server over USB to any of them.
So I have few questions for you to try to diagnose what's going on:
You see no errors when you click Change in the change connection menu?
If you choose Target->Show Info in the AWE Server, do you get any update in the Output window?
Is there a checkbox in the bottom right corner next to the word 'Connected'? If so, is it checked or unchecked?
If you choose Target-> List Modules, does the Output list any modules from 'ModulePackAweAdvancedDLL.dll'? If it does, then you are indeed still attached to the Native target.
For reference, here is a picture of what the Server should look like when connected to the 407 BSP:
By the way, you list VID = 115 and PID = 407 above, but VID should be 1155. I assume this was probably a typo but just want to confirm.
Thanks
-Axel
12:56am
Hi Axel,
Thank you for responding so quick ! I am using the St version (free version). I have the AWE speakers as default output in Windows, and the preferences are showing for PC audio devices : Cable Input and Cable Output (VB Audio Cable) My board is a STM32F407G.
After selecting USB - the VID does indeed equal 1155 and PID = 407 - sorry for the typo.
I don't see any tick box next to connected - not sure where you are suggesting it is (not in Server window at all).
Swtiching connections shows this in the messages tab :
Successfully connected to target. Waiting for script commands...
The error tab is blank. Selecting Target->Show Info in the Server app doesnt show anything new in the output tab (errors still empty) - the connection info is the same :
Target Information
Name: Native
AWECore Version: 7.A.5.0
Processor type: Native
CPU clock rate: 2.261 GHz
Profile clock rate: 10 MHz
Sample rate: 48000 Hz
Basic block size: 16 samples
Communication buffer size: 4105 words
Is floating point: Yes
Is FLASH supported: No
Size of 'int': 4
Cores: 2
Heap padding
Core ID: 0 [0:0]
Static core: no
Threads: 4
Pins:
Input: 2 channels fract
Output: 2 channels fract
The Show dropdown at the top is showing Native[0:0], even when I change it to Native [0,1] it shows the same info (except the core ID changes).
Here is the ini file contents :
; Annotated AWE ini file.
[BinaryServer]
; Port the Ethernet proxy talks on
TalkPort=15002
; Port that we listen on for binary commands, Default 15004.
Port=15002
[FilePath]
; Vertical bar delimited list of places to look for files modules want to read.
; Default empty.
Path=
[AudioPath]
; Vertical bar delimited list of places to look for audio files.
; Default empty.
Path=
[Heaps]
; Size of master heap in words
Native_MASTER_HEAP_SIZE=10485760
; Size of slow heap in words
Native_SLOW_HEAP_SIZE=4096000
; Size of fastb heap in words
Native_FASTB_HEAP_SIZE=10485760
[Settings]
; Which target - 0=native, 1=RS232, 2=USB, 3=Ethernet, 4=SPI, 5=XXX, 6=XXX, 7=RS232AVR, 8=FTD2XX, 9=TotalPhaseSPI, 10=RTDX
Connection=0
; Default USB and list of known USB targets
VID=1155
PID=407
UsbIndex=0
AWEUsbList=1155|407|STM32F407 Discovery;1155|429|STM32F429 Discovery;1155|746|STM32F746 Discovery;1155|496|STM32L496 Discovery;1155|769|STM32F769 Discovery;1003|25089|Atmel SAMV71 xPlained
; Which targets to show
ShowTargetUSB=1
ShowTargetEthernet=1
ShowTargetSPI=1
ShowTargetTotalPhaseSPI=1
ShowTargetFTD2XX=1
ShowTargetRS232=1
ShowTargetRTDX=1
; RS232 port for RS232 targets
RS232Port=3
; The port settings to use
RS232PortSetup=115200,N,8,1
; SPI Mode for Total Phase SPI (Mode0 or Mode3)
SPIMode=0
; SPI Transfer Type (0=Bulk or 1=Word)
SPITransferType=1
; The network card to use for TCP targets - default 1
WhichNetworkCard=1
; The network address of the TCP target
IPAddress=192.168.90.100
; Enables alpha features which are still in development
EnableAlphaFeatures=1
; Logging to debug crashes particularly in the compiled version
EnableMATLABLogging=0
; When set, hide tuning dialogs on close instead of destroying them, default 0
HideOnClose=0
; When set use fractional format instead of float format, default 0
PCIsFract=0
; Input sample rate, default 48000
InputRate=48000
; When set, process FLASH files when AWE starts, default 1
ProcessFlashFilesOnstart=0
; When set, support the combined stream capability, default 0
Combined=0
; Clip the hardware input width to this value - default -1 (not clipped)
MaxInputChannels=-1
; Number of dummy stereo outputs.
DummyOutputs=0
; Populated by scanning hardware
RS232AVRPort=1
RS232AVRPortSetup=115200,N,8,1
DTXDevice=Danville Signal Audio Demo Board
Skip=5
InputDevice=IDT Audio
InputChannels=2
OutputDevice=IDT Audio
OutputChannels=2
[TickTimes]
CPUTickRate=10
InspTickRate=10
MeterTickRate=10
[TimeOut]
SingleCharTimeout=50
TotalTimeoutTimeout=300
TCPTimeout=500
USBTimeout=1500
[Paths]
; Most recent script executed from UI command
[AddToFlashFile]
; History list of files recently added to FLASH
[CompileScript]
; History list of files recently compiled
[MatLabServer]
; Port that we listen on for MatLab connection
Port=15001
[ClientServer]
; Port that we listen on for GUI connection
Port=15003
[UtilityServer]
; Port that we listen on for special client connection
Port=15005
[ClientServer2]
; Port that we listen on for user connection
Port=15007
[ClientServer3]
; Port that we listen on for user connection
Port=15009
[ClientServer4]
; Port that we listen on for user connection
Port=15011
[Logging]
Enable=0
LogPath=awelog.txt
LogFlags=0
MatlabLog=0
CommandLog=0
Server2Log=0
Server3Log=0
Server4Log=0
PacketLog=0
[CustomerChanges]
AllowCustomerChanges 1
[FakeDevices]
DeviceCnt=0
Is there a log file I can look at anywhere ? Or can I turn on a verbose mode ?
Thanks
Marcus
10:56am
Hi Marcus,
You can enable logging in the .ini file you posted by updating the [Logging] section. Switch all of the keys to 1 and restart Server. You should see some logs under Bin\win32-vc100-rel\logs. Look for any errors or even any mentions of USB or 407.
The symptoms you are seeing are quite odd. Have you tried un-installing and re-installing the Designer software, or even tried restarting your PC? Also, please make sure you don't have an instance of MATLAB running, as sometimes this can interfere with Designer working properly.
-Axel
7:21pm
Thanks for the support and help. I've noticed on another PC that the driver being used for the USB Audio Device is coming up different. So when I plug in the STM32F407 with both USB connections, the usb audio device on the PC working correctly says AWE Audio Class (Generic USB Audio - version 10.0.16299.15), on the PC that is not working the driver is showing as USB Audio Device (10.0.17763.1) - no mention of AWE. Both are windows 10 etc. So I presume its a driver issue. I'll try and re-install.
8:42pm
Haha - running as Admin fixed it. I noticed when editing the .ini it wouldn't save the changes, so presumed it was a permissions thing. Perhaps its worth mentioning that ? Or at least reporting an error that can empower users to fix the issue themselves. Anyway thank you for the support.
8:46pm
In fact you only have to run as Admin once, I presume the first time you run and switch to USB it writes to a file somewhere, and if you are not admin fails to write. So running as admin writes the changes it needs and succeeds, then subsequent executions don't need to write any changes and therefore succeed also.
11:16am
Thanks for sharing the solution to your issue.