Esp32-s3 ESP_LOG on USB lines instead of UART - (esp-idf)

Hi I am not being able to configure USB CDC for printing my logs from the main code. I am using esp-idf, getting these errors when i try to add the flags

build_flags = 
   -DCONFIG_ESP_CONSOLE_USB_CDC=1
   -DCONFIG_ESP_CONSOLE_UART=0
   -DCONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL=0
Compiling .pio\build\esp32-s3-devkitc-1\bootloader\efuse\esp32s3\esp_efuse_fields.o
Compiling .pio\build\esp32-s3-devkitc-1\bootloader\efuse\esp32s3\esp_efuse_rtc_calib.o
C:\Users\gkowshik\.platformio\packages\framework-espidf\components\bootloader_support\src\bootloader_console.c:88:6: error: redefinition of 'bootloader_console_init'
   88 | void bootloader_console_init(void)
      |      ^~~~~~~~~~~~~~~~~~~~~~~
C:\Users\gkowshik\.platformio\packages\framework-espidf\components\bootloader_support\src\bootloader_console.c:35:6: note: previous definition of 'bootloader_console_init' with type 'void(void)'    
   35 | void bootloader_console_init(void)

what am i missing? i also tried using the menu config method but then I got a different error as below something related to multicore not being supported.

Compiling .pio\build\esp32-s3-devkitc-1\esp_wifi\src\smartconfig_ack.o
C:/Users/gkowshik/.platformio/packages/framework-espidf/components/esp_system/port/soc/esp32s3/usb_console.c:69:1: error: static assertion failed: "usb_osglue_*_int is not multicore capable"        
   69 | _Static_assert(SOC_CPU_CORES_NUM == 1, "usb_osglue_*_int is not multicore capable");
      | ^~~~~~~~~~~~~~
C:/Users/gkowshik/.platformio/packages/framework-espidf/components/esp_system/port/soc/esp32s3/usb_console.c: In function 'esp_usb_console_read_buf':
C:/Users/gkowshik/.platformio/packages/framework-espidf/components/esp_system/port/soc/esp32s3/usb_console.c:337:10: error: implicit declaration of function 'esp_usb_console_read_available'; did you mean 'esp_usb_console_write_available'? [-Werror=implicit-function-declaration]
  337 |     if (!esp_usb_console_read_available()) {
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |          esp_usb_console_write_available
C:/Users/gkowshik/.platformio/packages/framework-espidf/components/esp_system/port/soc/esp32s3/usb_console.c: At top level:
C:/Users/gkowshik/.platformio/packages/framework-espidf/components/esp_system/port/soc/esp32s3/usb_console.c:365:6: error: conflicting types for 'esp_usb_console_read_available'; have '_Bool(void)' 
  365 | bool esp_usb_console_read_available(void)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/gkowshik/.platformio/packages/framework-espidf/components/esp_system/port/soc/esp32s3/usb_console.c:337:10: note: previous implicit declaration of 'esp_usb_console_read_available' with type 'int()'
  337 |     if (!esp_usb_console_read_available()) {
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1.exe: some warnings being treated as errors
Compiling .pio\build\esp32-s3-devkitc-1\espcoredump\src\core_dump_common.o
*** [.pio\build\esp32-s3-devkitc-1\esp_system\port\soc\esp32s3\usb_console.o] Error 1
=================================== [FAILED] Took 43.99 seconds ===================================

 *  The terminal process "C:\Users\gkowshik\.platformio\penv\Scripts\platformio.exe 'run', '--environment', 'esp32-s3-devkitc-1'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

I think all you have to do is to enable CONFIG_ESP_CONSOLE_USB_CDC in sdkconfig and disable all UART related log settings.

See USB OTG Console - ESP32-S3 - — ESP-IDF Programming Guide v5.3.2 documentation