Add Cube for STM32MP2 Cortex-A35#298
Open
juickar wants to merge 5 commits intozephyrproject-rtos:mainfrom
Open
Add Cube for STM32MP2 Cortex-A35#298juickar wants to merge 5 commits intozephyrproject-rtos:mainfrom
juickar wants to merge 5 commits intozephyrproject-rtos:mainfrom
Conversation
erwango
reviewed
Jul 22, 2025
Member
|
@juickar Please rebase |
Provide the stm32cube header files for the stm32mp2xx cortex A35 Signed-off-by: Julien Racki <julien.racki@st.com>
erwango
reviewed
Jul 22, 2025
Member
erwango
left a comment
There was a problem hiding this comment.
Looks ok, but a PR using it is required before approval.
arnopo
reviewed
Jul 30, 2025
| #ifdef DEBUG_TIMER2 | ||
| RELOAD_VAL2 = TimerPeriod + VL1_GetCurrentTimerValue(); | ||
| VL1_SetCurrentTimerValue(RELOAD_VAL2); | ||
| //RELOAD_VAL2 = TimerPeriod + VL1_GetCurrentTimerValue(); |
Contributor
There was a problem hiding this comment.
could you use cmsis_V6 instead? seems that it defines the functions for the armv7 also
else it would be more flexible to put it under #ifdef
| zephyr_library_sources(soc/system_stm32mp2xx_a35.c) | ||
| else() | ||
| zephyr_library_sources(soc/system_stm32mp2xx_m33.c) | ||
| endif() |
Contributor
There was a problem hiding this comment.
perhapse use
if(CONFIG_CPU_CORTEX_A35)
zephyr_library_sources(soc/system_stm32mp2xx_a35.c)
elseif(CONFIG_CPU_CORTEX_M33)
zephyr_library_sources(soc/system_stm32mp2xx_m33.c)
else()
message(FATAL_ERROR "Unsupported CPU configuration: Please define CONFIG_CPU_CORTEX_A35 or CONFIG_CPU_CORTEX_M33")
endif()```
Removed VL1_* calls as it is not yet supported in the Zephyr CMSIS version for cortex A Signed-off-by: Julien Racki <julien.racki@st.com>
disable the HAL_A35_WRAPPER_ENABLED include to avoid build warnings Signed-off-by: Julien Racki <julien.racki@st.com>
Add Cortex A35 sources in the CMakeLists.txt to enable support of the hal and ll files for the stm32mp2x Cortex A35. Signed-off-by: Julien Racki <julien.racki@st.com>
Add the compile definition for the Cortex A35 Signed-off-by: Julien Racki <julien.racki@st.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for the Cortex-A35 of the STM32MP2x boards