Skip to main content
V.H
Senior
February 14, 2022
Solved

Font table copy to sdram for used and display error.

  • February 14, 2022
  • 2 replies
  • 1587 views

I saved font table in norflash and copy to sdram for used.

I want to show text “abcdefghijklmn�? but it actually shows is “a#c#e#g#i#j#m#�?, and the strange thing is that all the odd chars are correct and the even chars have this strange behavior.

0693W00000JPeSGQA1.png 

The text show normal when font table is used in norflash by memory-map mode.

What's the problem?

This topic has been closed for replies.
Best answer by V.H

After debug for some time, I found It is fault of my hardware board configuration. The font table access is not 4 byte aligned. It's ok after I enabled sdram's cache function.

2 replies

Osman SOYKURT
Technical Moderator
February 16, 2022

Hello V.H,

For your typography, do you use 4bpp? Is the problem also there if you use 8bpp ?

Have you set the ByteAlign bit (previously known as A4) ? You can refer to this link if you're unsure.

I can suggest you to try a similar configuration as our TouchGFX Designer demo : "STM32G071 Unmapped font demo" for your project.

0693W00000JQ1rYQAT.png 

/Osman

Osman SOYKURTST Software Developer | TouchGFX
V.H
V.HAuthorBest answer
Senior
February 17, 2022

After debug for some time, I found It is fault of my hardware board configuration. The font table access is not 4 byte aligned. It's ok after I enabled sdram's cache function.

Osman SOYKURT
Technical Moderator
February 17, 2022

Glad to hear that your problem is solved :)

I invite you to close this post if you have no more question about this issue.

/Osman

Osman SOYKURTST Software Developer | TouchGFX