Showing results for 
Search instead for 
Did you mean: 

I'm using stm32f407 discovery with stm32 cube IDE. I want to parse data from CSV file and send it through UART. After adding CSV file under src folder of my project and then when I tried fopen I'm getting NULL in return. How can i resolve it?

Associate III


Lead II

The source folder is for source files: the files used by the compiler to generate code or data. Your CVS file is not a source file recognized by the compiler.

You must add a "disk" manager to your application (look at FATFS) and a memory support (SD card ?)

How's the code running on the F407-DISCO going to fopen() a file on the host PC? Do you have ANY file system or STDIO implementation on the target board?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..