Thank you for the answer.
I've solved using a software control. Using the FTM_SWOCTRL register
FTM0->SWOCTRL|=FTM_SWOCTRL_CH7OC(1); // activate the software pin control
FTM0->SWOCTRL|=FTM_SWOCTRL_CH7OCV(0); // set the pin value
.
FTM0->SWOCTRL|=FTM_SWOCTRL_CH7OC(0); // deactivate the software pin control