"Memory card error" for some SD cards - page 2 - DryOS Development - CHDK Forum supplierdeeply

"Memory card error" for some SD cards

  • 53 Replies
  • 16086 Views
*

Offline alvm

  • ***
  • 123
Re: "Memory card error" for some SD cards
« Reply #10 on: 22 / November / 2014, 17:34:19 »
Advertisements
What camera are you using?

IXUS145.

Re: "Memory card error" for some SD cards
« Reply #11 on: 22 / November / 2014, 17:45:42 »
I'm sticking with my "cheap power supply" and "firmware update" higher voltage threshold theory at this point.

Edit : see Battery shutdown voltages with CHDK and without CHDK
« Last Edit: 01 / October / 2015, 20:43:24 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Online reyalp

  • ******
  • 13353
Re: "Memory card error" for some SD cards
« Reply #12 on: 22 / November / 2014, 17:48:07 »
Do other similar large IOs fail? Like if you try to upload a camera jpeg?
Don't forget what the H stands for.

*

Offline alvm

  • ***
  • 123
Re: "Memory card error" for some SD cards
« Reply #13 on: 22 / November / 2014, 18:00:06 »
Do other similar large IOs fail? Like if you try to upload a camera jpeg?

Unfortunately I can't make any other large IOs.


*

Online reyalp

  • ******
  • 13353
Re: "Memory card error" for some SD cards
« Reply #14 on: 22 / November / 2014, 18:23:40 »
Unfortunately I can't make any other large IOs.
You can't run a script or add some C code to write() some large chunk of memory? Or do you mean it fails?
Don't forget what the H stands for.

*

Offline alvm

  • ***
  • 123
Re: "Memory card error" for some SD cards
« Reply #15 on: 22 / November / 2014, 18:33:59 »
add some C code to write() some large chunk of memory? Or do you mean it fails?

I'll try use write(). GetLogToFile fails.

*

Offline srsa_4c

  • ******
  • 4426
Re: "Memory card error" for some SD cards
« Reply #16 on: 22 / November / 2014, 19:17:46 »
Once the cam has decided that the memory card is not functional, I don't expect any file operation to succeed.

@alvm

Try these methods:
- load your program as a firmware update (*.FI2)
OR
- start the cam with a long press on the "ON/OFF" button or playback button

Please report if either of the above methods allows you to start without getting the error.

Above is based on these hints.

*

Offline alvm

  • ***
  • 123
Re: "Memory card error" for some SD cards
« Reply #17 on: 23 / November / 2014, 02:10:10 »
Once the cam has decided that the memory card is not functional, I don't expect any file operation to succeed.

When camera do it? There aren't any messages at start.

@alvm

Try these methods:
- load your program as a firmware update (*.FI2)
OR
- start the cam with a long press on the "ON/OFF" button or playback button

Please report if either of the above methods allows you to start without getting the error.

Above is based on these hints.

Second method (long press) doesn't help.
« Last Edit: 23 / November / 2014, 02:14:27 by alvm »


*

Offline srsa_4c

  • ******
  • 4426
Re: "Memory card error" for some SD cards
« Reply #18 on: 23 / November / 2014, 07:00:23 »
Once the cam has decided that the memory card is not functional, I don't expect any file operation to succeed.
When camera do it? There aren't any messages at start.
I mean, if you see "Memory card error" on screen, the camera already thinks that the card doesn't work and will not attempt to read or write it.
Quote
Second method (long press) doesn't help.
It's a different issue then.

Since you have a computer connected to the camera's UART, try capturing and comparing the camera log (with ShowCameraLog) when the camera starts in playback mode
- with the battery
- with external power
make logs without and with starting a diskboot. Perhaps the difference shows up in the logs. Use one of the problematic cards for these tests.

You could also dump the lower part (between 0x1900 and MEMISOSTART) of RAM (I think drysh has a command to do it) and compare it.

*

Offline ahull

  • *****
  • 634
Re: "Memory card error" for some SD cards
« Reply #19 on: 23 / November / 2014, 08:45:30 »
I'm sticking with my "cheap power supply" and "firmware update" higher voltage threshold theory at this point.

Sounds like a pretty good theory to me. We would need an oscilloscope on the output of the PSU to be certain, but I have seen some pretty strange behaviour from electronic gizmos when using particularly noisy power supplies. SD card lock-ups would not surprise me in the slightest.

The fact that it works perfectly on the battery suggests you are most probably correct.
My guess is that there is some sort of high frequency noise getting through to the camara from the PSU, so perhaps a few filter caps across the output might fix it.

Alternatively, try a different brand of cheap PSU. The quality varies enormously across the range of available PSU. Some actually work surprisingly well (where the design has been pinched from a higher cost product perhaps), others are dreadful. One or two are down right dangerous.

 

Related Topics