2021-06-20 11:40 PM
Hi ,
I have added usb functionality in my code using stm32cubemx.
Now i don't want to compile it using #if or #ifdef
How to do it ?
I tried following:
I used #if to remove usb initializing function and not used usb in any code , but when i saw .map file still following files are getting compiled
usbd_conf.o
usbd_core.o
usbd_ctlreq.o
usbd_ioreq.o
2021-06-21 05:22 AM
You would need to remove the files from linking,
exclude them in the project's file list.
Easier: