-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add MAX32657 #88651
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
Add MAX32657 #88651
Conversation
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
west.yml
Outdated
@@ -142,7 +144,8 @@ manifest: | |||
groups: | |||
- fs | |||
- name: hal_adi | |||
revision: 67b88309c327d207e87bb7af6e37c704cd9d5b9d | |||
remote: analogdevicesinc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
manifest update must come before things that need it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for review, moved as first commit.
Note this commit will be updated with zephyr-rtos/hal_adi link, in next days.
west.yml
Outdated
@@ -353,7 +353,7 @@ manifest: | |||
groups: | |||
- tee | |||
- name: trusted-firmware-m | |||
revision: 857f3697ece6f44a663f007de71205a7b34974ef | |||
revision: pull/128/head |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
likewise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved as second commit.
Supported Features | ||
================== | ||
|
||
Below interfaces are supported by Zephyr on MAX32657EVKIT. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use hw directive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced thanks.
Build the zephyr app for max32657evkit/max32657 board will generate secure firmware | ||
for zephyr. In this configuration 960KB of flash is used to store the code and 64KB | ||
is used for storage section. In this mode tf-m is off and secure mode flag is on | ||
``CONFIG_TRUSTED_EXECUTION_SECURE=y`` and ``CONFIG_BUILD_WITH_TFM=n`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use ```
:kconfig:option<name>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added kconfig:options, thanks.
|
||
.. code-block:: bash | ||
|
||
$ west build -b max32657evkit/max32657 samples/basic/blinky/ -p |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use west build directive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
| | | +-----------+ | +-------------------------------------------------------------------------------+ | | ||
| | | | 1-2 | | | VDD12 User Selection. | | | ||
| | | +-----------+ | +-------------------------------------------------------------------------------+ | | ||
| | | | 3-4 | | | VDD12 AT 1.2 VOLTS. | | | ||
| | | +-----------+ | +-------------------------------------------------------------------------------+ | | ||
| | | | 5-6 | | | VDD12 AT 1.5 VOLTS. | | | ||
| | | +-----------+ | +-------------------------------------------------------------------------------+ | | ||
| | | | Open | | | VDD12 AT 1.6 VOLTS. | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix documentation in original commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed as a separate commit to give credit to committer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
# Download MCUBoot version that linked with TF-M | ||
choice TFM_MCUBOOT_PATH | ||
default TFM_MCUBOOT_PATH_DOWNLOAD | ||
endchoice |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok removed, but isn't it cause a sync issue? TF-M linked with different point of MCUBoot project. If tf-m uses mcuboot that comes with zephyr it might cause some build or execution issue.
e4ebc73
to
c14268d
Compare
west.yml
Outdated
revision: 67b88309c327d207e87bb7af6e37c704cd9d5b9d | ||
revision: pull/21/head |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hal_adi PR was merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Node updated with SHA.
| storage | 0x10f0000[64k] | File system, persistent storage | | ||
+----------+------------------+---------------------------------+ | ||
|
||
Here are the instructions to build zephyr with a non-secure configuration, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are the instructions to build zephyr with a non-secure configuration, | |
Here are the instructions to build zephyr with a secure configuration, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied thanks.
toolchain: | ||
- zephyr | ||
- gnuarmemb | ||
- xtools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove xtools
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
| | | +-----------+ | +-------------------------------------------------------------------------------+ | | ||
| | | | 1-2 | | | VDD12 User Selection. | | | ||
| | | +-----------+ | +-------------------------------------------------------------------------------+ | | ||
| | | | 3-4 | | | VDD12 AT 1.2 VOLTS. | | | ||
| | | +-----------+ | +-------------------------------------------------------------------------------+ | | ||
| | | | 5-6 | | | VDD12 AT 1.5 VOLTS. | | | ||
| | | +-----------+ | +-------------------------------------------------------------------------------+ | | ||
| | | | Open | | | VDD12 AT 1.6 VOLTS. | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update hal_adi node to get MAX32657 support Signed-off-by: Sadik Ozer <[email protected]>
MAX32657 is Cortex-M33 based Analog Devices MCU. It supports ARM TrustZone security model. There will be two boards of this MCU Secure and Non-Secure This commit defines Secure version of peripherals. Basic feature of MAX32657 device: - Core is Cortex-M33 - 50MHz IPO clock - There are 54 interrupt vectors - 1MB flash & 256 SRAM - MAX32657 has: - 1 x UART - 1 x I2C/I3C - 1 x SPI - 6 x TIMER - 1 x RTC - 1 x WDT - 1 x TRNG Signed-off-by: Sadik Ozer <[email protected]>
1c0e866
to
651e566
Compare
@nordicjm please revisit. |
This commit add secure board of MAX32657. Only GPIO and UART drivers have been enabled. To build: - west build -b max32657evkit/max32657 -p Co-authored-by:: Furkan Akkiz <[email protected]> Signed-off-by: Sadik Ozer <[email protected]>
Enable JLink runner for MAX32657 Signed-off-by: Sadik Ozer <[email protected]>
Add MAX32657 TRNG device node Add TRNG in MAX32657 board file Signed-off-by: Sadik Ozer <[email protected]>
Add MAX32657 boards overlay files to gpio test be supported. Signed-off-by: Mert Ekren <[email protected]>
The MAX32657 microcontroller (MCU) is an advanced system-on-chip (SoC) featuring an Arm® Cortex®-M33 core that has TrustZone support.
This PR add basic MAX32657 support.
There are two board variant
1- Secure board: max32657evkit/max32657
2- Non-Secure board: max32657evkit/max32657/ns
This PR only enable Secure board.
MAX32657 basic features:
UART Test Output

On next NS board support will be added, PR: #88706