STemWin problem: EDIT text bug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-09-25 12:42 PM
I've got a bug with the text of the Edit box. It show's strange chars or drawings, maybe another language font. I'm using the emwin with the SSD2119 driver. All other fixed texts and labels are correct (see the attached images).
Does some one have an idea why this happens?I've used the same code with ILI9341 and worked perfectly.
Using:
STemWin532_CM4_Keil
STM32F4-DISCOVERY
SSD2119 LCD DRIVER
Not using any RTOS.
Thank you in advance.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-09-25 4:30 PM
Sorry for Boring you again Angelis, and thank you for the answer by the way,
I've changed the value of the register R11, of the SSD2119, from 0x685C to 0x6874 and then it draw correctly.
Looking to the photos I noticed that the numbers appears that has been drowed messy, Changing the scan registers, ID[0:1] and AM, I found that this register only affects the Edit box object (strange, isn it!)
Thanks,
________________ Attachments : edit box fixed.jpg : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyPG&d=%2Fa%2F0X0000000b7C%2Fp0eXde0GRONg0cA72OUoMQJ_X1sF9pyiARs9385fjtc&asPdf=falseR11 ENTRY MODE.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyAn&d=%2Fa%2F0X0000000b7A%2FUbAaToD0PFU6B4FDd.mAPM0pNiyJyOWZ4ol8_8z09EQ&asPdf=false- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-09-25 1:07 PM
Hello!
Is the amount of memory allocated inside CUI_conf.c file, sufficient?
#define GUI_NUMBYTES xxxx
Regards.
vf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-09-25 3:14 PM
Yes, it is.
#define GUI_NUMBYTES 1024 * 80
and there is only one screen.
________________ Attachments : 2017-09-25 17.18.30.jpg : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyHi&d=%2Fa%2F0X0000000b7D%2FjBt3LnLhmy2ETWdZNj_B7QMNBVNcS0IzJCfIEUG6y.U&asPdf=false- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-09-25 4:30 PM
Sorry for Boring you again Angelis, and thank you for the answer by the way,
I've changed the value of the register R11, of the SSD2119, from 0x685C to 0x6874 and then it draw correctly.
Looking to the photos I noticed that the numbers appears that has been drowed messy, Changing the scan registers, ID[0:1] and AM, I found that this register only affects the Edit box object (strange, isn it!)
Thanks,
________________ Attachments : edit box fixed.jpg : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyPG&d=%2Fa%2F0X0000000b7C%2Fp0eXde0GRONg0cA72OUoMQJ_X1sF9pyiARs9385fjtc&asPdf=falseR11 ENTRY MODE.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyAn&d=%2Fa%2F0X0000000b7A%2FUbAaToD0PFU6B4FDd.mAPM0pNiyJyOWZ4ol8_8z09EQ&asPdf=false