Hi
I use the target file generation to generate c compilable files, so can initialize the pointers to the structure of the modules in my model ..
This way I can update internal state from the platform code level due to for example a hardware event....
In 6.17 the generated code looks like the one at end of this message. with reference to that code..
This code is not compilable for 2 reasons
1) As highlighted in bold, awe_fwGetObjectByID in version 6.17 expects 4 parameters. I tired manually editing and use the new awe_fwGetObjectByID 2 as workaround after fixing issue 2) below, but that crashed my arm processor, perhaps its not handling the call when the model is not yet loaded(I usually download it via HID after powering) and in 5.16 AWE it would just return E_CLASS_NOT_FOUND until a valid model is loaded
2) awe_modmymymoduleClass is wrong , comparing with 5,16, it should be awe_modmymymoduleInstance , i.e not Class..
Please advice if there is a fix or a work around
Thanks Al
#include "awemodel_mymodule.h"
AWE_MOD_SLOW_ANY_DATA awe_modcrowbar2Class *mymodule1;
#ifdef __cplusplus
extern "C" {
#endif
#include "Errors.h"
/* ----------------------------------------------------------------------
** Object variables declarations.
** ------------------------------------------------------------------- */
INT32 InitializeAWESymbols(void)
{
InstanceDescriptor *inst;
UINT32 classID;
if (awe_fwGetObjectByID(mymodule_ID, &inst, &classID) != E_SUCCESS)
return( E_CLASS_NOT_FOUND);
mymodule1 = (awe_modmymymoduleClass *) inst;
return(E_SUCCESS);
}
#ifdef __cplusplus
}
#endif
4:43pm
Hello Al,
I believe this is not a bug, but probably an incompatibility between Audio Weaver Designer 5 and Designer 6. If you would like to use Audio Weaver Designer 6, you will need to move to a newer version of AWE Core so that the headers are compatible.
Unfortunately, we wouldn't be able to support this by making any changes to Audio Weaver Designer 5 or 6.
Thanks,
Kevin