Target connection fails with "Cannot identify target as a stm32x" (although STM32L053 works)
If it works under STLink Utility but not with your SW4STM32, it could be due to the USB drivers.
Some USB 3.0 Controllers (such as NEC/Renesas) have a bug that prevents the binary to be downloaded to the board.
Please, may you check you are using the latest version of the controller to fix this issue.
Note that sometimes, the device manager seems to be up to date but the issue is fixed after executing the setup provided in the zip.
It can be downloaded from :
https://s3.amazonaws.com/plugable/bin/2014-03-Plugable-Renesas-USB-3.0-200-2.1.39.0.zip
See post : http://www.openstm32.org/forumthread3806