The blue fake ST-LINK/V2 shown in the picture of the setup, which almost certainly does not contain an STM32, regularly leads to problems because something does not work. Because of the problems, people here in the community keep asking for help, but at least STMicroelectronics cannot provide it - simply because the tool is an illegal replica that ST neither knows about nor has manufactured, nor can take responsibility for.
As @Community member has mentioned, the NUCLEO-L152RE shown in the photo has an ST-LINK/V2-1 debugger, i.e. even original and fully functional and not restricted ST-LINK, with which you can debug and program without further aids (ok, only the mini-USB cable and a host computer are necessary).
Did you know that you can also break off this ST-LINK/V2-1 from the NUCLEO and use it stand-alone, just like the blue fake - only without the housing and of course fully functional and legal?