Discussion Forum

FILE *fin error

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Shun Keung Cheung
Posted
26-Jun-2007 10:51 GMT
Toolset
ARM
New! FILE *fin error

Any one know the solution, please reply.

After declaration,

FILE *fin;

and implementation,

fin = fopen ("test.txt","r");

The error message results
when compiling:

Build target 'ADuC7020'
assembling Startup.s...
compiling ADC.c...
ADC.C(30):error C67:'FILE': undefined identifier
ADC.C(31):error C67:'fin': undefined identifier

I already include the header file 'rtl.h'
in my program.

Read-Only
Author
Per Westermark
Posted
26-Jun-2007 11:24 GMT
Toolset
ARM
New! RE: FILE *fin error

Do you have a library with a flash file system implementation?

File functions are not part of the standard compiler packages for embedded development.

Read-Only
Author
Shun Keung Cheung
Posted
26-Jun-2007 14:31 GMT
Toolset
ARM
New! RE: FILE *fin error

Thanks much your reply.

All I have is the evaluation version Keil uVision3 from CD-ROM.

I understand your point having read on this page,

http://www.keil.com/rl-arm/

at the bottom 'Note Box',

'The RealView MDK-ARM includes
the RTX Real-Time Kernel but not
the RTX Real-Time Kernel Source Code,
Flash File System, TCP/IP Protocol Suite,
or USB/CAN Drivers.'

Is this meaning that those programs
in folder C:\Keil\ARM\RV30\RTL\Kernel\Examples\ cannot be run ?

But there are some source codes in path
C:\Keil\ARM\RV30\RTL\Kernel\Examples\SRC\ ?

Hope you reply

Read-Only
Author
Per Westermark
Posted
26-Jun-2007 15:55 GMT
Toolset
ARM
New! RE: FILE *fin error

Examples that only makes use of the RTX real-time kernel should be possible to build. It's only the kernel source that isn't available.

You will not be able to build projects making use of flash file systems, TCP/IP or CAN. Any pre-built applications with these features should be possible to run.

Read-Only
Author
Shun Keung Cheung
Posted
27-Jun-2007 02:24 GMT
Toolset
ARM
New! RE: FILE *fin error

Correct.Thanks much.

Next Thread | Thread List | Previous Thread Start a Thread | Settings