By now you must have got familiar with Keil, software used to write and the code for the ARM microcontroller and obtain the HEX code. If you are not familiar with Keil, Following are a couple of tutorials which I recommend you to go through
Getting Started: Part 1, Part 2
Once we are ready with the HEX code, It’s time to load it into the microcontroller. we use Flash Magic for this purpose.
You could download it here
Steps to follow
- Open Flash Magic and ensure that the right device, correct COM port and crystal frequency is selected.
If you do not know the COM port, open device manager either by searching for it using the search option or through the control panel.
Connect your device now and find the newly added USB Serial Port and note the COM number. COM3 in my case.
- Set the other options as follows:
Baud rate: 9600
Interface: None (ISP)
Check the Erase blocks used by HEX file option
Browse for the created HEX file in the project folder.
Click on Start and wait till the process is complete.
Now your code starts executing on the microcontroller.