2020-05-14 03:47 AM
When I set Output compare preload to enable in the configuration interface, the generated code shows disable
2020-05-14 05:51 AM
Look 2 lines higher than is the highlight - there's the preload enable.
JW
2020-05-14 08:29 PM
Thank you for your answer. When I set Out put compare preload to disable in Device Configuration Tool, the highlight is still enable. I do n’t know how to configure to change these parameters. Could you tell me if you know?
2020-05-14 08:32 PM
My IDE version is 1.3.0
2020-05-15 12:50 AM
I don't know.
@Nesrine.JLASSI , can you please have a look at this?
Thanks,
JW
2020-05-15 02:47 AM
Hello @Bence
Could you please share your ioc file to check the issue.
Best regards,
Nesrine
2020-05-15 02:54 AM
2020-05-15 02:59 AM
Thank you all the same, JW
2020-05-15 07:35 AM
Hello @Bence
The LL are a translation of the intropack HAL drive. So, if in the function of the driver that you call there is a forcing of this parameter, then it appears in the LL code generation.
In the reference function you would call (if you are in HAL):
HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim,
TIM_OC_InitTypeDef *sConfig,
uint32_t Channel)
There's a call for channel preload.
This is the code you find in LL.
Best regards,
Nesrine
2020-05-15 12:52 PM
Hi @Nesrine.JLASSI
Why is then an option in the GUI to enable the preload, if it is ignored?
JW