Go to advanced search

by Timo
Thu Jun 14, 2012 2:56 pm
Forum: C/C++
Topic: gcc optimisation issues
Replies: 7
Views: 2369

Re: gcc optimisation issues

You may try to run your program with valgrind (if available: sudo apt-get install valgrind).

Code: Select all

valgrind ./myprog myparameters
There are several parameters for valgrind, but even without them, it should warn about using uninitialized data. To see better output add -ggdb3 to your gcc options.
by Timo
Sun May 20, 2012 2:57 pm
Forum: General discussion
Topic: Design flaw? Polyfuses for USB current limiting
Replies: 245
Views: 116050

Re: Design flaw? Polyfuses for USB current limiting

mahjongg wrote:Yes soldering the +5V pins of the USB ports together would be safer and easier, we need a picture of that.
These should be the right pins, I think. Please confirm.
connectedUsbVcc.jpeg
Vcc of both USBs connected. (Picturepart taken from http://elinux.org/File:Raspberry-pi-bottom.jpg by Selsinork)
connectedUsbVcc.jpeg (24.91 KiB) Viewed 5481 times
by Timo
Sun May 20, 2012 12:09 pm
Forum: General discussion
Topic: Design flaw? Polyfuses for USB current limiting
Replies: 245
Views: 116050

Re: Design flaw? Polyfuses for USB current limiting

I think bridging F1 and F2s outputs helps. So one USB device could draw up to 200mA or two USB devices can share the current as they need (e.g. 150mA + 50mA). This would be at least an easy home-made way.
fuses12bridgedsmall.jpeg
Outputs of fuses 1 and 2 bridged. (Picturepart taken from http://eames.us/wp-content/uploads/2012/05/DSC_3127.jpg by alexeames.)
fuses12bridgedsmall.jpeg (46.3 KiB) Viewed 6148 times
by Timo
Thu May 10, 2012 5:18 pm
Forum: General discussion
Topic: Cheap powered USB Hub (UK)
Replies: 47
Views: 34741

Re: Cheap powered USB Hub (UK)

<r>I got those two powered hubs:<br/> <br/> <URL url="http://www.conrad.de/ce/de/pro.....AREA_37574">http://www.conrad.de/ce/de/pro.....AREA_37574</URL><br/> <br/> <URL url="http://www.conrad.de/ce/de/pro.....AREA_37574">http://www.conrad.de/ce/de/pro.....AREA_37574</URL><br/> <br/> They are deliver...
by Timo
Sun Nov 13, 2011 8:23 pm
Forum: Off topic discussion
Topic: Pros and Cons of programming language X
Replies: 42
Views: 10124

Re: Pros and Cons of programming language X

<t>C++ in three sections: pro, pro/cons, cons, because some features are pros/cons at the same time.<br/> <br/> Pros:<br/> - Fast<br/> - Widespread<br/> - If you can C++, Java won't be a problem<br/> - (nearly) downwards compatible to C<br/> - OO (but can be avoided)<br/> - Available on all platform...
by Timo
Tue Oct 11, 2011 6:52 pm
Forum: General discussion
Topic: Weapon of choice?
Replies: 23
Views: 3942

Re: Weapon of choice?

<r>I prefer C++, but also Python seems to be a good choice.<br/> <br/> C++ fulfills \"lightweight\", \"free\" and \"relevant\" of the initial posts criteria. But for most people it fails the \"easy to learn\" criterion. But I think it can be clearly taught in the beginning (except the \"using namesp...
by Timo
Wed Aug 31, 2011 1:35 pm
Forum: General discussion
Topic: Additional RAM from USB?
Replies: 30
Views: 8738

Re: Additional RAM from USB?

<r>I think having some extra swap space (or place for /tmp) not on the SD is nice to have. But as mentioned earlier flash-sticks have a limited number of writes. So I searched around for an USB device with volatile memory (DRAM or similar), but I just found a SATA version, which get close: <URL url=...
by Timo
Sat Aug 27, 2011 10:41 am
Forum: General discussion
Topic: LXDE, XFCE or just a plain window manager?
Replies: 28
Views: 11636

Re: LXDE, XFCE or just a plain window manager?

<t>What's about the memory consumption of the GPU? I think I read somewhere in the forum about shared memory. If I'm right, there won't be 128M left on model A.<br/> <br/> And for the initial purpose of this device, there must be enough space to run an IDE and do some memory allocation from within m...

Go to advanced search