Welcome, @YNara.1, to the community!
X-CUBE-MCSDK is freely usable if you observe SLA0048, see e.g. paragraph 4:
This software package or any part thereof, including modifications and/or derivative works of this software package, must be used and execute solely and exclusively on or in combination with a microcontroller or a microprocessor devices manufactured by or for STMicroelectronics.
Does it answer your question?
Regards
/Peter
In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.