![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1502464/image.png)
My custom toolchain works with MATLAB Coder but is not found in Simulink Coder
7 views (last 30 days)
Show older comments
I created a custom toolchain to build 32-bit DLLs on 64-bit windows by following the example/instructions here:
The toolchain has been verified using MATLAB Coder but when I follow the instructions in the above reference the toolchain does not apear in the dropdown shown below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1488757/image.png)
In the tutorial the following is given to troubleshoot this issue but has not resolved the issue for me. Are there any other known fixes for this? Thank you very much in advance for any help.
"Sometimes after setting the hardware the toolchain still does not appear under the dropdown. To resolve this make sure that the hardware settings have been applied, and close the configuration parameters. Reopen the configuration parameters and you should see the toolchain appear as an option. Additionally saving the model after applying the hardware change can allow the new toolchain to be found".
0 Comments
Accepted Answer
Ayush
on 5 Oct 2023
The build toolchain list is populated by MATLAB's known toolchains, and then filtered according to your configuration. As the toolchain is shown in "coder.make.getToolchains", this means MATLAB knows about it, so it must have been filtered out.
This filtering is controlled by the test hardware device vendor and device type. These settings are found under the "Hardware Implementation" tab of the Configuration Editor, shown below in red. If the highlighted checkbox is checked (this is the default), then these settings are driven by the production hardware configuration, shown in blue.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1502464/image.png)
The settings in these dropdown menus must match the "TargetHWDeviceType" property set in the "rtwTargetInfo.m" file you made for your toolchain, otherwise it will not be shown; please adjust these to match. Note that the Configuration Editor must be closed and reopened to reload the toolchains list, and changes to your "rtwTargetInfo.m" might not take effect until MATLAB is restarted.
Hope this helps!
Thank you
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!