Problem with rtems_event_send crashing from interrupt routine

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Jun 15 19:12:12 UTC 2015


This is unfortunately not the bug we are looking after.  I fixed the _CPU_ISR_Get_level() function for ARMv7-M.

----- Mr. Andrei Chichak <groups at chichak.ca> schrieb:Which generates:assertion "_ISR_Get_level() != 0" failed: file "../../cpukit/../../../stm32f4/lib/include/rtems/score/threadimpl.h", line 990, function: _Thread_Lock_acquire_default_critical#0  0x0001d57c in _Terminate (the_source=the_source at entry=RTEMS_FATAL_SOURCE_ASSERT, is_internal=is_internal at entry=false, the_error=the_error at entry=536875264) at ../../../../../../rtems/c/src/../../cpukit/score/src/interr.c:52#1  0x0001c7c6 in rtems_fatal (source=source at entry=RTEMS_FATAL_SOURCE_ASSERT, error=error at entry=536875264) at ../../../../../../rtems/c/src/../../cpukit/sapi/src/fatal2.c:34#2  0x00018dbc in __assert_func (file=file at entry=0x2423c "../../cpukit/../../../stm32f4/lib/include/rtems/score/threadimpl.h", line=128, line at entry=990, func=func at entry=0x24214 <__FUNCTION__.7604> "_Thread_Lock_acquire_default_critical", failedexpr=failedexpr at entry=0x24280 "_ISR_Get_level() != 0") at ../../../../../../rtems/c/src/../../cpukit/libcsupport/src/__assert.c:52#3  0x0001bdd2 in _Thread_Lock_acquire_default_critical (the_thread=0x0 <bsp_start_vector_table_begin>, lock_context=0x2000113c, lock_context at entry=0x2000111c) at ../../cpukit/../../../stm32f4/lib/include/rtems/score/threadimpl.h:990#4  _Event_Surrender (the_thread=0x0 <bsp_start_vector_table_begin>, event_in=event_in at entry=2, event=0x80 <bsp_start_vector_table_begin+128>, wait_class=wait_class at entry=256, lock_context=lock_context at entry=0x2000113c) at ../../../../../../rtems/c/src/../../cpukit/rtems/src/eventsurrender.c:67#5  0x0001bcf6 in rtems_event_send (id=<optimized out>, event_in=event_in at entry=2) at ../../../../../../rtems/c/src/../../cpukit/rtems/src/eventsend.c:40#6  0x0000058e in HAL_ADC_ConvHalfCpltCallback (hadc=<optimized out>) at ../src/adctask.c:258#7  0x00007704 in HAL_DMA_IRQHandler (hdma=0x20002560 <hdma_adc1>) at ../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c:763#8  0x00018766 in bsp_interrupt_handler_dispatch (vector=<optimized out>) at ../../../../../.././stm32f4/lib/include/bsp/irq-generic.h:266#9  _ARMV7M_NVIC_Interrupt_dispatch () at ../../../../../../../../rtems/c/src/lib/libbsp/arm/stm32f4/../shared/armv7m/irq/armv7m-irq-dispatch.c:28#10 <signal handler called>#11 0x00000000 in bsp_start_vector_table_begin ()A
-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20150615/77d58268/attachment.html>


More information about the users mailing list