cancel
Showing results for 
Search instead for 
Did you mean: 

File handling functions (fread, fwrite, getc, fseek, etc.) do not work in the STM32MP15x Cortex A7 core. Why is that and is there a solution for it?

Yamir.1
Associate II

Hello,

When I tried using fseek and getc functions for my project the MP1 failed to execute their code. The execution stops at lines that contain __IO_acquire_lock(fp) and __IO_need_lock(fp) macros and then terminates in the fseek and getc functions respectively. I also tried other file handling functions such as fread and fwrite and they also fail. Is there anyway to solve this issue?

thanks for any answers

This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions
Yamir.1
Associate II

I was able to solve the issue by using the arm-linux-gnueabihf-gcc and scp commands to compile the code and send it to the MP1 rather than using STM32CubeIDE to do those things.

View solution in original post

1 REPLY 1
Yamir.1
Associate II

I was able to solve the issue by using the arm-linux-gnueabihf-gcc and scp commands to compile the code and send it to the MP1 rather than using STM32CubeIDE to do those things.