Keil Logo

SWPACK: Error #35 while compiling FS_Config.c


Information in this knowledgebase article applies to:

  • MDK-Middleware version 6.3.0 or later

QUESTION

I updated the Keil Middleware pack to version 6.3.0 (or later) and tried to build my application. I received the following error message from the compiler:

compiling FS_Config.c...
C:\Keil_v5\ARM\PACK\Keil\MDK-Middleware\6.3.0\FileSystem\Include\fs_config.h(26):
  error:  #35: #error directive: "Standard file I/O library retarget requires
  ::Compiler:I/O:File software component from the 'Keil.ARM_Compiler' Pack!"
  #error "Standard file I/O library retarget requires ::Compiler:I/O:File software
  component from the 'Keil.ARM_Compiler' Pack!"
RTE\File_System\FS_Config.c: 0 warnings, 1 error

How can I solve this problem?

ANSWER

Since Keil Middleware pack version 6.3.0, some middleware components (like flash file system) require the Keil Compiler pack to retarget the System IO functions. You can download and install the Keil::ARM_Compiler pack like every other software pack in the Pack Installer window. Be sure to press the green Check for Updates button in the Pack Installer to see all new packs.

In the µVision window Manage Run-Time Environment, you can then select the I/O channels for File, STDERR, STDIN, STDOUT, and TTY. Please see pages 45 and 46 of the Getting Started manual with the link below.

MORE INFORMATION

SEE ALSO

Last Reviewed: Monday, March 12, 2018


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.