2020-03-26 03:15 AM
STM32CubeIDE v.1.3.0
STM32G431RBTx
In any timer if the input channels 1 and 2 are set for use as "Combined channels = Encoder Mode" (by CubeMX or integrated in CubeIDE), it is not possible to select a remapped input (for example from the comparator). This makes it mandatory to use a useless input pin, to then command the remap in the software through HAL or LL libraries. Please fix up.
Regards
Andrea
2020-03-26 06:56 AM
Hello Andrea Canepa ,
I didn't reproduce the issue, could you please explain more your problem ?
You can share your ioc file in order to check the issue.
Thanks,
Khouloud.
2020-03-26 09:42 AM
Hello Khouloud,
to reproduce the problem is simple:
Two I/O pins will be engaged and there is no way not to use them, because there is no possibility to change the inputs of TI1 and TI2 using the remaps (using signal from the comparators).
This is just a setup problem with CubeMX (or Device Configuration Tool), because if I use the LL or HAL libraries, I can remap the TI1 and TI2 inputs to the comparators and not use two pins unnecessarily. See register TIMx_TISEL.
Regards
Andrea
2020-03-27 10:01 AM
Hello Andrea Canepa
Thanks for your reported issue. This is raised internally for correction. We will come back to you with answer.
Kind Regards,
Khouloud.
2020-03-27 10:18 AM
Hello Khouloud,
I would also like to clarify that this bug had already been reported by me on 22 July 2019 to your Online support service (see Case Number 00084660) but it has probably been forgotten.
Regards
Andrea