Is it possible to open and read .YcbCr extension file in binary mode using f_open and f_read with FatFs support?
I am trying binary open and read with STM32F7 MCU
Don't see why not, does it need LFN Support?
absolutely you can do it. In fact, f_read and f_write are completely binary functions and they don't care that much what is inside. You will just have to know exactly how to interpret your data when you read it.
FatFS always opens file in binary mode. But if file has string readable data, then FatFS will try to "parse" binary data from file according to string settings in FatFS configuration. Of course, you have to use string functions to achieve this task, such as f_puts, f_gets and others. Please check more on FatFS official website.
>>I am trying binary open and read with STM32F7 MCU
Trying and failing? Please be more specific
The default build may expect 8.3 format file names, and not find Long File Names (LFN) if spelled out in long form. Enable LFN support in FatFs if you need it.
f_open was failing with .YCbCr extension.The file name was "image.YCbCr"
So I changed the file name to "image.bin".Now I am able to do f_open and read the file
Yes it can be read, playing with LFN, have a look on ffconf.h, there are some configurations there.
Retrieving data ...