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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-12 12:10 AM
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
Solved! Go to Solution.
- Labels:
-
STM32MP15 Lines
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-15 2:49 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-15 2:49 AM
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.
