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.
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 :?: :?:
sns22:
Is it possible to write to a file on a PC directly or one has to use UART/I2C :?: :?:
You cannot write to a PC file directly. Without knowing your requirements (e.g. how much data, how quickly it is being generated, how quickly you need to access it on the PC after it is generated etc. etc.) it is difficult to make a recommendation.
A couple of possibilities: You could connect an SDCard socket to your microcontroller via the SPI bus and write to a DOS-file system on that. You would then take the SDCard and read it on a PC. However, it is probably easier to transmit the data to a PC via the UART and write a program on the PC to copy it to a file.