File Exchange

image thumbnail

Simulink Coder Support Package for NXP FRDM-K64F Board

Generate and deploy code for NXP FRDM-K64F Board.

34 Downloads

Updated 11 Sep 2019

Simulink® Coder™ Support Package for NXP™ FRDM-K64F Board enables you to create and run Simulink® models on an NXP FRDM-K64F board. The support package includes a library of Simulink blocks for configuring and accessing NXP FRDM-K64F peripherals and communication interfaces.

This support package is functional for R2016a and beyond.

If you have download or installation issues, please contact Technical Support: www.mathworks.com/contact_ts

Comments and Ratings (16)

This error pops ''There was a problem downloading the third-party software. To resolve this issue, contact Technical Support''

If you have issues during setup try to:
- uninstall the support package
- manually delete the folder in C:\ProgramData\MATLAB\SupportPackages\R2018a\toolbox\target\supportpackages
- go to folder C:\ProgramData\MATLAB and manually add the write permissions (I choose Everyone just to be sure)
- finally try ti install again the support package

Sorry for the double post, but I was able get it to install by placing the completed download at the following location:
C:\Users\<username>\Downloads\MathWorks\SupportPackages\R2017b\archives\3p\cmsis.instrset_common_1500942969

Abhishek GS

@jak - Could you try logging in as administrator and also run MATLAB in admin mode.

jak katara

having problems setting up the firmware for the k64 using SEGGER, i got the two validations however it gives an error on the last step to confirm. This is the Error:

Unable to create Kinetis SDK platform library for FRDM-K64F board. You may not have write permissions to the folder : C:\MATLAB\R2017a\toolbox\target\SUPPOR~1\FREEDO~1\src\KSDK_A~1\bm

The following error was thrown during library creation:
arm-none-eabi-gcc.exe: fatal error: no input files
compilation terminated.
gmake: *** [fsl_os_abstraction_bm.o] Error 1
.

Please help asap.

The 17b Version support package is out.
Highlights :
- SD Card logging
- TCP/ IP Send and Receive Blocks
- New Hardware Setup Screens

Abhishek GS

@bjk - You could use the below generic command to find the BuildConfigurationforFreescaleFRDMK64FDeployer.xml file.

>>cd(fullfile((matlabshared.supportpkg.getSupportPackageRoot),'toolbox','target','supportpackages','freedomk64f','registry','attributes'))

Other than the method suggested above, you could also develop a K66F target using the steps mentioned in the below link.

http://www.mathworks.com/help/supportpkg/armcortexm/target-sdk.html

Abhishek GS

@bjk - You can execute the below command on MATLAB Command Prompt to find theBuildConfigurationforFreescaleFRDMK64FDeployer.xml file.

>>cd(fullfile(('C:\ProgramData\MATLAB\SupportPackages\R2017a_2'),'toolbox','target','supportpackages','freedomk64f','registry','attributes'));

You can edit the target specific things such as AssemblyFlags, CompileFlags, LinkFlags, Defines, IncludePaths, SourceFiles etc, to suit the support package to K66F board.

However, please note that you need to have a valid Embedded Coder license to be able to edit the above files. Also, editing the above files, to suit a different target, are not tested and hence you may have to solve any issues that may come up after the above changes.

Abhishek GS

bjk

Thank you for your answer. Do you have a tip for me, which files I need to modify?

Abhishek GS

The K66F board cannot be used directly with the 'Simulink Coder Support Package for NXP FRDM-K64F Board', as the support package is specifically made for FRDM-K64F board. However, if you have Embedded Coder Toolbox, you can modify a few files in the current support package (like updating the linker /compiler flags), to get it working on K66F board.

bjk

Can I use the FRDM-K66F board with this support package?

@ Marco - no it is not supported in Linux. Complete platform support is shown here:
https://www.mathworks.com/hardware-support/system-requirements.html

Please feel free to let us know any details on the Linux use case - and we will consider for future.

does it work on linux?

MATLAB Release Compatibility
Created with R2016a
Compatible with R2016a to R2019b
Platform Compatibility
Windows macOS Linux