Search found 372 matches

by SeeCwriter
Tue Mar 31, 2020 6:58 am
Forum: NetBurner Software
Topic: Task Switching
Replies: 6
Views: 221

Re: Task Switching

I haven't found task scan to be helpful. Using the default task stack. Tried using OSDumpTasks(), but got lots of compile errors rebuilding the system library for debug. Tried to restore to a non-debug, now my application compiles but I get many link errors. And each time a rebuild there are a diffe...
by SeeCwriter
Thu Mar 26, 2020 1:07 pm
Forum: NetBurner Software
Topic: Task Switching
Replies: 6
Views: 221

Re: Task Switching

No errors are returned from OSTaskCreate() when setting the priority to 56 or 55. Just that the other task doesn't run unless OSTimeDly() is present in Usermain's main loop. Priority 54 works though. Go figure.
by SeeCwriter
Wed Mar 25, 2020 12:22 pm
Forum: NetBurner Software
Topic: Task Switching
Replies: 6
Views: 221

Re: Task Switching

Usermain priority is set at powerup initialization with

Code: Select all

OSChangePrio(MAIN_PRIORITY);
by SeeCwriter
Wed Mar 25, 2020 12:03 pm
Forum: NetBurner Software
Topic: Task Switching
Replies: 6
Views: 221

Task Switching

writing a new project using a MOD5441X and v2.9.2. of the tools. Setting task priorities as #define MAIN_PRIORITY 56 #define FTP_PRIO (MAIN_PRIORITY-1) #define OLED1_TASK_PRIO (MAIN_PRIORITY-2) #define OLED2_TASK_PRIO (MAIN_PRIORITY-3) #define UDP_TASK_PRIO (MAIN_PRIORITY-4) #endif the UDP Task does...
by SeeCwriter
Tue Mar 03, 2020 1:20 pm
Forum: NetBurner's Eclipse IDE
Topic: What is Eclipse/GNU doing?
Replies: 1
Views: 163

What is Eclipse/GNU doing?

Given the code snippets below, why doesn't the compiler (v2.9.2) throw an error and why doesn't the program crash in function Init()? ////////// Header… class c_interval // interval timer based on TimeTick { public: volatile DWORD start_time, timeout, interval; explicit c_interval( DWORD msec = 1000...
by SeeCwriter
Thu Feb 06, 2020 12:54 pm
Forum: NetBurner Software
Topic: HiResTimer Usage
Replies: 0
Views: 467

HiResTimer Usage

Using a NANO, I'm trying to use the interrupt feature of the HiResTimer and I haven't been able to get it to work. Is there something wrong with my test code? HiResTimer *hrt; void UserMain(void * pd) { BYTE counter=0; OSChangePrio(MAIN_PRIO); InitializeStack(); EnableAutoUpdate(); GetDHCPAddressIfN...
by SeeCwriter
Tue Feb 04, 2020 11:58 am
Forum: NetBurner Software
Topic: Crash implementing dual-stack
Replies: 22
Views: 697

Re: Crash implementing dual-stack

Just kidding! It's true that with the 'idle' parameter declared as I mentioned in a previous post (not a pointer to a class) that the program no longer crashes, but the class's Reset() function doesn't execute after the class object is created. The Reset function executes once at creation and initia...
by SeeCwriter
Tue Feb 04, 2020 6:52 am
Forum: NetBurner Software
Topic: ambiguous error with Pins
Replies: 1
Views: 122

ambiguous error with Pins

Using a NANO with v2.9.2. Why do I get error "conversion from 'PinIO' to 'WORD' is ambiguous" for each of the following: WORD val = Pins[23]; WORD val = (WORD) Pins[23]; WORD val = ( Pins[23] ) ? 1:0; But no error with: int val = Pins[23]; BYTE val = Pins[23]; if ( Pins[23] ) iprintf( "The pin is lo...
by SeeCwriter
Mon Feb 03, 2020 1:20 pm
Forum: NetBurner Software
Topic: Crash implementing dual-stack
Replies: 22
Views: 697

Re: Crash implementing dual-stack

I get the binary. We (DMH & myself) resolved the aligment flag issue in August of last year using v2.9.1. And the 32-bit aligment flag is disabled on all projects. We never use that "feature".
by SeeCwriter
Mon Feb 03, 2020 12:03 pm
Forum: NetBurner Software
Topic: Crash implementing dual-stack
Replies: 22
Views: 697

Re: Crash implementing dual-stack

I am using an SNMP library from DMH Software. But the program crashes long before it gets used/loaded. And I have made no libraries of my own.