Getting Started with the FRDM-K64F

上次修改时间: 2025-01-15 09:32:00

本文档内容

  • 1

    连接
  • 2

    获取软件
  • 3

    构建、运行

1. 连接

1.1 Important Information Before Plugging In Your FRDM-K64F

板信息

OpenSDA is a serial and debug adapter circuit that runs on a Kinetis K20 device built into many NXP development boards.

It allows users to download and debug programs onto the target K64F chip using only a USB cable.

Some FRDM-K64F boards may contain older OpenSDA firmware that is incompatible with Windows 10 due to changes made in how Windows handles Mass Storage Devices. This can potentially corrupt older versions of the OpenSDA firmware found on those FRDM-K64F boards.

The vast majority of FRDM-K64F boards currently being shipped from distributors will already have updated firmware that is not affected, but some older inventory may still contain the outdated firmware.

To ensure proper operation of the FRDM-K64F with Windows 10, disable Storage Services on your Windows 10 computer before plugging it in the first time and update the OpenSDA firmware if needed:

  1. Hold down the Windows logo key on your keyboard and press R to bring up the Windows Run prompt
  2. Type in services.msc and hold down Ctrl+Alt and hit Enter to launch the Services application in Administrator mode
  3. GS-FRDM-K64F-MODAL10-FIG1
  4. Once open, find the "Storage Services" item and double click on it to open it
  5. GS-FRDM-K64F-MODAL10-FIG2
  6. In the properties box that comes up, change the Startup type to “Disabled” and then click on "Stop". If both options are grayed out, make sure you started the Services program in Administrator mode
  7. GS-FRDM-K64F-MODAL10-FIG3
  8. Now take the FRDM-K64F board and hold down the reset button as you plug the board into your computer
  9. GS-FRDM-K64F-MODAL10-FIG4
  10. If the board enumerates as a drive named "MAINTENANCE" then your board has the latest firmware and no further action is needed. Skip to the last step (#10) to re-enable Storage Services
  11. If the board enumerates as a drive named something else, drag and drop this 0244_k20dx_bl_0x5000.bin file to that drive file to that drive. This will update the OpenSDA bootloader
  12. The board should now automatically re-enumerate as a drive named MAINTENANCE. Drag and drop this k20dx_frdmk64f_if_crc_legacy_0x5000.bin file to that MAINTENANCE drive to update the OpenSDA CMSIS-DAP application
  13. The board should automatically re-enumerate again and come up as a drive named FRDM-K64FD. The OpenSDA bootloader and OpenSDA application are now both up to date and will work correctly with Windows 10
  14. Re-enable the Storage Services by using the same steps as before to open up the Storage Services dialog box, change the startup type back to "Automatic (Delayed Start)" and click on "Start"

If you do not see any drive enumerate at all when plugging in the board in Step #6, the OpenSDA firmware may have been corrupted by Windows. The only way to fix this is to reprogram the K20 chip that the OpenSDA firmware runs on using an external debug tool. Instructions for this process can be found in this OpenSDA Community post.

1.2 FRDM-K64F开发平台快速入门

现在可以试用FRDM-K64F!您可以选择观看短片中的操作顺序或遵循下面列出的详细操作。


 Diagnostic Test Release 201909XX
 CPU: NXP S32G
 Board: S32G274A Board

 MC_CGM_0 Clock Mux 0 -> XBAR_CLK (Core Clock)
 CORE_DFS_1 Clock -> MC_CGM_0 Clock Mux 0
 CORE_VCO Clock -> CORE_DFS_1 Clock
 FXOSC -> CORE_VCO Clock
 FXOSC: 40000000Hz
 CORE_VCO Clock: 2000000000Hz
 CORE_DFS Clock: 1000000000Hz
 XBAR_CLK: 500000000Hz

1.3 连接USB线缆

FRDM-K64F-GS-board


 Diagnostic Test Release 201909XX
 CPU: NXP S32G
 Board: S32G274A Board

 MC_CGM_0 Clock Mux 0 -> XBAR_CLK (Core Clock)
 CORE_DFS_1 Clock -> MC_CGM_0 Clock Mux 0
 CORE_VCO Clock -> CORE_DFS_1 Clock
 FXOSC -> CORE_VCO Clock
 FXOSC: 40000000Hz
 CORE_VCO Clock: 2000000000Hz
 CORE_DFS Clock: 1000000000Hz
 XBAR_CLK: 500000000Hz

1.4 运行开箱即用的演示

FRDM-K64F-GS-board

FRDM-K64F预装了”气泡水平仪“演示,可充分利用板载加速度传感器。When the board is flat, the RGB LED is turned off and when the board is tilted, the red or blue LEDs gradually illuminate based on the degree of tilt on the X- and Y-axis.

FRDM-K64F-DEMO

Demo Not Working?

2. 获取软件

选择开发路径

2.1 安装软件

2.2 采用MCUXpresso SDK,快速开始设计

点击以下链接,下载FRDM-K64F的预配置SDK版本。Learn about SDK.

MCUXpresso SDK为免费附赠,包含所有硬件抽象和外设驱动软件的完整源代码,根据宽松的开源许可提供。

MCUXPRESSO-SDK-TN

获取MCUXpresso SDK

3. 构建、运行

在 FRDM-K64F 上构建并运行 SDK 演示

3.1 浏览MCUXpresso SDK示例代码

MCUXpresso SDK附带一系列示例应用代码。To see what's available, browse to the SDK boards folder of your SDK installation and select your board, the FRDM-K64F /boards/frdmk64f.

如需了解特定示例代码的详细信息,请参阅示例目录中的readme.txt文件。

3.2 构建、运行并调试MCUXpresso SDK示例

如果您对其中的一个或几个演示应用或驱动程序示例感兴趣,也许想了解如何自己完成构建和调试。MCUXpresso SDK快速入门指南按步骤介绍了如何轻松地为SDK支持的所有工具链配置、构建和调试演示。

采用以下指南,了解如何使用MCUXpresso IDE打开、构建和调试示例应用。

想使用其他工具链?