@Batuhanoguz wrote:
I thought it's possible with any mcu.
No, it isn't - only MCUs which embed a Host (or OTG).
So you'll either have to change MCU, or add external Host hardware.
(some people have managed to bit-bang USB - but that's a non-trivial exercise)
@Batuhanoguz wrote:
I have done too many things on my project and starting from beginning too hard at this moment.
There's a lot of commonality between STM32 families, so it wouldn't be a complete start from scratch - especially if your application is well-structured...
See Application Note AN3364, Migration and compatibility guidelines for STM32 microcontroller applications:
https://www.st.com/resource/en/application_note/an3364-migration-and-compatibility-guidelines-for-stm32-microcontroller-applications-stmicroelectronics.pdf
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.