Skip to content

drivers: memc: Add MAX32 HyperBus driver #88606

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

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

Conversation

petejohanson-adi
Copy link
Contributor

Add memc driver for the MAX32 HyperBus peripheral, supporting HyperRAM and Xccela PSRAM memory devices.

So far, this is only implemented and tested on MAX32690, but other MCUs in the series will be tested and have the necessary board additions added once that's completed.

@petejohanson-adi
Copy link
Contributor Author

Realizing this is dependent on ADI HAL changes, marking this Draft while I sort those out.

Add memc driver for the MAX32 HyperBus peripheral, supporting HyperRAM
and Xccela PSRAM memory devices.

Signed-off-by: Pete Johanson <[email protected]>
Correctly use AF3 for HPB on P1.12 for MAX32690.

Signed-off-by: Pete Johanson <[email protected]>
Updated hal_adi for HPB peripheral changes needed for the HPB memc driver.

Signed-off-by: Pete Johanson <[email protected]>
@petejohanson-adi petejohanson-adi force-pushed the drivers/memc-max32-hyperbus branch from b38dc5e to ef63231 Compare April 22, 2025 19:13
Copy link

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_adi zephyrproject-rtos/hal_adi@67b8830 zephyrproject-rtos/hal_adi@7b6d04d (main) zephyrproject-rtos/[email protected]

All manifest checks OK

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

@petejohanson-adi petejohanson-adi marked this pull request as ready for review April 22, 2025 19:50
@petejohanson-adi
Copy link
Contributor Author

Ok, this now includes the necessary update to hal_adi to bring in fixes to the HPB peripheral driver, as well as one missing commit that fixes one pinctrl alternate function selection. On this branch, the memc test now works as expected on my MAX32690EVKit:

west twister --west-runner openocd --device-testing  --device-serial /dev/tty.usbserial-D30GP9Y0 --west-flash="--openocd=/usr/local/bin/openocd,--openocd-search=/usr/local/share/openocd/" -p max32690evkit/max32690/m4 -T tests/drivers/memc/ram/ --device-flash-timeout=30
Renaming output directory to /Users/petejohanson/source/upstream-zephyr-workspace/zephyr/twister-out.9
INFO    - Using Ninja..
INFO    - Zephyr version: v4.1.0-2784-gef63231d729b
INFO    - Using 'zephyr' toolchain.
INFO    - Building initial testsuite list...
INFO    - Writing JSON report /Users/petejohanson/source/upstream-zephyr-workspace/zephyr/twister-out/testplan.json
Device testing on:
| Platform                  | ID   | Serial device               |
|---------------------------|------|-----------------------------|
| max32690evkit/max32690/m4 |      | /dev/tty.usbserial-D30GP9Y0 |
INFO    - Adding tasks to the queue...
INFO    - Added initial list of jobs to queue
WARNING - TS_START: already STARTED 'test_ram':{'count': 1, 'repeat': 0}d:    5, failed:    0, error:    0
INFO    - Total complete:    3/   3  100%  built (not run):    0, filtered:    5, failed:    0, error:    0
INFO    - 6 test scenarios (6 configurations) selected, 5 configurations filtered (3 by static filter, 2 at runtime).
INFO    - 1 of 1 executed test configurations passed (100.00%), 0 built (not run), 0 failed, 0 errored, with no warnings in 42.09 seconds.
INFO    - 1 of 1 executed test cases passed (100.00%) on 1 out of total 1019 platforms (0.10%).
INFO    - 5 selected test cases not executed: 5 skipped.
INFO    - 1 test configurations executed on platforms, 0 test configurations were only built.
Hardware distribution summary:
| Board                     | ID   |   Counter |   Failures |
|---------------------------|------|-----------|------------|
| max32690evkit/max32690/m4 |      |         1 |          0 |
INFO    - Saving reports...
INFO    - Writing JSON report /Users/petejohanson/source/upstream-zephyr-workspace/zephyr/twister-out/twister.json
INFO    - Writing xunit report /Users/petejohanson/source/upstream-zephyr-workspace/zephyr/twister-out/twister.xml...
INFO    - Writing xunit report /Users/petejohanson/source/upstream-zephyr-workspace/zephyr/twister-out/twister_report.xml...
INFO    - Run completed

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.

2 participants