Search found 330 matches

by SeeCwriter
Tue Sep 03, 2019 7:47 am
Forum: NetBurner Software
Topic: Compiler Switches
Replies: 1
Views: 37

Compiler Switches

Beginning with v2.8.8 and up of the NB Tools, the compiler switch -malign-int was enabled by default for the C Compiler while it was left disabled for the C++ compiler. Since my application is a combination of C and C++ files, this caused my program to crash on boot-up. It took a couple of weeks to ...
by SeeCwriter
Wed Aug 28, 2019 7:30 am
Forum: NetBurner Software
Topic: Embedded IPv4 Addr in IPv6
Replies: 1
Views: 35

Embedded IPv4 Addr in IPv6

As I read RFC 2373 about embedding an IPv4 address in an IPv6 address, it says that the IPv4 address is assigned to the low-order bits (0-31). But looking at the IPADDR6 structure, it assumes the IPv4 address is in the high-order bits (95-127). Is this because of big-endian/little-endian issues?
by SeeCwriter
Thu Aug 22, 2019 11:03 am
Forum: NetBurner Software
Topic: 64-bit time_t
Replies: 8
Views: 104

Re: 64-bit time_t

Ah! For the time travelers. I forgot about them.


Sorry. I couldn't help myself. :D
by SeeCwriter
Thu Aug 22, 2019 10:59 am
Forum: NetBurner Software
Topic: Using true/false in #define
Replies: 0
Views: 34

Using true/false in #define

With v2.8.7 I could define a macro using true or false.

Code: Select all

#define UseNewFeature    true

#if UseNewFeature
    DoSomething();
#endif

But v2.9.1, the compiler no longer recognizes true/false in a maco. In the example above, DoSomething() will not get called.
Does that seem right?
by SeeCwriter
Wed Aug 21, 2019 11:44 am
Forum: NetBurner Software
Topic: 64-bit time_t
Replies: 8
Views: 104

Re: 64-bit time_t

Thanks, that seems to have fixed the problem.

Out of curiosity, wouldn't it have been easier to make time_t an unsigned long (DWORD) rather than a signed 64-bit value?

Also, this too appears to fix the problem:

Code: Select all

time_t tnum = (DWORD) mktime(&t);
by SeeCwriter
Tue Aug 20, 2019 9:42 am
Forum: NetBurner Software
Topic: 64-bit time_t
Replies: 8
Views: 104

64-bit time_t

I'm using v2.9.1 with a MOD5441X, and testing the new 64-bit time_t parameter with the function below. void TestDateTime( char *ptr ) { struct tm t, *timeinfo; char buf[20]; iprintf( "Cmd: %s\r\n", ptr ); memcpy( buf, ptr + 3, 4 ); buf[4] = 0; t.tm_year = atoi( buf ) - 1900; memcpy( buf, ptr + 8, 2 ...
by SeeCwriter
Wed Apr 24, 2019 10:07 am
Forum: NetBurner Software
Topic: Slick-C Error
Replies: 1
Views: 294

Slick-C Error

SE, v23.0.1.2, was configured to use spaces and not tabs for indentation, and it has been working. Today I noticed that it was inserting tabs. So I opened Options/Languages/All Languages/Formatting and unchecked the "Indent with tabs" box, clicked OK, and I received Slick-C Error: Invalid object han...
by SeeCwriter
Tue Apr 23, 2019 2:59 pm
Forum: NetBurner Software
Topic: Using FS file System
Replies: 2
Views: 184

Re: Using FS file System

That's what HCC's documentation says that I found online. It turns out I was using the wrong file system library. There is more than one file system with NB modules. One is for SD/MM cards, that requires a call to f_enterFS and uses an F for a function prefix. The other is for a file system on the s...
by SeeCwriter
Tue Apr 23, 2019 11:59 am
Forum: NetBurner Software
Topic: Using FS file System
Replies: 2
Views: 184

Using FS file System

Using file FileSystemUtils.cpp from one of the examples to manage files on the flash memory of a NANO, I get error F_ERR_TASKNOTFOUND. What does that mean?

v2.8.7 of the tools.
by SeeCwriter
Fri Apr 12, 2019 10:50 am
Forum: NetBurner Software
Topic: System Build Errors
Replies: 0
Views: 127

System Build Errors

I installed v2.8.8 and proceeded to rebuild the system to add SNMP, and in building the system dir I get all kinds of compile errors for SNMP variables "not declared in this scope." The errors seem to all be in file snmp/Mibcls.cpp. e.g., snmp_var_icmpInErrors, snmp_var_icmpInDestUnreachs, SysInfo, ...