Hello all,
we would like to use cmsis-rtos to interface with freertos
For every XXX() api freertos has also the XXXFromISR() version: so we need to know if there is an intrinsic that tell us if we are inside an interrupt handler, something like __get_IPSR() for cortex processors
Thank you
Max
cmsis-rtos
Re: cmsis-rtos
Thank you WiFive,
what about __BKPT()? Does esp32 have a similar instruction?
what about __BKPT()? Does esp32 have a similar instruction?
Re: cmsis-rtos
__asm__ ("break 0,0");
should break into debugger if OCD is enabled, and raise DebugException if not.
should break into debugger if OCD is enabled, and raise DebugException if not.
Re: cmsis-rtos
Thank you ESP_igrr,
now I can complete my macros:
now I can complete my macros:
Code: Select all
#ifdef NDEBUG
# define CHECK_IT(a) (void)(a)
# define BPOINT
#else
# define CHECK_IT(a) assert(a)
# define BPOINT __asm__("break 0,0")
#endif
Re: cmsis-rtos
By the way is there any support in OpenOCD / gdb to step over break instruction once reached?ESP_igrr wrote:__asm__ ("break 0,0");
should break into debugger if OCD is enabled, and raise DebugException if not.
EDIT:
Found https://github.com/espressif/openocd-esp32/issues/2
Who is online
Users browsing this forum: Gaston1980 and 128 guests