Error setting up target for Odroid XU4
3 views (last 30 days)
Show older comments
I am following the video examples on custome target development for ARM Cortex A (https://www.mathworks.com/videos/custom-target-development-for-arm-cortex-a-part-2-register-target-121172.html). I follow the steps provided in the first two video tutorials but for the Odroid XU4. However, when I go to test the deployment through the, the deploy test fails. When checking the test results log, matlab provides the errors seen below. Why am I getting these errors?
ERROR
Error occurred in matlabshared.targetsdk.verify.Deployer/checkBuildDownload and it did not run to completion.
---------
Error ID:
---------
'codertarget:build:DownloadCallbackError'
--------------
Error Details:
--------------
Error using codertarget.tools.BuildHook
The following error occurred during deployment to your hardware board:
Could not find the MATLAB preferences for the hardware "Odroid XU4 v1". Create the preferences
group "Hardware_Connectivity_Installer_Odroid_XU4_v1" with the preferences "DefaultIpAddress",
"DefaultUserName", "DefaultPasswordPref" and "DefaultBuildDirPref, and set their values to match
your hardware.
Error in codertarget.tools.BuildHook/after_make
after_make(hookH);
Error in
buildHooksAfterMakeFcn = @()coder.coverage.BuildHook...
Error in coder.internal.compileStage
compileResult = coder.internal.compileStage...
[buildResult, mainObjFolder] = buildProcedure...
[buildResult, mainObjFolder] = obj.make_rtw(varargin);
[buildResult, mainObjFolder] = h.make_rtw(buildArgs, varargin{:});
Error in build_target
Error in build_target
Error in build_standalone_rtw_target
Error in slbuild_private
Error in slbuild_private
[varargout{1:nargout}]=feval(varargin{:});
sl('slbuild_private', mdl, target, varargin{2:end});
slbuild(sys, 'StandaloneCoderTarget', ...
Error in matlabshared.targetsdk.verify.Deployer/checkBuildDownload
CODE
tgt = createTarget('Odroid XU4 Target v1', 'ARM Cortex-A', 'C:/myOdroidtarget');
%% Specify Hardware Board
% hw2 = createHardware('Odroid XU4 v1');
hw2.DeviceID = 'ARM Cortex-A15';
map(tgt, hw2, 'Odroid XU4 v1');
io = addNewEthernetInterface(hw2, 'My Ethernet Interface');
io.IPAddress = '172.16.0.86';
%% Deploy
dep = addNewDeployer(tgt, 'New Deployer');
toolchain = dep.addNewToolchain('Linaro Toolchain v4.8');
buildConfiguration = toolchain.addNewBuildConfiguration('Build Configuration');
buildConfiguration.Defines = 'ARM_PROJECT';
buildConfiguration.IncludePaths = '$(ARM_CORTEX_A_ROOT_DIR)/include';
dep.Tokens{1} = struct('Name', 'ARM_CORTEX_A_ROOT_DIR', 'Value', 'codertarget.arm_cortex_a.internal.getSpPkgRootDir');
loader = dep.addNewLoader('My Loader');
loader.LoadCommand = 'matlab:codertarget.arm_cortex_a.internal.loadAndRun';
map(tgt, hw2, dep);
show(tgt);
saveTarget(tgt)
testTarget(tgt, 'deployer')
3 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!