Registered User No edit summary |
Registered User mNo edit summary |
||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ApplicableFor | |||
|MPUs list=STM32MP15x | |||
|MPUs checklist=STM32MP13x, STM32MP15x, STM32MP25x | |||
}} | |||
<noinclude></noinclude> | |||
==Article purpose== | ==Article purpose== | ||
The purpose of this article is to: | The purpose of this article is to: | ||
* briefly introduce the CEC peripheral and its main features | * briefly introduce the CEC peripheral and its main features, | ||
* indicate the | * indicate the peripheral instances assignment at boot time and their assignment at runtime (including whether instances can be allocated to secure contexts), | ||
* list the software frameworks and drivers managing the peripheral, | |||
* explain | * explain how to configure the peripheral. | ||
==Peripheral overview== | ==Peripheral overview== | ||
The CEC (consumer electronics control) or HDMI-CEC is | The '''CEC''' (consumer electronics control) or HDMI-CEC peripheral is used to receive/send messages from/to devices, such as TV or tuner, through a HDMI cable. | ||
Refer to the [[STM32MP15 resources#Reference manuals|STM32MP15 reference manuals]] for the complete list of features, and to the software frameworks and drivers, introduced below, to see which features are implemented. | |||
Refer to the [[STM32MP15 resources#Reference manuals|STM32MP15 reference manuals]] for the complete list of features, and to the software | |||
Refer to the STM32 CEC presentation <ref>[http://www.st.com/content/ccc/resource/training/technical/product_training/group0/d7/44/1d/13/6d/78/42/17/STM32F7_Peripheral_HDMI_CEC/files/STM32F7_Peripheral_HDMI_CEC.pdf/jcr:content/translations/en.STM32F7_Peripheral_HDMI_CEC.pdf STM32 CEC presentation]</ref> for an overview of the CEC hardware block capabilities. | Refer to the STM32 CEC presentation <ref>[http://www.st.com/content/ccc/resource/training/technical/product_training/group0/d7/44/1d/13/6d/78/42/17/STM32F7_Peripheral_HDMI_CEC/files/STM32F7_Peripheral_HDMI_CEC.pdf/jcr:content/translations/en.STM32F7_Peripheral_HDMI_CEC.pdf STM32 CEC presentation]</ref> for an overview of the CEC hardware block capabilities. | ||
== | ==Peripheral usage== | ||
This chapter is applicable in the scope of the '''OpenSTLinux BSP''' running on the Arm<sup>®</sup> Cortex<sup>®</sup>-A processor(s), and the '''STM32CubeMPU Package''' running on the Arm<sup>®</sup> Cortex<sup>®</sup>-M processor. | |||
===Boot time assignment=== | |||
===Boot time=== | The CEC peripheral is not used at boot time. | ||
The CEC is not used at boot time. | |||
===Runtime=== | ===Runtime assignment=== | ||
==== | ====On {{MicroprocessorDevice | device=15}}==== | ||
{{#lst:STM32MP1_internal_peripherals_assignment_table_template|stm32mp15_runtime}} | |||
<section begin=stm32mp15_runtime /> | |||
| rowspan="1" | Visual | |||
| rowspan="1" | [[CEC internal peripheral|CEC]] | |||
| CEC | |||
| | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| Assignment (single choice) | |||
|- | |||
<section end=stm32mp15_runtime /> | |||
|} | |||
==Software frameworks and drivers== | |||
Below are listed the software frameworks and drivers managing the CEC peripheral for the embedded software components listed in the above tables. | |||
* '''Linux<sup>®</sup>''': [[CEC_overview|CEC framework]] | |||
* '''STM32Cube''': [[STM32CubeMP15 Package architecture|STM32Cube CEC HAL driver]] and {{CodeSource | STM32CubeMP1 | Drivers/STM32MP1xx_HAL_Driver/Inc/stm32mp1xx_hal_cec.h | header file of CEC HAL module}} | |||
== | ==How to assign and configure the peripheral== | ||
The | The peripheral assignment can be done via the [[STM32CubeMX]] graphical tool (and manually completed if needed).<br /> | ||
This tool also helps to configure the peripheral: | |||
* partial device trees (pin control and clock tree) generation for the OpenSTLinux software components, | |||
* HAL initialization code generation for the STM32CubeMPU Package. | |||
The configuration is applied by the firmware running in the context in which the peripheral is assigned. | |||
See also additional information in the [[CEC device tree configuration]] article for Linux<sup>®</sup>. | |||
</ | |||
==How to go further== | ==How to go further== | ||
Line 68: | Line 64: | ||
<noinclude> | <noinclude> | ||
[[Category:Visual peripherals]] | |||
{{ArticleBasedOnModel | Internal peripheral article model}} | {{ArticleBasedOnModel | Internal peripheral article model}} | ||
{{PublicationRequestId | 9173 | 2018-10-10 | AnneJ}} | {{PublicationRequestId | 9173 | 2018-10-10 | AnneJ}} | ||
</noinclude> | </noinclude> |
Latest revision as of 15:08, 4 January 2024
1. Article purpose
The purpose of this article is to:
- briefly introduce the CEC peripheral and its main features,
- indicate the peripheral instances assignment at boot time and their assignment at runtime (including whether instances can be allocated to secure contexts),
- list the software frameworks and drivers managing the peripheral,
- explain how to configure the peripheral.
2. Peripheral overview
The CEC (consumer electronics control) or HDMI-CEC peripheral is used to receive/send messages from/to devices, such as TV or tuner, through a HDMI cable.
Refer to the STM32MP15 reference manuals for the complete list of features, and to the software frameworks and drivers, introduced below, to see which features are implemented.
Refer to the STM32 CEC presentation [1] for an overview of the CEC hardware block capabilities.
3. Peripheral usage
This chapter is applicable in the scope of the OpenSTLinux BSP running on the Arm® Cortex®-A processor(s), and the STM32CubeMPU Package running on the Arm® Cortex®-M processor.
3.1. Boot time assignment
The CEC peripheral is not used at boot time.
3.2. Runtime assignment
3.2.1. On STM32MP15x lines 
Click on to expand or collapse the legend...
Domain | Peripheral | Runtime allocation | Comment ![]() | |||
---|---|---|---|---|---|---|
Instance | Cortex-A7 secure (OP-TEE) |
Cortex-A7 non-secure (Linux) |
Cortex-M4 (STM32Cube) | |||
Visual | CEC | CEC | ☐ | ☐ | Assignment (single choice) |
4. Software frameworks and drivers
Below are listed the software frameworks and drivers managing the CEC peripheral for the embedded software components listed in the above tables.
- Linux®: CEC framework
- STM32Cube: STM32Cube CEC HAL driver and header file of CEC HAL module
5. How to assign and configure the peripheral
The peripheral assignment can be done via the STM32CubeMX graphical tool (and manually completed if needed).
This tool also helps to configure the peripheral:
- partial device trees (pin control and clock tree) generation for the OpenSTLinux software components,
- HAL initialization code generation for the STM32CubeMPU Package.
The configuration is applied by the firmware running in the context in which the peripheral is assigned.
See also additional information in the CEC device tree configuration article for Linux®.
6. How to go further
Refer to the STM32 CEC application note (AN4066) [2] for a detailed description of the CEC peripheral and applicable use-cases.
Even if this application note is related to STM32 microcontrollers, it also applies to STM32 MPUs.
7. References