I have a platform hardware that currently runs on the AWE 5 version. I am working
on making it work with AWE 6. I have read through and adjusted the code to AN-01, rev 2, dated 8/2017.
I followed the steps and have been using the 21489 ez kit platform files as reference.
I am encountering a couple of issues and questions. I am itemizing them below.
Please note that I am using VDSP. Also, I ran the 21489 ez kit platform AWE 6 files and they
run on my side.
1. I am encountering an error in the compilation of the platform firmware to be
adapted for AWE 6. I started with the files that runs under AWE 5. Here is the
VDSP error list. I think the error starts because I have the following
files that looks different from the files from the 21489 reference platform files.
Note that before I compiled, I took out the old dlb files and copied over the
new AWE 6 files.
Here is my error list under VDSP
[Error li1021] The following symbols referenced in processor 'p0' could not be resolved:
'ClassPin_Constructor [_ClassPin_Constructor]' referenced from '.\Debug\PacketAPI.doj'
'GetTargetInfo [_GetTargetInfo]' referenced from '.\Debug\PacketAPI.doj'
'InterleavedInputPin [_InterleavedInputPin]' referenced from '.\Debug\PacketAPI.doj'
'InterleavedOutputPin [_InterleavedOutputPin]' referenced from '.\Debug\PacketAPI.doj'
'awe_fwGetObjectByIndex [_awe_fwGetObjectByIndex]' referenced from '.\Debug\PacketAPI.doj'
'awe_fwGetWire [_awe_fwGetWire]' referenced from '.\Debug\PacketAPI.doj'
'awe_fwSUpdateLookupTable [_awe_fwSUpdateLookupTable]' referenced from '.\Debug\PacketAPI.doj'
'awe_fwSetWire [_awe_fwSetWire]' referenced from '.\Debug\PacketAPI.doj'
'awe_modIntToFloatClass [_awe_modIntToFloatClass]' referenced from '.\Debug\Platform.doj'
'awe_modSafetyClipClass [_awe_modSafetyClipClass]' referenced from '.\Debug\Platform.doj'
'awe_modScalerClass [_awe_modScalerClass]' referenced from '.\Debug\Platform.doj'
'g_fastb_heap_index [_g_fastb_heap_index]' referenced from '.\Debug\PacketAPI.doj'
'g_master_heap_index [_g_master_heap_index]' referenced from '.\Debug\PacketAPI.doj'
'g_pInstanceHead [_g_pInstanceHead]' referenced from '.\Debug\PacketAPI.doj'
'g_slow_heap_index [_g_slow_heap_index]' referenced from '.\Debug\PacketAPI.doj'
'g_target_control_flags [_g_target_control_flags]' referenced from '.\Debug\PacketAPI.doj'
Starting files runs with AWE 5
AWEFlash.c //SAME
AWMain.c //SAME
AudioDriver.c //SAME
DMA_Processing.asm //SAME
FileSystem.c
FlastFileSystem.c
FrameworkAPI.c
PacketAPI.c
PacketExecFile.c
PacketExecMem.c
Flash_driver.c // this is a specifc spi flash driver
Platform.c // this is specific to my hardware
It seems like there is a re-arrangement of files with the AWE 6 platform.
Please advise what is my best path.
Are the old source file been compiled to the new dlb files?
2. Question on difference on dlb files
- In the platform files that runs on AWE 5, I have been using the following dlb files
and listed them below. In the AWE 6, did you consolidated the dlb so there are
less files? I noticed that the AWE 6 dlbs are less in number but bigger size.
AWE 5 dlb files
AdvancedAudioFloat32.dlb
AdvancedAudioFract32.dlb
AWE_TuningLib.dlb
BasicAudioFloat32.dlb
BasicAudioFract32.dlb
BasicInt32.dlb
CFramework.dlb
Core32.dlb
FrequencyDomainFloat32.dlb
HighPrecisionFloat32.dlb
MathFloat32.dlb
Misc.dlb
ModuleHelper.dlb
SHARCOnly.dlb
Vector.dlb
AWE 6 dlb files
Advanced.dlb
CFramework.dlb
ModuleHelperLib.dlb
Standard.dlb
VectorLib.dlb
2:00pm
Emilson,
Here is a link for the latest BSP for the ADSP-21489 EZKit.
https://app.box.com/s/iplqlv8jhwzcz6m5x881l0oed4lcxkei
As you suspect there has been a lot of restructuring.
I suggest you start with this BSP and change the pieces that are unique to your hardware.
At a minimum these files will need to be updated for your specific target:
Platform.c
AudioDriver.c
TargetInfo.h
other files may also have to be updated depending on your communication protocol.
2:01pm
The AWE libraries have been consolidated as you noted and the BSP source files have also been re-vectored.