- Fri Apr 10, 2015 2:27 am
#181080
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.
Is it possible to write to a file on a PC directly or one has to use UART/I2C
![Question :?:](./images/smilies/icon_question.png)
Thanks
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: Select all
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.#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);
Is it possible to write to a file on a PC directly or one has to use UART/I2C
![Question :?:](./images/smilies/icon_question.png)
![Question :?:](./images/smilies/icon_question.png)
Thanks