Search found 30 matches

by ephogy
Fri Sep 28, 2018 10:49 am
Forum: NetBurner Software
Topic: floating point issue in nbfloatprint.cpp
Replies: 8
Views: 3974

Re: floating point issue in nbfloatprint.cpp

Thanks Tom,

Glad I could help get to the bottom of this.

Cheers,
Keith
by ephogy
Fri Sep 28, 2018 8:05 am
Forum: NetBurner Software
Topic: floating point issue in nbfloatprint.cpp
Replies: 8
Views: 3974

Re: floating point issue in nbfloatprint.cpp

Hi Tom, I recompiled the code you've listed above with a just a very minor change (no web server): #include <stdio.h> #include <autoupdate.h> #include <ip.h> //#include <http.h> #include <dhcpclient.h> #include <taskmon.h> #include <smarttrap.h> #include <math.h> void UserMain(void * pd) { Initializ...
by ephogy
Tue Sep 25, 2018 2:20 pm
Forum: NetBurner Software
Topic: floating point issue in nbfloatprint.cpp
Replies: 8
Views: 3974

Re: floating point issue in nbfloatprint.cpp

Hi Tom, My mistake. It's actually NNDK 2.8.7 that I'm using. I have the install for NNDK 2.6, but it looks like this section of the kernel went through some heavy modification since my 2.6.0 code base. e.g. none of the files I've listed above exist. In the above code, uint64_double is just a union o...
by ephogy
Mon Sep 24, 2018 8:51 am
Forum: NetBurner Software
Topic: floating point issue in nbfloatprint.cpp
Replies: 8
Views: 3974

Re: floating point issue in nbfloatprint.cpp

I believe I've solved my problem, or at least I see what is going on now... In nbfloatprint.cpp, TheFloatPrintf function simply doesn't handle Infinity (properly?) In my main code, uint64_double infTest; printf("Infinity (bit pattern, float value):\r\n"); infTest.d = nan("0"); pr...
by ephogy
Wed Sep 19, 2018 1:26 pm
Forum: NetBurner Software
Topic: floating point issue in nbfloatprint.cpp
Replies: 8
Views: 3974

floating point issue in nbfloatprint.cpp

Occasionally, one of the tasks that generates a string gets stuck. I finally had a development version of the software running with TaskMonitor running. The code that seems to break it is a relatively simple call to snprintf(buffer, sizeof(buffer), "%f", some_float). since this is hard to ...
by ephogy
Tue Aug 14, 2018 8:47 am
Forum: NetBurner's Eclipse IDE
Topic: Web Server gzip compression batch file
Replies: 1
Views: 2428

Web Server gzip compression batch file

I'm not sure if anyone else uses static pages, but a while back, I built this small batch file to compress all the .html, .css and .js files so that they don't take up a ridiculous amount of space, and because the built in Huffman encoding is... not the best. I apologize to the Mac/Linux users, this...
by ephogy
Tue Dec 12, 2017 11:28 am
Forum: NetBurner Software
Topic: Release 2.8.5
Replies: 44
Views: 26772

Re: Release 2.8.5

The first member of the structure has __attribute__((aligned(2))) as part of it's declaration. Is that what you mean? I think it needs to be declared on each of the (offending) structure elements. so each of the single byte entries needs to be told to align for 2 bytes. Alternatively, you could use...
by ephogy
Mon Dec 11, 2017 1:22 pm
Forum: NetBurner Software
Topic: Release 2.8.5
Replies: 44
Views: 26772

Re: Release 2.8.5

I may be splitting hairs, but we aren't passing the structure between applications. We have an application who's current release was compiled with 2.7.6. We then wanted to start implementing IPv6, so we compiled the application with 2.8.5. The structure holds operating parameters of the unit that a...
by ephogy
Wed Dec 06, 2017 9:42 am
Forum: NetBurner Hardware
Topic: Porting from MOD5272 to MOD5270
Replies: 13
Views: 7445

Re: Porting from MOD5272 to MOD5270

Hi Keith, Not to answer for NetBurner, but I don't think the ADC pins are duplexed with Port pins. When I look at page 2-5 in the MCF5441X Reference Manual V4, it looks like some of them are duplexed with a DAC, but none are duplexed with GPIO. I take it you can't make a hardware change, like a lat...
by ephogy
Wed Dec 06, 2017 7:26 am
Forum: NetBurner Hardware
Topic: Porting from MOD5272 to MOD5270
Replies: 13
Views: 7445

Re: Porting from MOD5272 to MOD5270

Can you give me a page number from the manual you are referring to with the port c question? Trying to revive an older thread, I suppose, but I couldn't easily locate anything else on this; We're currently interested in migrating from the MOD5272 to the MOD54415-100IR board, and like DBrunermer, we...