A FRDM-K64F board cannot be detected

### Starting build procedure for model: untitled ### Generating code and artifacts to 'Model specific' folder structure
Code Generation
1
Elapsed: 10 sec
### Generating code into build folder: C:\Users\zx\Documents\MATLAB\untitled_ert_rtw ### Invoking Target Language Compiler on untitled.rtw ### Using System Target File: D:\MATLABinstall\rtw\c\ert\ert.tlc ### Loading TLC function libraries ### Initial pass through model to cache user defined code . ### Caching model source code ### Writing header file untitled_types.h ### Writing header file untitled.h ### Writing source file untitled.c ### Writing header file rtwtypes.h ### Writing header file untitled_private.h . ### Writing source file untitled_data.c ### Writing header file rtmodel.h ### Writing source file ert_main.c ### TLC code generation complete. ### Evaluating PostCodeGenCommand specified in the model
### Build procedure for model: 'untitled' aborted due to an error.
A FRDM-K64F board cannot be detected. Please check that the board is connected. If the board is connected, please follow the steps as described in the section Install Drivers for NXP FRDM-K64F Board.

Answers (1)

Nivedita
Nivedita less than a minute ago
Hello nicai,
The code generation step completed successfully. The failure occurs during deployment, when MATLAB tries to detect the FRDM-K64F board. Try these checks:
  1. Connect the board using the OpenSDA/debug USB port.
  2. Make sure the USB cable supports data, not just charging.
  3. Check Windows Device Manager for the FRDM-K64F/OpenSDA device. If it appears as unknown or has a warning icon, reinstall the board drivers.
  4. Run the hardware setup again for the FRDM-K64F support package and confirm that MATLAB can detect the board.
  5. Unplug and reconnect the board, then rebuild/deploy the model.
Since the log shows TLC code generation complete, this is most likely a board connection or driver setup issue, not a model code generation issue.

Asked:

on 7 May 2019

Answered:

about 20 hours ago

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!