<html><head><style> body {height: 100%; color:#000000; font-size:12pt; font-family:arial,helvetica,sans-serif;}</style></head><body><div>This is unfortunately not the bug we are looking after. I fixed the _CPU_ISR_Get_level() function for ARMv7-M.<br></div><div><br></div><div>----- Mr. Andrei Chichak <groups@chichak.ca> schrieb:</div><div class="">Which generates:</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div style="margin: 0px; font-size: 9px; font-family: Monaco;" class="" data-mce-style="margin: 0px; font-size: 9px; font-family: Monaco;">assertion "_ISR_Get_level() != 0" failed: file "../../cpukit/../../../stm32f4/lib/include/rtems/score/threadimpl.h", line 990, function: _Thread_Lock_acquire_default_critical</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Monaco;" class="" data-mce-style="margin: 0px; font-size: 11px; font-family: Monaco;">#0 0x0001d57c in _Terminate (the_source=the_source@entry=RTEMS_FATAL_SOURCE_ASSERT, is_internal=is_internal@entry=false, the_error=the_error@entry=536875264) at ../../../../../../rtems/c/src/../../cpukit/score/src/interr.c:52</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;" class="" data-mce-style="margin: 0px; font-size: 11px; font-family: Monaco;">#1 0x0001c7c6 in rtems_fatal (source=source@entry=RTEMS_FATAL_SOURCE_ASSERT, error=error@entry=536875264) at ../../../../../../rtems/c/src/../../cpukit/sapi/src/fatal2.c:34</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;" class="" data-mce-style="margin: 0px; font-size: 11px; font-family: Monaco;">#2 0x00018dbc in __assert_func (file=file@entry=0x2423c "../../cpukit/../../../stm32f4/lib/include/rtems/score/threadimpl.h", line=128, line@entry=990, func=func@entry=0x24214 <__FUNCTION__.7604> "_Thread_Lock_acquire_default_critical", failedexpr=failedexpr@entry=0x24280 "_ISR_Get_level() != 0") at ../../../../../../rtems/c/src/../../cpukit/libcsupport/src/__assert.c:52</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;" class="" data-mce-style="margin: 0px; font-size: 11px; font-family: Monaco;">#3 0x0001bdd2 in _Thread_Lock_acquire_default_critical (the_thread=0x0 <bsp_start_vector_table_begin>, lock_context=0x2000113c, lock_context@entry=0x2000111c) at ../../cpukit/../../../stm32f4/lib/include/rtems/score/threadimpl.h:990</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;" class="" data-mce-style="margin: 0px; font-size: 11px; font-family: Monaco;">#4 _Event_Surrender (the_thread=0x0 <bsp_start_vector_table_begin>, event_in=event_in@entry=2, event=0x80 <bsp_start_vector_table_begin+128>, wait_class=wait_class@entry=256, lock_context=lock_context@entry=0x2000113c) at ../../../../../../rtems/c/src/../../cpukit/rtems/src/eventsurrender.c:67</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;" class="" data-mce-style="margin: 0px; font-size: 11px; font-family: Monaco;">#5 0x0001bcf6 in rtems_event_send (id=<optimized out>, event_in=event_in@entry=2) at ../../../../../../rtems/c/src/../../cpukit/rtems/src/eventsend.c:40</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;" class="" data-mce-style="margin: 0px; font-size: 11px; font-family: Monaco;">#6 0x0000058e in HAL_ADC_ConvHalfCpltCallback (hadc=<optimized out>) at ../src/adctask.c:258</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;" class="" data-mce-style="margin: 0px; font-size: 11px; font-family: Monaco;">#7 0x00007704 in HAL_DMA_IRQHandler (hdma=0x20002560 <hdma_adc1>) at ../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c:763</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;" class="" data-mce-style="margin: 0px; font-size: 11px; font-family: Monaco;">#8 0x00018766 in bsp_interrupt_handler_dispatch (vector=<optimized out>) at ../../../../../.././stm32f4/lib/include/bsp/irq-generic.h:266</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;" class="" data-mce-style="margin: 0px; font-size: 11px; font-family: Monaco;">#9 _ARMV7M_NVIC_Interrupt_dispatch () at ../../../../../../../../rtems/c/src/lib/libbsp/arm/stm32f4/../shared/armv7m/irq/armv7m-irq-dispatch.c:28</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;" class="" data-mce-style="margin: 0px; font-size: 11px; font-family: Monaco;">#10 <signal handler called></div><div style="margin: 0px; font-size: 11px; font-family: Monaco;" class="" data-mce-style="margin: 0px; font-size: 11px; font-family: Monaco;">#11 0x00000000 in bsp_start_vector_table_begin ()</div></div><div style="margin: 0px; font-size: 11px; font-family: Monaco;" class="" data-mce-style="margin: 0px; font-size: 11px; font-family: Monaco;"><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Monaco;" class="" data-mce-style="margin: 0px; font-size: 11px; font-family: Monaco;">A</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;" class="" data-mce-style="margin: 0px; font-size: 11px; font-family: Monaco;"><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Monaco;" class="" data-mce-style="margin: 0px; font-size: 11px; font-family: Monaco;"><br class=""></div><div><br>-- <br></div><div><pre>Sebastian Huber, embedded brains GmbH<br></pre><div><br></div><pre>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="http://lists.rtems.org/mailman/listinfo/devel" data-mce-href="http://lists.rtems.org/mailman/listinfo/devel">sebastian.huber at embedded-brains.de</a><br>PGP : Public key available on request.<br></pre><div><br></div><pre>Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.</pre></div></body></html>