main.c snippet and other general information below.
Code: Select all
444 gdispFillStringBox(2, 71, 95, 12, "P1 Potable Pump", gdispOpenFont("DejaVu*"), Black, White, justifyLeft);
445 gdispFillStringBox(2, 83, 40, 12, "Target", gdispOpenFont("DejaVu*"), Black, White, justifyLeft);dbg_panic_msg --> chThdSleepS
dbg_isr_cnt --> not within ISR
dbg_lock_cnt --> within lock
This is chibios 3.0.1, with uGFX, on a STM32F429 compiled by Chibi Studio GCC 4.9. My starting point was found as a demo from uGFX, which included Chibios. I have most dbg features enabled in chconf.h
Code: Select all
#define CH_DBG_STATISTICS TRUE
#define CH_DBG_SYSTEM_STATE_CHECK TRUE
#define CH_DBG_ENABLE_CHECKS TRUE
#define CH_DBG_ENABLE_ASSERTS TRUE
#define CH_DBG_ENABLE_TRACE TRUE
#define CH_DBG_ENABLE_STACK_CHECK TRUE
#define CH_DBG_FILL_THREADS TRUE
#define CH_DBG_THREADS_PROFILING FALSE
My make file does it like this, not the -ggdb -O0 -g3
Code: Select all
arm-none-eabi-gcc -c -ggdb -O0 -g3 -mcpu=cortex-m4 -falign-functions=16 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -MMD -MP -MF .build/dep/fakethumbfile.o.d -I. -Iugfx -Iugfx/3rdparty/tinygl-0.4-ugfx/include -Iugfx/boards/base/STM32F429i-Discovery -Iugfx/drivers/gdisp/STM32LTDC -Ichibios_3.0.1/os/common/ports/ARMCMx/devices/STM32F4xx -Ichibios_3.0.1/os/ext/CMSIS/include -Ichibios_3.0.1/os/ext/CMSIS/ST -Ichibios_3.0.1/os/rt/include -Ichibios_3.0.1/os/rt/ports/ARMCMx -Ichibios_3.0.1/os/rt/ports/ARMCMx/compilers/GCC -Ichibios_3.0.1/os/hal/osal/rt -Ichibios_3.0.1/os/hal/include -Ichibios_3.0.1/os/hal/ports/common/ARMCMx -Ichibios_3.0.1/os/hal/ports/STM32/STM32F4xx -Ichibios_3.0.1/os/hal/ports/STM32/LLD -Ichibios_3.0.1/os/hal/ports/STM32/LLD/DACv1 -Ichibios_3.0.1/os/hal/ports/STM32/LLD/GPIOv2 -Ichibios_3.0.1/os/hal/ports/STM32/LLD/I2Cv1 -Ichibios_3.0.1/os/hal/ports/STM32/LLD/OTGv1 -Ichibios_3.0.1/os/hal/ports/STM32/LLD/RTCv2 -Ichibios_3.0.1/os/hal/ports/STM32/LLD/SPIv1 -Ichibios_3.0.1/os/hal/ports/STM32/LLD/TIMv1 -Ichibios_3.0.1/os/hal/ports/STM32/LLD/USARTv1 -Ichibios_3.0.1/os/hal/ports/STM32/LLD/FSMCv1 -Ichibios_3.0.1/os/hal/boards/ST_STM32F429I_DISCOVERY -Ichibios_3.0.1/os/hal/lib/streams/ -Ichibios_3.0.1/os/various -DGFX_USE_OS_CHIBIOS=TRUE -DGFX_USE_OS_CHIBIOS=TRUE -DCORTEX_USE_FPU=TRUE -DUSE_FPU=hard -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB fakethumbfile.c -o .build/obj/fakethumbfile.o
.