Hi Braian, Giovanni,
Is there any process in chibi os disable system interrupts?
I have success implement CAN from ST-Lib with Chibi OS at the moment
I need 3 UART in my application and one of them is Software UART base on Timer 4 (with ST-Lib TIM4) because I need 10400 baud rate.
So my application run just for 3-5 second then it stop and struct in the following process
#if !defined(PORT_OPTIMIZED_READYI) || defined(__DOXYGEN__)
#if CH_OPTIMIZE_SPEED
/* NOTE: it is inlined in this module only.*/
INLINE Thread *chSchReadyI(Thread *tp) {
#else
Thread *chSchReadyI(Thread *tp) {
#endif
Thread *cp;
/* Integrity check.*/
chDbgAssert((tp->p_state != THD_STATE_READY) &&
(tp->p_state != THD_STATE_FINAL),
"chSchReadyI(), #1",
"invalid state");
tp->p_state = THD_STATE_READY;
cp = (Thread *)&rlist.r_queue;
do {
cp = cp->p_next;
} while (cp->p_prio >= tp->p_prio);
/* Insertion on p_prev.*/
tp->p_next = cp;
tp->p_prev = cp->p_prev;
tp->p_prev->p_next = cp->p_prev = tp;
return tp;
}
and then I put the break point in any ISR but no ISR are activate and my system not response to anything
I have create 3 threads
1st thread is checking data from UART1
2nd thread is for transmit data to UART1 (chBSEMwait)
3rd thread is for communicate to Software UART when communication complete chBSEMSignal to call the 2nd thread to work
As I try to debug, I got 3-4 data from 2nd thread (3-4 times working) and then system stop
every time it stop after execute the 2nd thread. any idea?
but if I put the break point on 2nd thread, it not struct in that loop. but I get problem with timedout from 3rd thread.
thank you.
Saran