Creating a blinky application on baremetal using Keil μVision for FRDM-K64F
Blinking an LED is the equivalent to creating a "Hello World" application to verify the IDE/tool/compiler are installed correctly on general purpose computers. We will be using Keil μVision for this exercise.Pre-requisite:
- Hardware that has supported BSP in Keil μVision. I am using FRDM-K64F, below are the key specifications of this board
- Part#: MK64FN1M0VLL12
- Vendor: NXP
- Board name: FRDM-K64F
- Description: Freedom Development Board for Kinetis K24 (1 MB Flash), K63 and K64 MCUs
- CPU: ARM® Cortex®-M4-based Microcontroller with FPU
- Frequency: 120 MHz
- SRAM: 256KB
- Flash: 1MB
- Keil μVision already installed
\
Step 1: Open Keil μVision.
Step 2: Open Pack Installer
Step 3: Using Pack Installer, select Boards tab and search for FRDM-K64F, then install the board support packagae (BSP)
Accept NXP agreement for the FRDM-K64F_BSP You may see another license agreement for the MK64F12_DFP, so accept and do Next Step 4: Create a copy of the blinky sample application by selecting the board and the the example application. Select destination where to copy the example. Step 5: Connect FRDM-K64F board to the computer and configure Debuger
Select the project Do Project options In Debug tab, select CMSIS-DAP Debugger and do Settings Select CMSIS-DAP v2 and close the dialog Step 6: Now do a Build (Project | Build Target), Flash (Flash | Download) and then Debug (Debug | Start/Stop Session) as needed.
Go thinkering!











No comments:
Post a Comment