i have same problem with cubemx when i generate code for keil it has problem i search about that and i noticed that we should install jdk 8 but i have android studio with jkd version 13 and i cannt delete it possible this problems beacuse of jdk version???
I can program with keil and its work on my board but it has problem too, when i want to program or debug it take error "Not a genuine ST Device! Abort connection"
Добрый день, Павел. С �?той ошибкой иногда �?талкиваю�?ь - непред�?казуемо - в проце�?�?е работы. Пока вывод - не оригинальные Сви�?тки �? �?лиек�?пре�?�?, к�?тати за 2 недели внезапно умерли 2 штуки((( - они давали большую ча�?ть ошибок . По�?тавил оригинальный st-link2 == 2 дн�? полет нормальный. Один умерший Сви�?ток �?ам переделал дл�? отладки (вывел �? него на те�?тируемую плату линии SWO + RST, необходимо�?ть RST в данном варианте отладки SWV так и не пон�?л - работает и �?ни и без, вкл. программный ре�?ет)
He wrote that unoriginal ST-LINKs from Aliexpress could be causing this problem. Then he took an original ST-LINK and had no problem for 2 days at least. Also he rebuild his invalid st-link connecting swo and rst pins to target board.
It seems as bug of CubeIDE and developers of ST don't pay any attention to this. In my case with STM32L1 series I faced with same problem with CubeIDE v1.4.0 and ST_Link v3 and solved it just by searching "right" settings. Right settings was: reduce frequency to 21 MHz instead of maximum possible 24 MHz and set "Debug in low power mode" to "No configuration" ("Disable" doesn't help).