Search found 86 matches

by kulve
Tue May 03, 2016 1:49 pm
Forum: Development and Feedback
Topic: ChibiOS on iNemo v1
Replies: 21
Views: 19611

Re: ChibiOS on iNemo v1

@zuh, @kulve: Did you ever resolve your issue? I'm running into a similar issue on STM32F205 project with ChibiOS 3.x. Thanks!

I don't think we did. But that's a long time ago. Looking at the thread now, we had several issues in there. Our overall SW wasn't that good, so I'm sure we just had too ...
by kulve
Fri Apr 03, 2015 6:02 pm
Forum: STM32 Support
Topic: Getting stuck with tickless mode
Replies: 61
Views: 42586

Re: Getting stuck with tickless mode

At least my code runs well on the latest ChibiOS version.

Thanks.
by kulve
Thu Apr 02, 2015 9:03 am
Forum: STM32 Support
Topic: Getting stuck with tickless mode
Replies: 61
Views: 42586

Re: Getting stuck with tickless mode

I don't know if this matters but I've changed the timer from 2 to 5 as I wanted to use TIM2 for PWM:

#define STM32_ST_IRQ_PRIORITY 8
#define STM32_ST_USE_TIMER 5

I don't know from where the priority is. Most likely cut'n'pasted from one of the F4 Discovery demos.
by kulve
Sun Mar 29, 2015 4:07 pm
Forum: STM32 Support
Topic: Getting stuck with tickless mode
Replies: 61
Views: 42586

Re: Getting stuck with tickless mode

I'm happy to add any debug prints or checks you need, if it helps.
by kulve
Sun Mar 29, 2015 3:16 pm
Forum: STM32 Support
Topic: Getting stuck with tickless mode
Replies: 61
Views: 42586

Re: Getting stuck with tickless mode

I haven't experienced the stuck with the assert commented out.

In one of the assert cases in chVTIsTimeWithinX():

start == 141132
end == 141187
time == 141232
by kulve
Sun Mar 29, 2015 1:58 pm
Forum: STM32 Support
Topic: Getting stuck with tickless mode
Replies: 61
Views: 42586

Re: Getting stuck with tickless mode

At least it didn't stuck withing the first minute. I'll leave it running for an hour before doing more tests as I have other things to do now.
by kulve
Sun Mar 29, 2015 1:51 pm
Forum: STM32 Support
Topic: Getting stuck with tickless mode
Replies: 61
Views: 42586

Re: Getting stuck with tickless mode

EDIT: I only now noticed your latest comment. Will try without the assert in a bit.

os/rt/include/chvt.h:480

chDbgAssert(chVTIsTimeWithinX(ch.vtlist.vt_lasttime + vtp->vt_delta,
ch.vtlist.vt_lasttime,
chVTGetSystemTimeX() + 1),
"out of time window");


Barthess mentioned in ...
by kulve
Sun Mar 29, 2015 12:42 pm
Forum: STM32 Support
Topic: Getting stuck with tickless mode
Replies: 61
Views: 42586

Re: Getting stuck with tickless mode

I tried increasing it from 2 to 4 or 8 but still stucks within seconds.
by kulve
Sun Mar 29, 2015 12:24 pm
Forum: STM32 Support
Topic: Getting stuck with tickless mode
Replies: 61
Views: 42586

Re: Getting stuck with tickless mode

Yes, I have enabled assertions and the following checks:

#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 ...
by kulve
Sun Mar 29, 2015 12:09 pm
Forum: STM32 Support
Topic: Getting stuck with tickless mode
Replies: 61
Views: 42586

Getting stuck with tickless mode

Hi,

My system gets stuck within a few seconds and I'm not able to pin point the reason. I'm using LSM9DS0 (9dof chip) and it's firing interrupts on three interrupt lines at 100Hz, 100Hz and 95Hz. I have one ISR handler for all three lines and I'm calling chBSemSignalI() from it. In a separate ...