Hi, dears:
I use S32DS to open an file, but when compile it shows:"undefined reference to `fopen'".
My GCC is: S32K144 RTM SDK for GCC.
C project. No OS. And use S32DS "project ->build all" to build.
What should I do to fix this?
Thanks!
My code:
#include <stdio.h>
......
fp = fopen("BAP3_PATCH_SC58579_ROM_7_2.bin","rb");
Hi Jeff,
the fopen function is not implemented. S32K144 is small device and normally doesn't use file system. If you implemented file system - you also need implement fopen and other file I/O functions.
Anyway - what are trying to do with fopen in your project?
Jiri
Hi Jiri:
Thanks, then does it mean it is difficult or lots of work needed to be done? If so, I can use other method to do this work.
In my project, there is another chip: TDF8534, we need to update TDF8534 with patch file named:"*.bin", this file will be different when a new version release. So if I can use file system, there will be less risk to replace this file only, more risk to copy the data using other editor.
Hi Jeff,
I don't know your design - in case that you have connected some SD card or any other memory/drive to S32K144, implementing file system is good idea. If there is no external memory/drive - easier way is transfer .bin file from PC by UART or by any other communication channel.
Jiri
Hi Jiri:
Thanks!