cancel
Showing results for 
Search instead for 
Did you mean: 

Programming using Keil uvision does not work vs STM32 programmer works

VThan.2
Associate III

Hello all,

I am using keil uvision to direct download the code in a STM32L552MEY6P MCU. My code just toggles a pin. The MCU is connected to a V3 programmer using SWDIO,SWCLK,NRST,GND and VCC. Every time I program with Keil, I am not able to initiate the program and I don't see the pin toggling. It works every time with a cube program software.

These are setting on my keil uvision

0693W00000Nr43XQAR.png0693W00000Nr453QAB.png0693W00000Nr45IQAR.png0693W00000Nr45NQAR.png 

This is my settings on cube programmer

0693W00000Nr48MQAR.png 

Any recommendations what settings can be wrong on Keil?

Thank you

2 REPLIES 2
gbm
Lead III

Try lowering the SWCLK frequency to 1..2 MHz. What is the exact error message you get from Keil? Make sure to close all the other programs that could use the ST-Link while programming with Keil.

VZhik
Associate

Try to update Keil and st-link