Drone
The objective of this project is to build a drone able to flight with stability control and sensors for collision avoidance. As a first stage the drone will be radio controlled and as final stage the drone will be autonomous.
To achieve this a STM32F103 micro will be use along with a GY-521 IMU sensor and a HC-SR04 distance sensor.
To program the STM32F103 "STM32CubeIDE " Software will be used, it can be downloaded from ST website. There are several way to write our program to the micro, but I recommend using ST-Link because it is convenient, debugging is easier and it is cheap.
When I tried to write the program to the micro, the programmer was unable to do it and disconnected from the micro.
To fix this problem "STM32 ST-LINK Utility" Software can be used, each step is described in the pictures below. Remember to connect the micro to the ST-Link and the ST-Link programmer to the computer before starting.
Error Description
Go to "Target" then "Option Bytes"
Set Read Out Protection as "Disabled"
Fixed
New Updates Soon.