Solved! Go to Solution.
Hello,
I have used in the past the G.726 library in a QuickStart project.
Basically the steps I did were:
* I added the library I needed to my project from ".....\CodeWarrior for DSC56800E v8.3\ProcessorExpert\Drivers\56800\SDK
* You need mainly to replace PE dependent types by QS types defined in QS header files. Fortunately they are in most cases compatible.
* It requires modification of a standard linker command file (SDM_pFlash.cmd) in QS project
For example:
.ApplicationData :
{
# save space for the pROM data copy
. = __xRAM_data_start + __data_size;
# .bss sections
* (rtlib.bss.lo)
* (rtlib.bss)
......
# ****** SDK beans begin ******
# G726 Internal Memory starts here
#---------------------------------
* (G726_INTERNAL_ROM.data)
# G726 Internal Memory ends here
#-------------------------------
# ****** SDK beans end ******
....
But perhaps is easier to use the motor control library (GFLIB) that includes PI routines.
Frac16
GFLIB_ControllerPIp(Frac16 f16InputErrorK,
GFLIB_CONTROLLER_PI_P_PARAMS_T *pudtPiParams, const Int16 *pi16SatFlag)
I hope this helps.
Best Regards,
Hello,
could you please specify what do you mean by "PID controller library from processor expert" because as far as I know there is provided only the MC_PIController component for this family.
best regards
Vojtech Filip
Processor Expert Support Team
Hello,
I have used in the past the G.726 library in a QuickStart project.
Basically the steps I did were:
* I added the library I needed to my project from ".....\CodeWarrior for DSC56800E v8.3\ProcessorExpert\Drivers\56800\SDK
* You need mainly to replace PE dependent types by QS types defined in QS header files. Fortunately they are in most cases compatible.
* It requires modification of a standard linker command file (SDM_pFlash.cmd) in QS project
For example:
.ApplicationData :
{
# save space for the pROM data copy
. = __xRAM_data_start + __data_size;
# .bss sections
* (rtlib.bss.lo)
* (rtlib.bss)
......
# ****** SDK beans begin ******
# G726 Internal Memory starts here
#---------------------------------
* (G726_INTERNAL_ROM.data)
# G726 Internal Memory ends here
#-------------------------------
# ****** SDK beans end ******
....
But perhaps is easier to use the motor control library (GFLIB) that includes PI routines.
Frac16
GFLIB_ControllerPIp(Frac16 f16InputErrorK,
GFLIB_CONTROLLER_PI_P_PARAMS_T *pudtPiParams, const Int16 *pi16SatFlag)
I hope this helps.
Best Regards,
Thank u sir;
but i observed following things there,
Acc to ur steps i follow them but it is very confusing which library should i include , there is no dedicated library for PI in SDK of codewarrior v8.2.3.Secondly i make PE datatypes compatible with qs & most errors are not there but i am not understanding is it mandetory to change .cmd file also.The only one error is there as " function defined 'inline' after being used" what it means & how to fix it....
Hi,
have you created a project with Processor Expert enabled and added the MC_PIController component into the project?
The library is included to the project when the component is added. You should see it in the Processor Expert tab of the project panel. After that you can call methods of the component, for example MC1_controllerPItype1 or MC1_controllerPIDtype1 from main routine of your project.
best regards
Petr Hradsky
Processor Expert Support Team
Yes sir i have completed my task of including PI library.I am really thankful to all of you for ur worthful replies.