2021-11-08 01:48 AM
The datasheet (DS10685 Rev 6) in Table 16 says that the VLCD pins are:
PB0/LCD_VLCD3
PB2/LCD_VLCD2
PE11/LCD_VLCD1
PE12/LCD_VLCD3
PB12/LCD_VLCD1
In the reference manual RM0367 Rev 7 (for STM32L0x3)
Section 10.2.2 (SYSCFG_CFGR2), for bits LCD_CAPA:
Bit 1 controls the connection of VLCDrail1 on PB2/LCD_VLCD1
0: VLCDrail2 not connected to PB2/LCD_VLCD1
1: VLCDrail2 connected to PB2/LCD_VLCD1
Bit 2 controls the connection of VLCDrail1 on PB12
Bit 3 controls the connection of VLCDrail3 on PB0
Bit 4 controls the connection of VLCDrail1 on PE11
Bit 5 controls the connection of VLCDrail3 on PE12
So, the reference manual seems to be wrong about PB2.
The VLCD names are wrong in the schematics for STM32L073Z-EVAL too (document "MB1168.pdf" revision C-01): PB2 is marked as "VLCD1", and PE11 is marked as "VLCD2" (whereas PE12 is correctly marked as "VCLD3").
The actual voltages on the pins agree with the naming in the datasheet (PE11/LCD_VLCD1 < PB2/LCD_VLCD2 < PE12/LCD_VLCD3)
The options available in CubeMX fully agree with the datasheet (not the reference manual).
However, the code generation is partially wrong: the VLCD pins are properly configured as alternate-function GPIOs, but only some of them are also mentioned in the SYSCFG_CFGR2_LCDCAPA bits.
See the attached CubeMX project: in function MX_LCD_Init(), the following line is produced
__HAL_SYSCFG_VLCD_CAPA_CONFIG(SYSCFG_VLCD_PB0_EXT_CAPA_ON);
instead of
__HAL_SYSCFG_VLCD_CAPA_CONFIG(SYSCFG_VLCD_PB0_EXT_CAPA_ON|SYSCFG_VLCD_PB2_EXT_CAPA_ON|SYSCFG_VLCD_PE11_EXT_CAPA_ON);
Solved! Go to Solution.
2021-11-15 03:38 AM
Hi @Community member ,
I confirm that the datasheet is the correct reference.
So, the following updates are required:
I'll highlight these required updates to relevant teams and I'll keep you informed.
-Amel
PS: Internal tracking number is not accessible or usable by customers
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2021-11-15 03:38 AM
Hi @Community member ,
I confirm that the datasheet is the correct reference.
So, the following updates are required:
I'll highlight these required updates to relevant teams and I'll keep you informed.
-Amel
PS: Internal tracking number is not accessible or usable by customers
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2021-11-15 04:10 AM
Thank you.
Given the mistake in the eval schematic, the silkscreen is wrong too. I guess this is impractical to fix, though.
2022-06-29 03:08 AM
Hello @Community member
This issue is fixed in STM32CubeMX latest release.
V6.6.0 is now available under this Link.
Thanks for your contribution.
Sara.
2023-06-22 12:35 AM
Hello @SZano ,
The reference manual typo is fixed in RM0367 Rev 8.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.