Beruflich Dokumente
Kultur Dokumente
c. Click on Device connect then it will ask for Upgrade for the firmware to Click on Yes.
d. Then it will pop as firmware upgraded successfully.
7. Then open keil µvision5 from windows tab or from desktop.
8. Once you open Keil software one will see the window as below shown.
9. Now copy the given example folder named as Blink_LED_L476RG or Blink_LED_L303RE to
documents folder Boards ST Copy Here. based on the micro controller you connected to
your laptop.
10. Now from the main menu of Keil window goto Project Open project It will ask you to chose
project goto the folder you copied above example. Then select the file Blink_LED.project.
Example: C:\Users\Naveenkumar Marati\Documents\Boards\ST\ Blink_LED.project.
11. Once you opened project the respective file with all its required header and other files will show
in left side Tab called Project (This called current project tab).
12. Now in the left side Tab open main.cpp. This is the workspace where one can write their own
code. It will show in center of the keil window.
13. Once you wrote your code here, goto Project Options for Target click on it. Or click on the
Icon as shown below in Fig.
17. Beside the pop-up tab in above Fig. There is a button called Settings click on it. It will pop a
window as shown in.
Note: If you are unable to find the Flash Download (STM32L4xx 1MB Flash or STM32F3xx 512kb
Flash).
For STM32L476RG
a. Goto the drive in which you installed Keil software and follow the path shown.
b. Keil_v5 ARM PACKKeil STM32L4xx_DFP 1.3.0Flash (Example:
C:\Keil_v5\ARM\PACK\Keil\STM32L4xx_DFP\1.3.0\Flash). Copy the entire files from this
folder and paste in the folder path is given below.
c. C:\Keil_v5\ARM\Flash (Keil_v5 ARMFlash).
d. After you copied the files to above location right click on folder STM32L4xx goto properties
and uncheck read-only.
For STM32F303RE
a. Goto the drive in which you installed Keil software and follow the path shown
b. Keil_v5 ARM PACKKeil STM32F3xx_DFP 1.3.0Flash (Example:
C:\Keil_v5\ARM\PACK\Keil\STM32F3xx_DFP\1.3.0\Flash). Copy the entire files from this
folder and paste in the folder path is given below.
c. C:\Keil_v5\ARM\Flash (Keil_v5 ARMFlash).
d. After you copied the files to above location right click on folder STM32F3xx goto properties
and uncheck read-only.
20. Then Build the program by click on the icon as shown or with keyboard F7.
21. Once your program built without error. Then download or Load the program on to
microcontroller by selecting icon as shown in Fig. or input from keyboard as F8.
22. Then click on icon as shown in Fig. or input from the keyboard Ctrl+F5.