Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

LPC2468 writing a file with fopen

Status
Not open for further replies.

sns22

Member level 2
Joined
Jan 15, 2011
Messages
46
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Spain
Activity points
1,708
Hi all,

I am working with LPC2468 board from embeddedartists using the IAR Embedded Workbench 7.3

I want to write my results read from a double variable into a txt file created on the PC. I read on the forums and already set the library settings to FULL to read the Dlib_Config files.
Code:
     #include <nxp/iolpc2468.h>
     #include <stdio.h>
      #include <string.h>
      
      FILE* file;
      file = fopen("H:\\test.txt","rw+");
      fprintf(file,"%A\n",max_temperature_DegC);
      
      fclose(file);
I used this standard code. Although I have no compiler warning/errors. But when I debug; the code it gets stuck in the undefined handler (abort handler) as I can see it in the disassembly. The output file is not created and has no output. I am not using UART or any I2C to write to the file.

Is it possible to write to a file on a PC directly or one has to use UART/I2C :?::?:

Thanks
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top