How to solve the Command "matlabshared.toolchain.gnu_gcc_arm.setup();" threw an error: The path 'bin' does not exist?
Show older comments
I'm trying to create a PIL block of a simple subsystem "->Gain->Gain->" with a GNU Tools for ARM Embedded Processors toolchain selected. It always fall into this error. How do I solve it?
Target Hardware: STM32F407VG
MATLAB 2017a
Subsystem Build 4 1 Clear
08:28 AM Elapsed: 55 sec
### Starting build procedure for model: Subsystem
Code Generation 1
Elapsed: 43 sec
### Generating code into build folder: C:\Users\Crystal\Documents\MATLAB\Sketch Converter\Subsystem_ert_rtw
### Invoking Target Language Compiler on Subsystem.rtw
### Using System Target File: C:\Program Files\MATLAB\R2017a\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 Subsystem.h
### Writing header file Subsystem_types.h
### Writing header file rtwtypes.h
### Writing header file rtGetInf.h
.
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
### Writing source file Subsystem.c
.
### Writing header file Subsystem_private.h
### Writing source file Subsystem_data.c
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: GNU Tools for ARM Embedded Processors v5.2 | gmake (64-bit Windows)
### Creating 'C:\Users\Crystal\Documents\MATLAB\Sketch Converter\Subsystem_ert_rtw\Subsystem.mk' ...
### Building 'Subsystem': "C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f Subsystem.mk buildobj
### Build procedure for model: 'Subsystem' aborted due to an error.
Error Report: Command "matlabshared.toolchain.gnu_gcc_arm.setup();" threw an error: The path 'bin' does not exist.
Caused by:
Validation error(s):
Command "matlabshared.toolchain.gnu_gcc_arm.setup();" threw an error: The path 'bin' does not exist.
Component:Simulink | Category:Build error
??? Subsystem build failed
Answers (2)
Maksim Chichikalov
on 5 Dec 2017
0 votes
You should add system variable 'MW_GNU_ARM_TOOLS_PATH' with path pointed to toolchain folder.
2 Comments
yahya abdelkadouss sahri
on 4 Apr 2018
PEDRO HENRIQUE Ulhoa
on 24 Nov 2020
Have you solved this problem? same problem here
Heaven chen
on 19 Mar 2018
0 votes
Categories
Find more on STMicroelectronics Discovery Boards in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!