Why do I receive an error when building my HC12 target code using Embedded Target for Motorola HC12 and CodeWarrior 3.1?

1 次查看(过去 30 天)
When I build my target application using Embedded Target for Motorola HC12, I receive the following CodeWarrior error message in a pop-up window:
Failed to load C:\PROGRA~1\MATLAB71\work\HC12_P~1\rtwlib\rtwlib.lib
My StaticLibraryDirectory path name contains spaces in it.

采纳的回答

MathWorks Support Team
This is a limitation of the CodeWarrior cross-compiler when building a target application and using a directory path name that contains spaces in the "StaticLibraryDirectory" preference.
To work around this issue, rename the full path directory name so that it does not contain spaces. If the issue persists, make sure that each sub-directory name inside this full path is less than 8 characters. You can access the "StaticLibraryDirectory" preference, by typing the following MATLAB command:
hc12editprefs
Then click on the "+" sign next to the "ProjectStationery" node. It will expand, and you will be able to see the "StaticLibraryDirectory" preference.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Search Path 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by