coelamon / arduino-tvout

Automatically exported from code.google.com/p/arduino-tvout
0 stars 0 forks source link

Including SD.h library causes TVout to stop working #40

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Include the <SD.h> header on the NTSC demo sketch
2. Run the sketch

What is the expected output? What do you see instead?
Expect to see the demo sketch. Instead see no video output at all. (Removing 
the #include corrects the problem.)

What version of the product are you using? On what operating system?
Arduino 1.0, Debian Linux system, programming a Duemilanove 328 chip.

Sorry if this is a dumb issue -- I'm pretty new to the Arduino platform. 
However, I'd expect that just including a header wouldn't cause this kind of 
change in behavior. Thanks!

Original issue reported on code.google.com by micr....@gmail.com on 31 Dec 2011 at 7:12

GoogleCodeExporter commented 8 years ago
After further tinkering, this appears to have been an out-of-memory problem. 
Getting rid of the FAT filesystem parts of the SD library and using Sd2Out 
directly works fine.

Original comment by micr....@gmail.com on 20 Feb 2012 at 7:24

GoogleCodeExporter commented 8 years ago
Could you tell me how you did that. I know where the SD library is, I just 
wanna know what lines you removed. Or maybe supply your working copy of SD 
library.

Original comment by agnivoh...@gmail.com on 11 Mar 2012 at 10:35

GoogleCodeExporter commented 8 years ago
Sure. I copied the following into my sketch directory...
Sd2Card.cpp Sd2PinMap.h Sd2Card.h SdInfo.h

...then included the following in my sketch...
#include "Sd2PinMap.h"
#include "SdInfo.h"
#include "Sd2Card.h"

Then you should be able to declare an SDCard object and use it:

Sd2Card c;
pinMode(10, OUTPUT); // CS pin
c.init(SPI_HALF_SPEED, CS_pin);
...

No need to remove any lines if I recall correctly.

Original comment by micr....@gmail.com on 12 Mar 2012 at 12:28

GoogleCodeExporter commented 8 years ago
you don't really to do these.I had exactly the same problem and I lowered the 
resolution in void setup()

From: TV.begin(PAL,120,96);

TO : TV.begin(PAL,100,64);

And works like a charm without touching the sd library

The arduino (atmega328 )  has only 2k of sram and lowering the resolution makes 
it to consume less RAM.

Original comment by Mctavish...@gmail.com on 7 May 2012 at 6:57

GoogleCodeExporter commented 8 years ago
This library will not work alongside everything very nicely. The way it works 
requires to strict of timings and uses a lot of memory at "higher" resolutions

Original comment by mdmetzle@gmail.com on 25 Jun 2012 at 1:33