A FRDM-K64F board cannot be detected
Show older comments
### 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
less than a minute ago
0 votes
The code generation step completed successfully. The failure occurs during deployment, when MATLAB tries to detect the FRDM-K64F board. Try these checks:
- Connect the board using the OpenSDA/debug USB port.
- Make sure the USB cable supports data, not just charging.
- Check Windows Device Manager for the FRDM-K64F/OpenSDA device. If it appears as unknown or has a warning icon, reinstall the board drivers.
- Run the hardware setup again for the FRDM-K64F support package and confirm that MATLAB can detect the board.
- 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.
Categories
Find more on C2000 Microcontroller Blockset in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!