Skip to main content
Explorer
August 12, 2022
Solved

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?

  • August 12, 2022
  • 1 reply
  • 1306 views

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 topic has been closed for replies.
    Best answer by Yamir.1

    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.

    1 reply

    Yamir.1AuthorAnswer
    Explorer
    August 15, 2022

    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.