Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Español / A alguien le funciona mmc1_v2.zip ? on: November 05, 2008, 02:26:01 pm
Hola,

He estado trasteando varios códigos para poder leer y escribir una tarjeta de memoria SD.
Compre un kit en http://www.sensor-networks.org/index.php?page=0827727742 y probando el código que suministran en mmc1_v2.zip, no consigo hacerlo funcionar ya que da un error de compilación en void loop()
¿A alguno le funciona este código?
He estado probando con el código de ladyada y de otros, pero no consigo leer ni escribir en la SD.

Cualquier ayuda es buena.

Saludos
2  Forum 2005-2010 (read only) / Interfacing / Re: Dataflash memory on: November 10, 2008, 05:38:43 am
My results compiling the example under arduino-0012,
Quote
In file included from dataflash.cpp:50:
dataflash.h:70: warning: only initialized variables can be placed into program memory area
dataflash.h:71: warning: only initialized variables can be placed into program memory area
In file included from /home/zumbi/ELECTRONICS/ARDUINO_SOFT/tmp/arduino-0012/hardware/cores/arduino/WProgram.h:4,

/usr/lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:80: error: expected unqualified-id before 'int'

/usr/lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:80: error: expected `)' before 'int'

/usr/lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:80: error: expected `)' before 'int'

/usr/lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:111: error: expected unqualified-id before 'int'

/usr/lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:111: error: expected `)' before 'int'

/usr/lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:111: error: expected `)' before 'int'

/usr/lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:144: error: expected identifier before '(' token

/usr/lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:144: error: expected `)' before '(' token

/usr/lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:144: error: expected ',' or '...' before '(' token

/usr/lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:144: error: expected initializer before ')' token

/usr/lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:176: error: '__compar_fn_t' has not been declared

In file included from /home/zumbi/ELECTRONICS/ARDUINO_SOFT/tmp/arduino-0012/hardware/cores/arduino/WProgram.h:6,

3  Forum 2005-2010 (read only) / Interfacing / Re: SD card interface on: November 05, 2008, 11:22:55 am
Hello,

Executing the above code i get
Code:
starting up                                          
FFFFFFAA 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 FFFFFFFF 0 0 0 0 0 FFF1
MMC write error c: 1F                                

(That was without any MMC/SD Card)

now, i plug microSD card to the arduino and ...
Code:
starting up                                          
FFFFFFAA 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

This time Arduino sends continously '0' thru serial port
4  Forum 2005-2010 (read only) / Exhibition / Re: SD card read/write with Arduino on: November 10, 2008, 04:20:55 am
No, I have not been able to use it yet. It compiles safely but it does not initialize the SD card, so I can not write nor read from it.
5  Forum 2005-2010 (read only) / Exhibition / Re: SD card read/write with Arduino on: November 05, 2008, 07:46:37 am
Hello,

I'm trying to interface arduino uC to a microSD card thru pin 8-13 and GND.

I have been googling and i found this post, ladyada's code[1] based on roland's code[2] and some arduino's vendor code[3].

I have not been able to use SD card yet. The closest i got it is with this post and ladyada's code, but i can not initialize correctly the SD card.

As i read in this post, some people is having same issues, did you resolve it?

I'll be waisting some time on this and kick it, if somebody wants to join, it is welcome.

(I can not post active links)

--

Troubleshooting

Code:

------------------------                            
Data sampling system                                
send r to read disk                                  
send s to start sampling
send q to stop sampling
Ready.....
-------------------------
MMC/SD initialization failed


How should i format SD card? I have tried without partitions and with FAT16
6  Forum 2005-2010 (read only) / Exhibition / Re: Breakfast, serial for Arduino on: November 05, 2008, 11:10:34 am
Hello,

Testing the code, i am getting
Code:
$ ruby arduinoShell.rb /dev/ttyUSB2
arduinoShell.rb:7:in `require': no such file to load -- irb (LoadError)
        from arduinoShell.rb:7
I resolved this installing irb software.

Then i get
Code:
$ ruby arduinoShell.rb /dev/ttyUSB2
./breakfast.rb:6:in `require': no such file to load -- serialport.so (LoadError)
        from ./breakfast.rb:6
        from arduinoShell.rb:9:in `require'
        from arduinoShell.rb:9

I solve this one installing libserialport-ruby

Now, i got the Arduino Shell, i can turn the LED on and off.

Nice job justin catalana and thanks :-)
Pages: [1]