Skip to main content
Rohit.1
Associate III
December 22, 2020
Question

SD card not working after adding custom keyboard on multiple screens

  • December 22, 2020
  • 6 replies
  • 2214 views

I am using SD card with SDIO interface in 1 bit mode.

Previously it was working properly. But after adding custom keyboard on multiple screens SD card suddenly stopped working (Getting FR_NO_FILESYSTEM error while debugging).

When I removed custom keyboard from some screens then it again stated working properly.

But I want to use custom keyboard on all screens (there are total 15 screens)

I have increased heap and stack to 0x4000. Testing this on STM32F746G-DISCO Board.

This topic has been closed for replies.

6 replies

Alexandre RENOUX
Visitor II
December 22, 2020

Hello Rohit.1,

I'm not an expert on SD card implementation so my feedback will not focus on that part.

I'm actually wondering why adding a keyboard widget on multiple screens would impact the behavior of the SD card.

Are the keyboard widget and the SD card related in your application to a certain extent ? If yes, how ?

Could you also perform tests to narrow the possibilities and try to have something consistent. For instance, understanding from how many added keyboards the app starts crashing ? Is it the same if you put them in the same screen ?

Try to find some consistency in the issue.

/Alexandre

Rohit.1
Rohit.1Author
Associate III
December 22, 2020

Thanks for the quick reply.

Currently SD card and custom keyboard are not related at all.

I am just creating new file, writing test data and reading it at the beginning of default task.

If I add keyboard on more than two screens then SD card stops working. And if I remove keyboard from any one of these three screens then again it starts working. This is really strange.

I have tried same thing with different screens (Added keyboard on different three screens). But the result is same.

Rohit.1
Rohit.1Author
Associate III
December 23, 2020

Please check my code.

Is this related to the heap and stack memory uses. How to solve this problem.

Rohit.1
Rohit.1Author
Associate III
December 24, 2020

Can anyone please look into this code

Tesla DeLorean
Guru
December 24, 2020

Sorry got other priorities, and getting no assistance and support.

If using DMA make sure buffering remains within the 64KB of DTCM RAM, otherwise you'll have to more aggressively manage cache coherency and alignment.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Rohit.1
Rohit.1Author
Associate III
December 25, 2020

@Community member​ 

Can you please tell me how can I check this. I am using STM32CubeIDE.

Have you checked my attached code.

Rohit.1
Rohit.1Author
Associate III
December 30, 2020

@Community member​ 

Waiting for the reply. I got stuck here. SD card is very important element in out product.

Please check my test code.

Tesla DeLorean
Guru
December 30, 2020

Sorry I don't work for any of the parties involved here and I'm not a CubeIDE/MX guy

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Rohit.1
Rohit.1Author
Associate III
January 18, 2021

I am using DMA and .bss part in the RAM is above 64KB. Code is already optimized and now there is no chance to further reduce the uses below 64KB.

Is there any way to solve this problem.

Rohit.1
Rohit.1Author
Associate III
February 6, 2021

Please check the attached screenshot of memory details of my project.

Variables keyArray and callbackAreas, which are related to the keyboard are appeared so many times.

This is consuming lot of .bss segment in the RAM.

Even if I add keyboard on each screen, these variables should not get added separately for each screen.

0693W000007EDhJQAW.bmp