cmb_fault.lst 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. ARM Macro Assembler Page 1
  2. 1 00000000 ;/*
  3. 2 00000000 ; * This file is part of the CmBacktrace Library.
  4. 3 00000000 ; *
  5. 4 00000000 ; * Copyright (c) 2016, Armink, <armink.ztl@gmail.com>
  6. 5 00000000 ; *
  7. 6 00000000 ; * Permission is hereby granted, free of charge, to any
  8. person obtaining
  9. 7 00000000 ; * a copy of this software and associated documentation
  10. files (the
  11. 8 00000000 ; * 'Software'), to deal in the Software without restric
  12. tion, including
  13. 9 00000000 ; * without limitation the rights to use, copy, modify,
  14. merge, publish,
  15. 10 00000000 ; * distribute, sublicense, and/or sell copies of the So
  16. ftware, and to
  17. 11 00000000 ; * permit persons to whom the Software is furnished to
  18. do so, subject to
  19. 12 00000000 ; * the following conditions:
  20. 13 00000000 ; *
  21. 14 00000000 ; * The above copyright notice and this permission notic
  22. e shall be
  23. 15 00000000 ; * included in all copies or substantial portions of th
  24. e Software.
  25. 16 00000000 ; *
  26. 17 00000000 ; * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY O
  27. F ANY KIND,
  28. 18 00000000 ; * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  29. WARRANTIES OF
  30. 19 00000000 ; * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AN
  31. D NONINFRINGEMENT.
  32. 20 00000000 ; * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS B
  33. E LIABLE FOR ANY
  34. 21 00000000 ; * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACT
  35. ION OF CONTRACT,
  36. 22 00000000 ; * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC
  37. TION WITH THE
  38. 23 00000000 ; * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWAR
  39. E.
  40. 24 00000000 ; *
  41. 25 00000000 ; * Function: Fault handler by MDK-ARM assembly code
  42. 26 00000000 ; * Created on: 2016-12-16
  43. 27 00000000 ; */
  44. 28 00000000
  45. 29 00000000 AREA |.text|, CODE, READONLY, ALIGN=
  46. 2
  47. 30 00000000 THUMB
  48. 31 00000000 REQUIRE8
  49. 32 00000000 PRESERVE8
  50. 33 00000000
  51. 34 00000000 ; NOTE: If use this file's HardFault_Handler, please com
  52. ments the HardFault_Handler code on other file.
  53. 35 00000000 IMPORT cm_backtrace_fault
  54. 36 00000000 EXPORT HardFault_Handler
  55. 37 00000000
  56. 38 00000000 HardFault_Handler
  57. PROC
  58. 39 00000000 4670 MOV r0, lr ; get lr
  59. 40 00000002 4669 MOV r1, sp ; get stack pointer
  60. (current is MSP)
  61. ARM Macro Assembler Page 2
  62. 41 00000004 F7FF FFFE BL cm_backtrace_fault
  63. 42 00000008
  64. 43 00000008 Fault_Loop
  65. 44 00000008 F7FF FFFE BL Fault_Loop ;while(1)
  66. 45 0000000C ENDP
  67. 46 0000000C
  68. 47 0000000C END
  69. Command Line: --debug --xref --diag_suppress=9931 --cpu=Cortex-M3 --apcs=interw
  70. ork --depend=test\cmb_fault.d -otest\cmb_fault.o -I.\RTE\RTOS -I.\RTE\_test -IC
  71. :\Keil_v5\ARM\PACK\ARM\CMSIS\5.0.1\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM
  72. 32F1xx_DFP\2.1.0\Device\Include -IC:\Keil_v5\ARM\PACK\RealThread\RT-Thread\3.1.
  73. 3\components\finsh -IC:\Keil_v5\ARM\PACK\RealThread\RT-Thread\3.1.3\include --p
  74. redefine="__MICROLIB SETA 1" --predefine="__UVISION_VERSION SETA 524" --predefi
  75. ne="_RTE_ SETA 1" --predefine="STM32F10X_HD SETA 1" --list=cmb_fault.lst ..\cm_
  76. backtrace\fault_handler\keil\cmb_fault.S
  77. ARM Macro Assembler Page 1 Alphabetic symbol ordering
  78. Relocatable symbols
  79. .text 00000000
  80. Symbol: .text
  81. Definitions
  82. At line 29 in file ..\cm_backtrace\fault_handler\keil\cmb_fault.S
  83. Uses
  84. None
  85. Comment: .text unused
  86. Fault_Loop 00000008
  87. Symbol: Fault_Loop
  88. Definitions
  89. At line 43 in file ..\cm_backtrace\fault_handler\keil\cmb_fault.S
  90. Uses
  91. At line 44 in file ..\cm_backtrace\fault_handler\keil\cmb_fault.S
  92. Comment: Fault_Loop used once
  93. HardFault_Handler 00000000
  94. Symbol: HardFault_Handler
  95. Definitions
  96. At line 38 in file ..\cm_backtrace\fault_handler\keil\cmb_fault.S
  97. Uses
  98. At line 36 in file ..\cm_backtrace\fault_handler\keil\cmb_fault.S
  99. Comment: HardFault_Handler used once
  100. 3 symbols
  101. ARM Macro Assembler Page 1 Alphabetic symbol ordering
  102. External symbols
  103. cm_backtrace_fault 00000000
  104. Symbol: cm_backtrace_fault
  105. Definitions
  106. At line 35 in file ..\cm_backtrace\fault_handler\keil\cmb_fault.S
  107. Uses
  108. At line 41 in file ..\cm_backtrace\fault_handler\keil\cmb_fault.S
  109. Comment: cm_backtrace_fault used once
  110. 1 symbol
  111. 338 symbols in table