Is it possible that STM32L072 can be programmed/debugged through USB? It would be nice if somebody could share reference to the possible ways the micro-controller can be programmed/debugged.
Debugging is effected by an external pod, not sure where the confusion is here. The NUCLEO/DISCO implementations include a secondary chip to provide the ST-LINK SWD connections.
One can program the device cheaply/effectively via a USART connection. You can also use serial as a highly effective means of providing debug and telemetry data.
Any debug via USB would need to be implemented by you, ie create a USB CDC or HID to exfiltrate the log data.
You can program STM32L072 using USB DFU mode with embedded bootloader, however directly debug option is not supported. In this case you need external programmer/debugger.
You can find more about DFU programming via USB here:
Thank you for the prompt reply.
I understand that USB debugging(step debug) is not supported by STM32L072.
However I would like to confirm if I could get debug log through USB.
Retrieving data ...