<div dir="ltr">Thank you for the quick response. The script helped.<div><br></div><div>I hate asking others for a lot of help, but I do not know what to do now that I have caught the exception. I also put Init as a breakpoint, but the program breaks at _ARMV4_Exception first, What should I do about this? How do I resolve/fix the cause of this exception?</div><div><br></div><div>This happened:</div><div><br></div><div>------------------------------------------</div><div>~/quick-start/rtems/5/bin$ ./arm-rtems5-gdb --command=arm.gdb ~/quick-start/build/b3-realview/arm-rtems5/c/realview_pbx_a9_qemu/testsuites/smptests/smpstrongapa01.exe<br></div>GNU gdb (GDB) 9.1<br>.<div>.</div><div>.<br>Loading section .data, size 0x530 lma 0x200000<br>Start address 0x00100040, load size 136903<br>Transfer rate: 26738 KB/sec, 1777 bytes/write.<br>(gdb) continue<br>Continuing.<br><br>Thread 1 hit Breakpoint 2, _ARMV4_Exception_data_abort_default () at /home/richi/quick-start/src/rtems/c/src/../../cpukit/score/cpu/arm/armv4-exception-default.S:70<br>70 sub sp, #MORE_CONTEXT_SIZE<br>(gdb) info thread<br> Id Target Id Frame <br>* 1 Thread 1.1 (CPU#0 [running]) _ARMV4_Exception_data_abort_default () at /home/richi/quick-start/src/rtems/c/src/../../cpukit/score/cpu/arm/armv4-exception-default.S:70<br> 2 Thread 1.2 (CPU#1 [running]) _Per_CPU_State_busy_wait (cpu=0x203780 <_Per_CPU_Information+512>, new_state=PER_CPU_STATE_UP) at /home/richi/quick-start/src/rtems/c/src/../../cpukit/score/src/percpu.c:77<br> 3 Thread 1.3 (CPU#2 [running]) _SMP_ticket_lock_Do_release (lock=0x203af4 <_Per_CPU_Information+1396>) at /home/richi/quick-start/src/rtems/cpukit/include/rtems/score/smplockticket.h:176<br>(gdb) ni<br>71 stmdb sp!, {r0-r12}<br>(gdb) <br>72 mov r4, #4<br>(gdb) <br>74 b save_more_context<br>(gdb) <br>save_more_context () at /home/richi/quick-start/src/rtems/c/src/../../cpukit/score/cpu/arm/armv4-exception-default.S:112<br>112 mov r2, lr<br>(gdb) <br>113 mrs r3, spsr<br>(gdb) <br>114 mrs r7, cpsr<br>(gdb) <br>115 orr r5, r3, #ARM_PSR_I<br>(gdb) <br>116 bic r5, #ARM_PSR_T<br>(gdb) <br>117 msr cpsr, r5<br>(gdb) <br>save_more_context () at /home/richi/quick-start/src/rtems/c/src/../../cpukit/score/cpu/arm/armv4-exception-default.S:118<br>118 mov r0, sp<br>(gdb) <br>119 mov r1, lr<br>(gdb) <br>120 msr cpsr, r7<br>(gdb) <br>save_more_context () at /home/richi/quick-start/src/rtems/c/src/../../cpukit/score/cpu/arm/armv4-exception-default.S:121<br>121 mov r5, #0<br>(gdb) <br>122 add r6, sp, #ARM_EXCEPTION_FRAME_REGISTER_SP_OFFSET<br>(gdb) <br>123 stm r6, {r0-r5}<br>(gdb) <br>126 mov r0, sp<br>(gdb) <br>129 add r3, sp, #ARM_EXCEPTION_FRAME_VFP_CONTEXT_OFFSET<br>(gdb) <br>130 mov r1, #0<br>(gdb) <br>131 str r1, [r3]<br>(gdb) <br>135 vmrs r1, FPEXC<br>(gdb) <br>136 tst r1, #(1 << 30)<br>(gdb) <br>137 beq 1f<br>(gdb) <br>140 sub sp, #(ARM_VFP_CONTEXT_SIZE + 8)<br>(gdb) <br>save_more_context () at /home/richi/quick-start/src/rtems/c/src/../../cpukit/score/cpu/arm/armv4-exception-default.S:141<br>141 add r4, sp, #8<br>(gdb) <br>142 bic r4, r4, #7<br>(gdb) <br>143 str r4, [r3]<br>(gdb) <br>144 vmrs r2, FPSCR<br>(gdb) <br>145 stmia r4!, {r1-r2}<br>(gdb) <br>146 vstmia r4!, {d0-d15}<br>(gdb) <br>148 vstmia r4!, {d16-d31}<br>(gdb) <br>162 SWITCH_FROM_ARM_TO_THUMB r1<br>(gdb) <br>0x0011a12c 162 SWITCH_FROM_ARM_TO_THUMB r1<br>(gdb) <br>163 bl _ARM_Exception_default<br>(gdb) <br><br>Thread 1 hit Breakpoint 1, _ARM_Exception_default (frame=0x2082f0 <_ISR_Stack_area_begin+4016>) at /home/richi/quick-start/src/rtems/c/src/../../cpukit/score/cpu/arm/arm-exception-default.c:24<br>24 rtems_fatal( RTEMS_FATAL_SOURCE_EXCEPTION, (rtems_fatal_code) frame );<br>(gdb) <br>0x0011d2ae 24 rtems_fatal( RTEMS_FATAL_SOURCE_EXCEPTION, (rtems_fatal_code) frame );<br>(gdb) <br>0x0011d2b0 24 rtems_fatal( RTEMS_FATAL_SOURCE_EXCEPTION, (rtems_fatal_code) frame );<br>(gdb) <br>0x0011d2b2 24 rtems_fatal( RTEMS_FATAL_SOURCE_EXCEPTION, (rtems_fatal_code) frame );<br>(gdb) <br><br>Thread 1 hit Breakpoint 5, _Terminate (the_source=RTEMS_FATAL_SOURCE_EXCEPTION, the_error=2130672) at /home/richi/quick-start/src/rtems/c/src/../../cpukit/score/src/interr.c:36<br>36 _User_extensions_Fatal( the_source, the_error );<br>(gdb) <br>0x00114ba2 36 _User_extensions_Fatal( the_source, the_error );<br>(gdb) <br>0x00114ba4 36 _User_extensions_Fatal( the_source, the_error );<br>(gdb) <br><br>Thread 1 hit Breakpoint 4, bsp_reset () at /home/richi/quick-start/src/rtems/c/src/lib/libbsp/arm/realview-pbx-a9/../../../../../../bsps/arm/realview-pbx-a9/start/bspreset.c:19<br>19 volatile uint32_t *sys_lock = (volatile uint32_t *) 0x10000020;<br>(gdb) <br>0x001014b6 19 volatile uint32_t *sys_lock = (volatile uint32_t *) 0x10000020;<br><div> <br><div> ----------------------------------------------------------------------------------------------</div></div></div><div><br></div><div>After this, the qemu screen shows the </div><div><br></div><div>*** FATAL ***</div>fatal source: 9 (RTEMS_FATAL_SOURCE_EXCEPTION)<div><br></div><div>screen. What can I do now?</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 11, 2020 at 1:31 PM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 11/08/2020 09:59, Sebastian Huber wrote:<br>
> <br>
> arm-rtems6-gdb --arm.gdb app.exe<br>
<br>
arm-rtems6-gdb --command=arm.gdb app.exe<br>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone : +49 89 189 47 41-16<br>
Fax : +49 89 189 47 41-09<br>
E-Mail : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
PGP : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
</blockquote></div>