2021-11-18 12:57 AM
Threr are some fuctions that relate to "R/L detection mode" in the current sampling code,what's that mode?
Solved! Go to Solution.
2021-11-18 03:24 AM
@Lzhiy.1 ,
These functions are used by the motor profiler binary.
The motor profiler tool comes with dedicated binary that are flashed by the tool in order to be able to profile your motor.
As these functions are not used by the standard SDK, they do not consume any memory.
Regards
Cedric
2021-11-18 01:22 AM
Hello @Lzhiy.1 ,
Could you please give us more context.
Which file from which package are you talking about ?
Thanks
Cedric
2021-11-18 01:39 AM
STM32F407
MotorControl Workbench 5.4.4
in the generated file "r3_2_f4xx_pwm_curr_fdbk.h"
there are functions about "RL detection mode":
/**
* It is used to enable the PWM mode during RL Detection Mode.
*/
void R3_2_RLDetectionModeEnable( PWMC_Handle_t * pHandle );
/**
* It is used to disable the PWM mode during RL Detection Mode.
*/
void R3_2_RLDetectionModeDisable( PWMC_Handle_t * pHandle );
/**
* It is used to set the PWM dutycycle during RL Detection Mode.
*/
uint16_t R3_2_RLDetectionModeSetDuty( PWMC_Handle_t * pHandle , uint16_t hDuty );
/* Returns whether an over current condition has occurred */
void RLTurnOnLowSidesAndStart( PWMC_Handle_t * pHandle );
...
2021-11-18 03:24 AM
@Lzhiy.1 ,
These functions are used by the motor profiler binary.
The motor profiler tool comes with dedicated binary that are flashed by the tool in order to be able to profile your motor.
As these functions are not used by the standard SDK, they do not consume any memory.
Regards
Cedric