Programming STM32 with ST-Link Utility and ST-LINK/V2 Debugger

preview_player
Показать описание
#ProgrammingSTM32 #STLinkUtility #STLINKV2Debugger
In this video Programming of STM32 with ST-Link Utility and ST-LINK/V2 Debugger shown without audio explanation.

Step-1
0:00:10 - Shown Icon available in ST Link Utility

Step-2
0:00:19 - Connect to MCU (Go to Target and then Connect)
Make sure your ST-Link Debugger is connected to Microcontroller and PC. Once you click on Connect you are connected to your MCU. If the ST-Link debugger is successfully connected to MCU you can see the debugger ID, SWD, Frequency etc. at bottom.
Now you are ready to communicate with your Microcontroller. You can see data available in Microcontroller irrespective of their address as shown in video.

Step-3
0:00:33 - Setting
Go to Target and then setting you will see a pop up window and there you can see
Debugger serial number - xxxx
FW Version - xxxx
STM 32 Target Information - e.g. STM32Fxxxx
Port - JTAG/SWD (Choose per your protocol)
Frequency - 4MHz and rest of the setting as shown in video.

Step-4
0:01:14 - Option Bytes (Go to Target and then Option Bytes)
In the option bytes you can see if any address sectors in your memory of MCU are locked and size of the sector as shown in video. This is optional step not needed in programming.

Step-5
0:01:14 - Erase Chip (Go to Tools and then Erase Chip)
Its better to erase the MCU before flashing the new .hex file. Erasing the chip will remove the persistency of the memory. Once your chip is completely erased you can see FFFFFFFF in address as shown in video.

Step-6
0:01:55 - Program & Verify (Go to Tools and then Program & verify)
Now you are going to program you MCU so you will flash you .hex in your MCU. So you have to browse your .hex file in browse section from your PC. Once you are done with browse you have tick "verify after programming" button and then START programming. If the program flashed successfully you can see memory program xx sec and Verification OK.
You can now see some data is available in address as shown in video.

Step-7
0:03:05 - Disconnect (Go to Tools and then Disconnect)
The last step is to disconnect the MCU from debugger and give Power ON cycle to reset the MCU.

This channel offers the mentorship program. Once you sign in for mentorship program you will get opportunity to interact with me directly for your Q&A through online consulting : 96$/month.
You can also schedule 1-1 meeting with me by paying just 19$/meeting.

Please do not raise access request if you have not joined LTspice Simulation Help Membership. The access of ltspice file will be given only to LTspice Simulation Help Members.

Thank You !
Рекомендации по теме
Комментарии
Автор

This is very hard to understand. Whay can you not include words? Spoken would be best. But at least give witten descriptions of what you are trying to show.

tinayoga
join shbcf.ru