If you get an error when you try and program using our mikroProg for STM32, then this is a workaround.
When you open the mikroProg Suite for ARM, do the following:
1. Disconnect the mikroProg from your PC;
2. Reconnect it;
3. Click on Options;
4. Select JTAG(even if it is selected already, click on it again);
5. Click OK;
6. Program.