OM40006 Alphabet Font (library) / WiFi-Networking

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OM40006 Alphabet Font (library) / WiFi-Networking

Jump to solution
1,097 Views
Dilsan
Contributor I

Hi all,

i wanted to print some Text on the LCD Screen of the OM40006 IoT Module Baseboard. I was hoping there might be a library with all letters already, instead creating a new library for all letters in an array (like the example the cursor from lcdc_cursor). Are there any available ?

Another Question is, what does this assertion from the driver "fsl_lcdc.c" really mean: 

+"assert((config->upperPanelAddr & 0x07U) == 0U);"

+"assert((config->lowerPanelAddr & 0x07U) == 0U);" 

Is it bad if i let those commented? Because i have commented this so that i can use the qca_demo (VCOM port) to create a UDP connection. Right now my project is a cross between qca_demo and lcdc_cursor. Right now it is working.


My Equipment:
OM40006 IoT Module BaseBoard
LPC54018 IoT
MCUXpresso IDE

Best Regards
Dilsan M.

0 Kudos
Reply
1 Solution
1,047 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Pls refer to the LCD frame buffer register definition, the low three address bits must be zero.

Hope it can help you

BR

XiangJun Rong

 

xiangjun_rong_0-1619142327624.png

 

View solution in original post

0 Kudos
Reply
3 Replies
1,079 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Dilsan,

Regarding your question to print text on the screen, pls use emWin tools to generate the image for the text. This is the emWin tools link:

https://www.nxp.com/design/software/embedded-software/nxp-emwin-libraries:EMWIN-GRAPHICS-LIBRARY

For the following two lines in fsl_lcdc.c, they are only valid in compiling stage, I think they can be removed, but you have to make sure that the low three bits of variable config->upperPanelAddr are zero.

Hope it can help you

BR

Xiangjun Rong

 

+"assert((config->upperPanelAddr & 0x07U) == 0U);"

+"assert((config->lowerPanelAddr & 0x07U) == 0U);"

 

0 Kudos
Reply
1,076 Views
Dilsan
Contributor I

Thank you first of all for the help, i realised there might be something more about the upperPannelAddress, if i use the defined value:

static uint8_t s_frameBufs[IMG_HEIGHT][IMG_WIDTH / APP_PIXEL_PER_BYTE];
[My calculated value of s_frameBufs is 536876580 [DEC] and 100000000000000001011000100100 [BIN], but here aren't the low three bits zero]

You can see the result in the first picture. It looks like some pixel dont print right, but that only because of the handy photo. Here the screen is printing everything fine.

When I change the value of upperPannelAddress to (uint32_t) 0 or just 0. The screen hasn't filled the screen properly. (See the second picture).

Does it have a big impact if i let the value not Zero?

Best Regards,
Dilsan M.

 

0 Kudos
Reply
1,048 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Pls refer to the LCD frame buffer register definition, the low three address bits must be zero.

Hope it can help you

BR

XiangJun Rong

 

xiangjun_rong_0-1619142327624.png

 

0 Kudos
Reply