Skip to main content
Rsrma.1
Associate III
June 25, 2021
Question

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?

0693W00000Bc0FVQAZ.png

This topic has been closed for replies.

2 replies

Nikita91
Lead II
June 25, 2021

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 ?)

Tesla DeLorean
Guru
June 25, 2021

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..