Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPM fix for esp32s3 targets #80887

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

marekmatej
Copy link

@marekmatej marekmatej commented Nov 5, 2024

This PR fixes how the APPCPU is being built in IPM samples. C array encapsulation is removed and instead normal build procedure is used. Fixing the sysbuild builds as well.

Fixes #80890

@zephyrbot
Copy link
Collaborator

zephyrbot commented Nov 5, 2024

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
hal_espressif zephyrproject-rtos/hal_espressif@23c17a8 zephyrproject-rtos/hal_espressif@174547e (zephyr) zephyrproject-rtos/[email protected]

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@zephyrbot zephyrbot added manifest manifest-hal_espressif DNM This PR should not be merged (Do Not Merge) labels Nov 5, 2024
Copy link
Collaborator

@uLipe uLipe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great to see this being sent.

I just left some initial commits.

samples/drivers/ipm/ipm_esp32/remote/src/main.c Outdated Show resolved Hide resolved
samples/drivers/ipm/ipm_esp32/src/main.c Show resolved Hide resolved
soc/espressif/esp32s3/Kconfig Outdated Show resolved Hide resolved
soc/espressif/esp32s3/Kconfig.amp Show resolved Hide resolved
soc/espressif/esp32s3/Kconfig.amp Outdated Show resolved Hide resolved
soc/espressif/esp32s3/esp32s3-mp.c Outdated Show resolved Hide resolved
soc/espressif/esp32s3/esp32s3-mp.c Outdated Show resolved Hide resolved
soc/espressif/esp32s3/esp32s3-mp.c Show resolved Hide resolved
@marekmatej marekmatej force-pushed the bugfix/amp_s3_sample_basic branch 5 times, most recently from 9771fe2 to 6433c35 Compare November 5, 2024 12:27
@marekmatej marekmatej requested a review from uLipe November 5, 2024 12:27
@zephyrbot zephyrbot removed the DNM This PR should not be merged (Do Not Merge) label Nov 5, 2024
@marekmatej marekmatej force-pushed the bugfix/amp_s3_sample_basic branch 4 times, most recently from f6d7b17 to c8c9a15 Compare November 5, 2024 22:05
Copy link
Collaborator

@uLipe uLipe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're almost there, I just left some extra questions

soc/espressif/esp32s3/esp32s3-mp.c Show resolved Hide resolved
soc/espressif/esp32s3/esp32s3-mp.c Show resolved Hide resolved
soc/espressif/esp32s3/esp32s3-mp.c Show resolved Hide resolved
soc/espressif/esp32s3/soc.c Outdated Show resolved Hide resolved
@marekmatej marekmatej force-pushed the bugfix/amp_s3_sample_basic branch 4 times, most recently from b50d570 to c17cb8f Compare November 6, 2024 13:31
@marekmatej marekmatej changed the title IPM fix for esp32s3_devkitm target IPM fix for esp32s3 targets Nov 6, 2024
uLipe
uLipe previously approved these changes Nov 6, 2024
soc/espressif/esp32s3/esp32s3-mp.c Show resolved Hide resolved
@marekmatej marekmatej added this to the v4.0.0 milestone Nov 6, 2024
Marek Matej added 6 commits November 6, 2024 19:52
Fetch latest features to support fixes.

Signed-off-by: Marek Matej <[email protected]>
Align the shared memories with the memory.h layout.
Reorder nodes to show memory related nodes together.

Signed-off-by: Marek Matej <[email protected]>
Fix missing flash and code partition.
Add missing dts entries and use common partition tables to all related
non-Espressif boards, previously ommited.
Add uart1 node in pinctrl for APPCPU.

Signed-off-by: Marek Matej <[email protected]>
Avoid APPCPU to interact with a clock settings.
Fix warning when LOG_LEVEL_DBG.

Signed-off-by: Marek Matej <[email protected]>
Updates and fixes to support APPCPU.
- fix ld scripts
- fix and update memory layout
- fix build issues
- fix sysbuild

Signed-off-by: Marek Matej <[email protected]>
Updates and fixes to support IPM sample on ESP32:

- fix IPM sample code for APPCPU and PROCPU
- align with memory layout, add flash awarenes
- shell commands to stop/start APPCPU
- reorganize overlays

Signed-off-by: Marek Matej <[email protected]>
@uLipe
Copy link
Collaborator

uLipe commented Nov 6, 2024

@mmahadevan108 any chance to put this into the 4.0?

Thank you :)

@mmahadevan108
Copy link
Collaborator

pinging @nordicjm for a review from HWV2 side as these samples were broken since the switch to HWV2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IPM sample for esp32s3_devkitm remote build error
7 participants