Search found 5 matches

by ttribelli
Wed Jan 19, 2022 4:59 pm
Forum: NetBurner Software
Topic: Upgrading software from NDK 1.6 to 2.x
Replies: 10
Views: 3939

Re: Upgrading software from NDK 1.6 to 2.x

I already have an alternative solution based on a pair of OS_SEM that explicitly blocks/unblocks the threads to alternate between them. Again, to be clear, no spacing out of DACout calls was necessary in 1.6, no delays, no explicit blocking/unblocking. All that was needed was a critical section arou...
by ttribelli
Tue Jan 18, 2022 11:20 pm
Forum: NetBurner Software
Topic: Upgrading software from NDK 1.6 to 2.x
Replies: 10
Views: 3939

Re: Upgrading software from NDK 1.6 to 2.x

Yes I understand that an unblocked higher priority thread will immediately be scheduled and run, preempting any lower priority thread. Perhaps the code outline was a little too brief, DACout's critical section is inside a for loop. Actually there are two for loops, one for the rising edge and one fo...
by ttribelli
Fri Jan 14, 2022 5:02 pm
Forum: NetBurner Software
Topic: Upgrading software from NDK 1.6 to 2.x
Replies: 10
Views: 3939

Re: Upgrading software from NDK 1.6 to 2.x

Randy is about to get on a plane for vacation. So naturally this is when problems are found. :-) I'm working with Randy and I'll fill in. Be warned, I am new to NetBurner and µC/OS. NDK 2.9.5 is my starting point. Randy and I both have MOD54415, his is revision 1.something I believe, mine 2.2. The o...
by ttribelli
Fri Jan 14, 2022 11:24 am
Forum: NetBurner Software
Topic: Upgrading software from NDK 1.6 to 2.x
Replies: 10
Views: 3939

Re: Upgrading software from NDK 1.6 to 2.x

The conversion of old code seems to be unnecessary. Implementation (ucos.h) calls class members. inline BYTE OSCritInit( OS_CRIT *pCrit ) { return pCrit->Init(); } inline BYTE OSCritEnter( OS_CRIT *pCrit, WORD timeout ) { return pCrit->Enter(timeout); } inline BYTE OSCritLeave( OS_CRIT *pCrit ) { re...
by ttribelli
Fri Jan 14, 2022 11:05 am
Forum: NetBurner Software
Topic: Upgrading software from NDK 1.6 to 2.x
Replies: 10
Views: 3939

Re: Upgrading software from NDK 1.6 to 2.x

I converted OS_CRIT i2cCS; OSCritInit( &i2cCS ); OSCritEnter( &i2cCS, 0 ); OSCritLeave( &i2cCS ); to OS_CRIT i2cCS; i2cCS.Init(); i2cCS.Enter( WAIT_FOREVER ); i2cCS.Leave(); Still doesn't work. Using 2.9.5. Both compile and run, they just fail differently. Only one thread runs in the old...