This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

errors in 'clib_arm.c' while adding FAT file system component with FreeRTOS

Hi,

I am trying to setup FAT32 file system for SD card according to steps mentioned in (http://www.keil.com/pack/doc/mw/FileSystem/html/fs_create_app.html#fs_Device_Configuration).  Following are my RTE component settings.

When compiling the project, I am getting the following errors with clib_arm.c

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
compiling clib_arm.c...
C:\Users\admin\AppData\Local\Arm\Packs\ARM\CMSIS-FreeRTOS\10.3.0\CMSIS\RTOS2\FreeRTOS\Source\ARM\clib_arm.c(46): error: #77-D: this declaration has no storage class or type specifier
__WEAK
C:\Users\admin\AppData\Local\Arm\Packs\ARM\CMSIS-FreeRTOS\10.3.0\CMSIS\RTOS2\FreeRTOS\Source\ARM\clib_arm.c(47): error: #65: expected a ";"
void _platform_post_stackheap_init (void);
C:\Users\admin\AppData\Local\Arm\Packs\ARM\CMSIS-FreeRTOS\10.3.0\CMSIS\RTOS2\FreeRTOS\Source\ARM\clib_arm.c(133): error: #77-D: this declaration has no storage class or type specifier
__USED int _mutex_initialize(mutex *m);
C:\Users\admin\AppData\Local\Arm\Packs\ARM\CMSIS-FreeRTOS\10.3.0\CMSIS\RTOS2\FreeRTOS\Source\ARM\clib_arm.c(133): error: #65: expected a ";"
__USED int _mutex_initialize(mutex *m);
C:\Users\admin\AppData\Local\Arm\Packs\ARM\CMSIS-FreeRTOS\10.3.0\CMSIS\RTOS2\FreeRTOS\Source\ARM\clib_arm.c(134): error: #77-D: this declaration has no storage class or type specifier
__USED void _mutex_acquire (mutex *m);
C:\Users\admin\AppData\Local\Arm\Packs\ARM\CMSIS-FreeRTOS\10.3.0\CMSIS\RTOS2\FreeRTOS\Source\ARM\clib_arm.c(134): error: #65: expected a ";"
__USED void _mutex_acquire (mutex *m);
C:\Users\admin\AppData\Local\Arm\Packs\ARM\CMSIS-FreeRTOS\10.3.0\CMSIS\RTOS2\FreeRTOS\Source\ARM\clib_arm.c(135): error: #77-D: this declaration has no storage class or type specifier
__USED void _mutex_release (mutex *m);
C:\Users\admin\AppData\Local\Arm\Packs\ARM\CMSIS-FreeRTOS\10.3.0\CMSIS\RTOS2\FreeRTOS\Source\ARM\clib_arm.c(135): error: #65: expected a ";"
__USED void _mutex_release (mutex *m);
C:\Users\admin\AppData\Local\Arm\Packs\ARM\CMSIS-FreeRTOS\10.3.0\CMSIS\RTOS2\FreeRTOS\Source\ARM\clib_arm.c(136): error: #77-D: this declaration has no storage class or type specifier
__USED void _mutex_free (mutex *m);
C:\Users\admin\AppData\Local\Arm\Packs\ARM\CMSIS-FreeRTOS\10.3.0\CMSIS\RTOS2\FreeRTOS\Source\ARM\clib_arm.c(136): error: #65: expected a ";"
__USED void _mutex_free (mutex *m);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

0