Skip to main content
ibrahim
Associate III
September 15, 2016
Question

STM32F429i_Discovery with LCD load logo or image

  • September 15, 2016
  • 29 replies
  • 5504 views
Posted on September 15, 2016 at 10:10

Hello

everyone, I hope you are well.

I have a small

problem I would like to display a logo of my my university on board

STM32F429i_Discovery

but I sometimes displaying the logo ST.

I use LCD

image converter

but it does not work well to create my table to integrate it into the code.

I do not know

if ST used another converter. You can point me please.

I use BSP_LCD_DrawBitmap(...);

Thank you very much.

#stm32f429i #lcd #ili9341
This topic has been closed for replies.

29 replies

riuson
Visitor II
September 16, 2016
Posted on September 16, 2016 at 12:18

Save this code to file


#ifndef __STLOGO_H

#define __STLOGO_H


#if defined ( __ICCARM__ ) 

#pragma data_alignment=4

#endif


$(start_block_images_table)

_ALIG_BEGIN 
const
unsigned char $(doc_name_ws)[$(out_blocks_count)] _ALIGN_END {

$(out_image_data)

};

$(end_block_images_table)

and select it as template for images (Options -> Conversion -> Templates). I can show the rest of the settings, but I need to know the data format required by your program.
ibrahim
ibrahimAuthor
Associate III
September 16, 2016
Posted on September 16, 2016 at 14:18

Hello

, here are the

steps

for

how I

try to do the same as

the example of

STM

.

1st step: I generate my

image

in table .c

with

BmpCVt.exe so I'll have my table soon after they are on 8bit 0xFF

and

soon

both

16bit

0xFFFF.

2nd step:

I open

my

file

stlogo.h

I brought

to STM

sample file

in STM32F4xx_DFP/2.9.0

/Projects

/

STM32F429I

-Discovery

/Examples /BSP/Inc

With

their

table

it works fine I displays the ST logo. but if I want to put my table and I create with BmpCVt.exe clears their table and I put my table. it gives me nothing and the display will give me any results

.

0690X00000605bzQAA.png

0690X00000605buQAA.png0690X00000605Z1QAI.png0690X00000605WcQAI.png0690X00000605WbQAI.png0690X00000605TSQAY.png

riuson
Visitor II
September 16, 2016
Posted on September 16, 2016 at 17:02

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6f2&d=%2Fa%2F0X0000000bse%2F.L.GX94Dv9nXxNJPDefRxPDjTxFv80TN9J_N.9rnHmE&asPdf=false
ibrahim
ibrahimAuthor
Associate III
September 16, 2016
Posted on September 16, 2016 at 17:17

Thank you for your help,

and I want to understand the program how you generate the table with that tool and its options thank you again

riuson
Visitor II
September 16, 2016
Posted on September 16, 2016 at 17:30

enedis.ibrahim

This is experiment with BMP internal data format.

If the experiment

will succeed

, I made a template for LIC.

Corrected code, format R5G6B5, in attachments.

Try it and

let me know

the results.

________________

Attachments :

image.h : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzmQ&d=%2Fa%2F0X0000000bPW%2F0phSQrsQdkka9wJWKHVVotH.lXB7yXHvPJf6GN0VurU&asPdf=false
ibrahim
ibrahimAuthor
Associate III
September 16, 2016
Posted on September 16, 2016 at 17:50

it was successful but it gave me an inverted logo with color green and orange

riuson
Visitor II
September 16, 2016
Posted on September 16, 2016 at 18:01

And try this attachment with inverted R/B colors.

________________

Attachments :

image.h : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzhg&d=%2Fa%2F0X0000000bPX%2Fq4JvYLn_aKuOky8355fmncF9B9R2zpg.cWEsr3iogq4&asPdf=false
ibrahim
ibrahimAuthor
Associate III
September 16, 2016
Posted on September 16, 2016 at 18:08

How can I change color details and how do I generate a table as you did for another

logo,

you can show me

the

way

.

Thank you

riuson
Visitor II
September 16, 2016
Posted on September 16, 2016 at 18:47

See attachments here.

________________

Attachments :

2016-09-16_21-40-46.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzmL&d=%2Fa%2F0X0000000bPT%2FKLhTGSfhO9C4byRGEqlo.731H.0sPJGb0iiPAEeuhKE&asPdf=false

2016-09-16_21-40-56.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzmB&d=%2Fa%2F0X0000000bPR%2FOEcUUMQCWmF5Xs8og1G60NwX9P8lbBRTYzsZR0Brhy0&asPdf=false

2016-09-16_21-41-05.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzm6&d=%2Fa%2F0X0000000bPS%2FZwic3xzlZW8rzYWl1k9nmgahS80ue9UmXQ3_RHCilWU&asPdf=false

2016-09-16_21-41-13.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzKJ&d=%2Fa%2F0X0000000bPQ%2FktMRV4MlTkMMiyctw23deMknk7i9gBzaR2F7TdSSOjU&asPdf=false

2016-09-16_21-41-19.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzlw&d=%2Fa%2F0X0000000bPN%2FwhARxhyJ54f1wHKl57kwcOoozQ3mcxZ7wSMQ.YgnTgg&asPdf=false

enedis2.tmpl : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzlr&d=%2Fa%2F0X0000000bPO%2FIuv.zS0hCiyCQ7_YVU5Cj2DVbkLNPHs3TLyCkH44BWs&asPdf=false

stm32disco-preset-r5g6b5.xml : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzlh&d=%2Fa%2F0X0000000bPP%2FzuaiB2CaEbFtv3WG15PiOlqdLE3OPleZiFaF374lRbY&asPdf=false
ibrahim
ibrahimAuthor
Associate III
September 17, 2016
Posted on September 18, 2016 at 01:25

Thank you so much for your help Vladimir, but i have always the same problem with the color and the inverted logo, I followed your picturs on the same thing but i can not see a good color logo.