cancel
Showing results for 
Search instead for 
Did you mean: 

What is RL detection mode

Lzhiy.1
Associate II

Threr are some fuctions that relate to "R/L detection mode" in the current sampling code,what's that mode?

1 ACCEPTED SOLUTION

Accepted Solutions
cedric H
ST Employee

@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

View solution in original post

3 REPLIES 3
cedric H
ST Employee

Hello @Lzhiy.1​ ,

Could you please give us more context.

Which file from which package are you talking about ?

Thanks

Cedric

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 );

...

cedric H
ST Employee

@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