Search found 587 matches

by tod
Wed May 07, 2014 2:57 pm
Forum: NetBurner Hardware
Topic: Trouble Flashing 5272
Replies: 10
Views: 7101

Re: Trouble Flashing 5272

Duh! I thought I tested with an external power supply yesterday, when rnixon asked about the power supply, but I should have pulled out the USB and then I would have realized you have to move the jumper to actually get power externally. What can I say, I'm a software guy. OK running off a 9V brick (...
by tod
Wed May 07, 2014 11:36 am
Forum: NetBurner Hardware
Topic: Trouble Flashing 5272
Replies: 10
Views: 7101

Re: Trouble Flashing 5272

1. Do you have anything connected to the dev board that might interfere with a signal path? 2. Are all the jumpers in factory position? 3. Take out any SD cards. (although that shouldn't matter, but sometimes a bad card can disrupt things). 4. Give the board a good cleaning (bush and compressed air...
by tod
Tue May 06, 2014 5:34 pm
Forum: NetBurner Hardware
Topic: Trouble Flashing 5272
Replies: 10
Views: 7101

Re: Trouble Flashing 5272

Eliminate the impossible, whatever's left no matter how improbable.... I dug out my old (but trustworthy as it turns out) MOD-DEV 100 V1.04 board. Blew off the dust (literally) stuck in the original MOD5272 that was giving me problems, connected the same Ethernet cable and haven't had a problem for ...
by tod
Tue May 06, 2014 5:21 pm
Forum: NetBurner Hardware
Topic: Trouble Flashing 5272
Replies: 10
Views: 7101

Re: Trouble Flashing 5272

Tried a second Mod5272 and I get the same behavior. If I remove the Ethernet cable the rebooting stops. I tried a different Ethernet cable but it behaves the same. I tried an external power supply but it also didn't help. Can some kind of ethernet traffic be causing this?
by tod
Tue May 06, 2014 4:28 pm
Forum: NetBurner Hardware
Topic: Trouble Flashing 5272
Replies: 10
Views: 7101

Re: Trouble Flashing 5272

Ha! You know I write bug-free code, so how could it be my app??? Power is coming from the USB connector. I looked at J2 pins 1 and 2 and I get a reading of 3.26 to 3.33. I built the mod5272 factory demo (because now my confidence is shaken) and downloaded it and on the serial report it reports "...
by tod
Tue May 06, 2014 1:17 pm
Forum: NetBurner Software
Topic: lroundf bug
Replies: 7
Views: 3914

Re: lroundf bug

Thanks Dan, it's always good to know you guys are listening. In case it helps I just created a simple desktop program using Eclipse and the Mingw toolchain (which is using gcc 4.7.2) and the problem does not occur so I suspect at some point a bug was found and fixed in the gcc libs. A good excuse to...
by tod
Tue May 06, 2014 12:06 pm
Forum: NetBurner Software
Topic: lroundf bug
Replies: 7
Views: 3914

Re: lroundf bug

I recreated your code on a MOD5272 and I can replicate it. This is scary. The error seems to only happen when you pass the float (or double) as a parameter. This made me wonder if the value was getting changed or copied incorrectly when passed as a parameter. I wrote this function to pass the float ...
by tod
Tue May 06, 2014 11:14 am
Forum: NetBurner Hardware
Topic: Trouble Flashing 5272
Replies: 10
Views: 7101

Trouble Flashing 5272

For the last couple of days I've been having trouble loading a new program over Ethernet. It will generate a bad checksum and there is no app and I'll boot right into the monitor. I'll power off/on and try a serial port reload and that will fail repeatedly. Often the program looks like it loads you ...
by tod
Mon May 05, 2014 11:34 am
Forum: NetBurner Software
Topic: lroundf bug
Replies: 7
Views: 3914

Re: lroundf bug

Just ran another test with explicit and implicit casts from double and they too worked. Testing NNDK 2.6.4 (which uses gcc 4.2.1) on a MOD5272 cout << "\nround with implicit cast from 0.1 double " << lroundf(0.1); cout << "\nround with implicit cast from 0.9 double " << lroundf(0...
by tod
Mon May 05, 2014 11:13 am
Forum: NetBurner Software
Topic: lroundf bug
Replies: 7
Views: 3914

Re: lroundf bug

lroundf takes a float and you're passing a double. I tested with
lroundf(0.9f) and it returns 1 as it should. In my experience relying on implicit conversions is a bad idea.