Hi Thorsten,
thanks for these explanation, it’s more clear for me now.
However, I still have the strange problem with the bootloader, even with the 2x20 display. Here is what I did :
-
flash the bootloader in STM32F4DISCOVERY (to be sure it’s completely initialized) and cycle power to restart completely
-
the LCD now shows the “default” state (one line of black squares on top)
-
when I type help in MIOS Studio, it says that current lcd_type is 0x00, current lcd_num_x is 2, current lcd_num_y is 1, lcd_width is 16 and lcd_height is 2. This is normal (default values when bootloader is flashed)
Now, I type the following commands to activate my 2x20 display attached to J15A
-
set lcd_num_x 1
-
set lcd_width 20
-
set lcd_height 2
-
store
First store command is rejected : bootloader says “Failed to store new settings”
Second store command is accepted. I see “New settings stored”, “Initialize LCD#1”
Since I see only one LCD being initialized (LCD is ignored) I assume the bootloader understood the parameters, telling there is only one display
But the LCD is not displaying the READY message…
Typing help now shows this:
-
lcd_type 0x00
-
lcd_num_x 1
-
lcd_num_y 1
-
lcd_width 20
-
lcd_height 2
which are the correct parameters for my 2x20 LCD (maybe I am wrong ?)
Now, if I type set lcd_type 1, the LCD shows “LCD #1.1 READ” (so the display is now initialized properly, but second line does not appear correctly)
Setting back to lcd_type 0 works too (but ignored if type was not 1 before)
But the display does not initialize properly until I force it to type 1 or 0 even if it is displayed as a type 0
Here are some pictures of my 2x20 display after this init sequence, with the broken “return” (beginning of line 2 is displayed at 17th character of first line, which makes me think that there is a problem handling the 20 characters width)
Benoit