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

"Memory card error" for some SD cards

  • 53 Replies
  • 26524 Views
*

Offline srsa_4c

  • ******
  • 4451
Re: "Memory card error" for some SD cards
« Reply #30 on: 23 / November / 2014, 16:46:46 »
Advertisements
@alvm
I missed the info that the error only shows up after shooting. In that case the log will have to be obtained right after the first shooting, preferably on a card that has no pictures.

I have tried to trace the error message (by looking after its ID, 0x108), but it only seems referenced in GUI related routines (that means the cause of error is unknown). I suspect that the GUI is notified via the CtrlSvr task. If you're lucky, the notification will appear in the camera log as some numeric event.

Since "Memory card error" only appears after shooting, you could also try to read/write large files prior to shooting and see whether it triggers the error (reyalp already mentioned this).

One other thing you could try is to make a third contact on the battery dummy and put a resistor between the right pins.

*

Offline reyalp

  • ******
  • 14118
Re: "Memory card error" for some SD cards
« Reply #31 on: 23 / November / 2014, 17:01:15 »
Since "Memory card error" only appears after shooting, you could also try to read/write large files prior to shooting and see whether it triggers the error (reyalp already mentioned this).
Another thought: The IO calls (open, write, close) may fail too. If the camera has filewrite implemented, checking the status of these calls might help narrow down where it happens. LogPrintfs in the filewrite code might also be an option.

Disabling CHDK hooks might also provide some clues, I'd probably check filewrite, capt_seq and then kbd_task.
Don't forget what the H stands for.

*

Offline srsa_4c

  • ******
  • 4451
Re: "Memory card error" for some SD cards
« Reply #32 on: 23 / November / 2014, 17:10:06 »
LogPrintfs in the filewrite code might also be an option.

Disabling CHDK hooks might also provide some clues, I'd probably check filewrite, capt_seq and then kbd_task.
CHDK is not ported to this camera, so he'd have to make a port first (which would be a nice gesture btw).

Re: "Memory card error" for some SD cards
« Reply #33 on: 23 / November / 2014, 17:40:23 »
CHDK is not ported to this camera, so he'd have to make a port first
So what have we been talking about here? A private port? Or something else?
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: "Memory card error" for some SD cards
« Reply #34 on: 23 / November / 2014, 17:53:29 »
Are you using a genuine Canon product?  (and which camera do you have?)

The problem appeared for IXUS145 and repeated for SX520.

There are no published ports for either camera ???

Don't rule out bugs in the ports themselves.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

*

Offline reyalp

  • ******
  • 14118
Re: "Memory card error" for some SD cards
« Reply #35 on: 23 / November / 2014, 19:52:05 »
CHDK is not ported to this camera, so he'd have to make a port first (which would be a nice gesture btw).
He said the problem "only happens with CHDK" ???
Don't forget what the H stands for.

*

Offline alvm

  • ***
  • 123
Re: "Memory card error" for some SD cards
« Reply #36 on: 24 / November / 2014, 05:35:02 »
I'm sorry for my inaccuracy. I'm using not CHDK, but derivated from CHDK small module for camera control using ptp without any GUI and etc.

*

Offline reyalp

  • ******
  • 14118
Re: "Memory card error" for some SD cards
« Reply #37 on: 27 / November / 2014, 15:26:18 »
I'm sorry for my inaccuracy. I'm using not CHDK, but derivated from CHDK small module for camera control using ptp without any GUI and etc.
I'm not clear exactly what is enabled in your PSM builds (I see filewrite exists, not clear if it used), but I think the same advice applies: Try making a diskboots that hook less and less and see if the problem goes away.

If the speculation about the canon firmware behaving differently due to booting a diskboot are correct, then a simple diskboot that doesn't hook anything (beyond preventing a boot loop) should still have the problem. If such a simple diskboot doesn't have the problem, then perhaps it's a side effect of a bug somewhere else in the port.

Also just to be clear: The problem happens whether or not you are connected to PTP?

edit:
Another thought: These kinds of weird errors are commonly caused by typos in the platform / ASM code. Using codegen http://chdk.setepontos.com/index.php?topic=10098.40 is a good way to avoid these.
« Last Edit: 27 / November / 2014, 15:29:52 by reyalp »
Don't forget what the H stands for.


*

Offline alvm

  • ***
  • 123
Re: "Memory card error" for some SD cards
« Reply #38 on: 16 / December / 2014, 15:07:20 »
Also just to be clear: The problem happens whether or not you are connected to PTP?

Hi reyalp,

Thank for your help, I'll defer to your advices. The problem also happens without USB/PTP connection. 

Thanks,
Alex.

*

Offline srsa_4c

  • ******
  • 4451
Re: "Memory card error" for some SD cards
« Reply #39 on: 18 / December / 2014, 18:25:53 »
The problem also happens without USB/PTP connection.
I was not addressed, but I'd like to ask: did you manage to obtain the camera log(s) as I suggested earlier? Also, have you been able to find out whether ordinary file operations remain functional after the error message?
Since none of us is experiencing the issues in question, we really depend on your input.
The PSM source has an unrelated bug (CHDK legacy) you might want to fix: compare localtime() in platform/generic/wrappers.c to our version.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal