[S32K144] Binary file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[S32K144] Binary file

792 Views
KK2
Contributor II

Hi,

I am using S32K144.
I want to read a binary file, but when I try to read the file with the fopen function, it returns NULL.
Is it possible to read binary files with S32K144? If so, could you please give me an example?

Regards,

KK2

0 Kudos
1 Reply

775 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

it would be necessary to implement file system. Otherwise the fopen cannot be used. We do not have such example.

Not sure what is your goal but common way is to link a bin file to your project as described here:

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Link-a-binary-file-s-into-the-ap...

And then you can access the bin file directly without fopen function and without file system.

Regards,

Lukas

0 Kudos