You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/02/12 08:26:05 UTC

[GitHub] [incubator-nuttx] michi-jung opened a new pull request #5470: STM32U5 Architecture Support

michi-jung opened a new pull request #5470:
URL: https://github.com/apache/incubator-nuttx/pull/5470


   ## Summary
   
   This is my current state of work on getting NuttX to run on STM32U5. I am especially interested in the TrustZone support of ARMV8-M. The 'nsh' configuration of the b-u585i-iot02a board runs fine as the non-secure companion to STMicroelectronics' port of TrustedFirmware-M.
   
   ## Impact
   
   All code is in new subdirectories and should not have any impact on current configurations.
   
   ## Testing
   
   I am running a basic 'nsh' configuration fine as a companion to TrustedFirmware-M on B-U585I-IOT02A.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #5470: STM32U5 Architecture Support

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #5470:
URL: https://github.com/apache/incubator-nuttx/pull/5470


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #5470: STM32U5 Architecture Support

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on pull request #5470:
URL: https://github.com/apache/incubator-nuttx/pull/5470#issuecomment-1037924718


   Ok, Do you have plan to run NuttX on the secure side too?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #5470: STM32U5 Architecture Support

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on pull request #5470:
URL: https://github.com/apache/incubator-nuttx/pull/5470#issuecomment-1037475506






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #5470: STM32U5 Architecture Support

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on pull request #5470:
URL: https://github.com/apache/incubator-nuttx/pull/5470#issuecomment-1037475506


   @michi-jung I am interesting that have you run NuttX on the secure side?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] michi-jung edited a comment on pull request #5470: STM32U5 Architecture Support

Posted by GitBox <gi...@apache.org>.
michi-jung edited a comment on pull request #5470:
URL: https://github.com/apache/incubator-nuttx/pull/5470#issuecomment-1037873160


   @xiaoxiang781216 Thanks for the approval.  I have TrustedFirmware-M running on the secure side and NuttX on the non-secure side.  If you are interested in more details you could have a look at STMicroelectronic's UM2851 document.  Basically, I replaced the `TFM_Appli_NonSecure.bin` image with the `Nuttx.bin` image.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #5470: STM32U5 Architecture Support

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #5470:
URL: https://github.com/apache/incubator-nuttx/pull/5470


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] michi-jung edited a comment on pull request #5470: STM32U5 Architecture Support

Posted by GitBox <gi...@apache.org>.
michi-jung edited a comment on pull request #5470:
URL: https://github.com/apache/incubator-nuttx/pull/5470#issuecomment-1037873160


   @xiaoxiang781216 Thanks for the approval.  I have TrustedFirmware-M running on the secure side and NuttX on the non-secure side.  If you are interested in more details you could have a look at STMicroelectronic's UM2851 document.  Basically, I replaced the 'TFM_Appli_NonSecure.bin' image with the 'Nuttx.bin' image.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] michi-jung commented on a change in pull request #5470: STM32U5 Architecture Support

Posted by GitBox <gi...@apache.org>.
michi-jung commented on a change in pull request #5470:
URL: https://github.com/apache/incubator-nuttx/pull/5470#discussion_r805140534



##########
File path: arch/arm/src/stm32u5/Make.defs
##########
@@ -0,0 +1,106 @@
+##############################################################################
+# arch/arm/src/stm32u5/Make.defs
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.  The
+# ASF licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the
+# License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations
+# under the License.
+#
+##############################################################################
+
+# The start-up, "head", file.  Only common vectors are support so there
+# isn't one.
+
+HEAD_ASRC =
+
+# Common ARM and Cortex-M4 files (copied from stm32/Make.defs)
+
+CMN_UASRCS =
+CMN_UCSRCS =
+
+CMN_ASRCS  = arm_saveusercontext.S arm_fullcontextrestore.S
+CMN_ASRCS += arm_testset.S arm_fetchadd.S vfork.S
+
+CMN_CSRCS  = arm_assert.c arm_blocktask.c arm_copyfullstate.c arm_createstack.c
+CMN_CSRCS += arm_doirq.c arm_exit.c arm_hardfault.c arm_initialize.c
+CMN_CSRCS += arm_initialstate.c arm_interruptcontext.c arm_mdelay.c arm_memfault.c
+CMN_CSRCS += arm_modifyreg8.c arm_modifyreg16.c arm_modifyreg32.c
+CMN_CSRCS += arm_releasepending.c arm_releasestack.c arm_reprioritizertr.c
+CMN_CSRCS += arm_schedulesigaction.c arm_sigdeliver.c arm_stackframe.c
+CMN_CSRCS += arm_svcall.c arm_systemreset.c arm_trigger_irq.c arm_udelay.c
+CMN_CSRCS += arm_unblocktask.c arm_usestack.c arm_vfork.c arm_switchcontext.c
+CMN_CSRCS += arm_puts.c

Review comment:
       @no1wudi Thanks for the comment.  I have added a commit that does this.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] michi-jung commented on pull request #5470: STM32U5 Architecture Support

Posted by GitBox <gi...@apache.org>.
michi-jung commented on pull request #5470:
URL: https://github.com/apache/incubator-nuttx/pull/5470#issuecomment-1037873160


   @xiaoxiang781216 Thanks for the approval.  I have TrustedFirmware-M running on the secure side and NuttX on the non-secure side.  If you are interested in more details you could have a look at STMicroelectronic's UM2851 document.  Basically, I replaces the 'TFM_Appli_NonSecure.bin' image with the 'Nuttx.bin' image.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] michi-jung commented on pull request #5470: STM32U5 Architecture Support

Posted by GitBox <gi...@apache.org>.
michi-jung commented on pull request #5470:
URL: https://github.com/apache/incubator-nuttx/pull/5470#issuecomment-1037970517


   No, I do not plan to run NuttX on the secure side.  The ARM Platform Security Architecture recommends to run the RTOS in the Non-secure state and run some less complex software (with a smaller attack surface) providing the trusted services in the secure state.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] no1wudi commented on a change in pull request #5470: STM32U5 Architecture Support

Posted by GitBox <gi...@apache.org>.
no1wudi commented on a change in pull request #5470:
URL: https://github.com/apache/incubator-nuttx/pull/5470#discussion_r805138110



##########
File path: arch/arm/src/stm32u5/Make.defs
##########
@@ -0,0 +1,106 @@
+##############################################################################
+# arch/arm/src/stm32u5/Make.defs
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.  The
+# ASF licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the
+# License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations
+# under the License.
+#
+##############################################################################
+
+# The start-up, "head", file.  Only common vectors are support so there
+# isn't one.
+
+HEAD_ASRC =
+
+# Common ARM and Cortex-M4 files (copied from stm32/Make.defs)
+
+CMN_UASRCS =
+CMN_UCSRCS =
+
+CMN_ASRCS  = arm_saveusercontext.S arm_fullcontextrestore.S
+CMN_ASRCS += arm_testset.S arm_fetchadd.S vfork.S
+
+CMN_CSRCS  = arm_assert.c arm_blocktask.c arm_copyfullstate.c arm_createstack.c
+CMN_CSRCS += arm_doirq.c arm_exit.c arm_hardfault.c arm_initialize.c
+CMN_CSRCS += arm_initialstate.c arm_interruptcontext.c arm_mdelay.c arm_memfault.c
+CMN_CSRCS += arm_modifyreg8.c arm_modifyreg16.c arm_modifyreg32.c
+CMN_CSRCS += arm_releasepending.c arm_releasestack.c arm_reprioritizertr.c
+CMN_CSRCS += arm_schedulesigaction.c arm_sigdeliver.c arm_stackframe.c
+CMN_CSRCS += arm_svcall.c arm_systemreset.c arm_trigger_irq.c arm_udelay.c
+CMN_CSRCS += arm_unblocktask.c arm_usestack.c arm_vfork.c arm_switchcontext.c
+CMN_CSRCS += arm_puts.c

Review comment:
       Please add `arm_tcbinfo.c` to this file.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] michi-jung edited a comment on pull request #5470: STM32U5 Architecture Support

Posted by GitBox <gi...@apache.org>.
michi-jung edited a comment on pull request #5470:
URL: https://github.com/apache/incubator-nuttx/pull/5470#issuecomment-1037873160






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] michi-jung commented on pull request #5470: STM32U5 Architecture Support

Posted by GitBox <gi...@apache.org>.
michi-jung commented on pull request #5470:
URL: https://github.com/apache/incubator-nuttx/pull/5470#issuecomment-1037873160






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org