AnsweredAssumed Answered

2 FILE fopen on same file

Question asked by lucky06200 on Jun 14, 2013
Latest reply on Jul 3, 2013 by Pavel Chromy

Hi,

 

I want to open 2 FILE (fopen) on same path:

 

  • A task will fopen FILE for writing in append mode (producer)
  • A second task will open same path to read written data from (consumer)

 

This seems not to work. Consumer always reads EOF in spite of producer writes in the file.

If producer closes the file, then it seems to work. But, this is not realtime.

 

I have MQX 4.0 (not 4.01), on Kinetis K60 custom board.

MFS device is SD card.

 

Would this application be possible ?

Some idea ?

Outcomes