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 2021/12/09 05:22:23 UTC
[GitHub] [incubator-nuttx] anchao opened a new pull request #4957: cortex-m/hardfault: add usage/bus-fault handler
anchao opened a new pull request #4957:
URL: https://github.com/apache/incubator-nuttx/pull/4957
## Summary
cortex-m/hardfault: add bus-fault handler
cortex-m/hardfault: add usage-fault handler
cortex-m/hardfault: enhance the dump information of mem/hard-fault
## Impact
N/A
## Testing
```
[ EMERG] [ap] arm_usagefault: PANIC!!! Usage Fault:
[ EMERG] [ap] arm_usagefault: IRQ: 6 regs: 0x3c321a78
[ EMERG] [ap] arm_usagefault: BASEPRI: 000000e0 PRIMASK: 00000000 IPSR: 00000006 CONTROL: 00000004
[ EMERG] [ap] arm_usagefault: CFSR: 01000000 HFSR: 00000000 DFSR: 00000000 BFAR: 40181000 AFSR: 00000000
[ EMERG] [ap] arm_usagefault: Usage Fault Reason:
[ EMERG] [ap] arm_usagefault: Unaligned access
[ EMERG] [ap] up_assert: Assertion failed at file:armv8-m/arm_usagefault.c line: 113 task: init
```
--
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 a change in pull request #4957: cortex-m/hardfault: add usage/bus-fault handler
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on a change in pull request #4957:
URL: https://github.com/apache/incubator-nuttx/pull/4957#discussion_r765490874
##########
File path: arch/arm/Kconfig
##########
@@ -593,6 +593,7 @@ config ARCH_CORTEXM3
select ARCH_HAVE_TESTSET
select ARCH_HAVE_HARDFAULT_DEBUG
select ARCH_HAVE_MEMFAULT_DEBUG
+ select ARCH_HAVE_BUSFAULT_DEBUG
Review comment:
add M0, M0+ 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] anchao commented on a change in pull request #4957: cortex-m/hardfault: add usage/bus-fault handler
Posted by GitBox <gi...@apache.org>.
anchao commented on a change in pull request #4957:
URL: https://github.com/apache/incubator-nuttx/pull/4957#discussion_r765553106
##########
File path: arch/arm/src/armv7-m/arm_busfault.c
##########
@@ -0,0 +1,107 @@
+/****************************************************************************
+ * arch/arm/src/armv7-m/arm_busfault.c
Review comment:
ARMv6-M uses HardFault for all fault conditions
--
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 a change in pull request #4957: cortex-m/hardfault: add usage/bus-fault handler
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on a change in pull request #4957:
URL: https://github.com/apache/incubator-nuttx/pull/4957#discussion_r765487953
##########
File path: arch/arm/src/armv7-m/arm_busfault.c
##########
@@ -0,0 +1,107 @@
+/****************************************************************************
+ * arch/arm/src/armv7-m/arm_busfault.c
Review comment:
let's update armv6-m 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 merged pull request #4957: cortex-m/hardfault: add usage/bus-fault handler
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #4957:
URL: https://github.com/apache/incubator-nuttx/pull/4957
--
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