2024-03-20 05:24 AM
I need to read data from SD card and then send them via uart in STM32f7 discovery kit. so I did the initial setting such as open the text file using fatfs and then inside a while loop I read the data. but I need to execute that when I press fetch button in my UI, but suddenly all fall apart, I don't know exact reason is it because of interrupt of the SDMMC or is there a way to do it safely.
2024-03-20 05:29 AM
You need to debug your application. Put breakpoints where you suspect an issue. Start by debugging your application from Model.cpp file.
2024-03-20 12:43 PM
can we just normally code without considering interrupt and other things, is RTOS handle those? can you give me some example stript to just load some data from SD card using a button click in UI, I would be much helpful for me, If you have time. 😊
2024-03-20 01:04 PM
without even coding anything i just setup the SDMMC and FATFS and then with my working code that's for UI, I tried just uploading it. screen goes crazy when doing that, I not even code any thing just updated ioc and regenerated the code
2024-03-20 02:58 PM
after sd card mode
what it should be
cube ide build fine , but in toughgfx its not working
2024-03-25 07:43 AM - edited 2024-03-25 07:45 AM
Hello @sasmithadilshan ,
The makefiles from CubeIDE and Tgfx Designer are different, try to modify <YOUR_PROJECT>/gcc/MakeFile or put your files in <YOUR_PROJECT>/TouchGFX/target.
Also refer to Using Non-Memory Mapped Flash for Storing Images | TouchGFX Documentation for reading image in a SD card.
Like @SofLit suggested, debugging may help you.
I hope it helps,
Regards,
2024-04-26 05:24 AM
Hello @sasmithadilshan ,
Have you tried to modify the other makefile as suggested by @LouisB? Did you manage to solve your issue?