SX260 HS Porting Thread - page 58 - DryOS Development - CHDK Forum

SX260 HS Porting Thread

  • 642 Replies
  • 206408 Views
*

Offline srsa_4c

  • ******
  • 4451
Re: SX260 HS Porting Thread
« Reply #570 on: 24 / March / 2013, 18:42:24 »
Advertisements
@NormanA
Can you get a romlog? (Miscellaneous Stuff -> Debug Parameters -> Save ROM crash log)
Might be interesting to see what's going on.

Re: SX260 HS Porting Thread
« Reply #571 on: 24 / March / 2013, 18:45:54 »
What happens if you comment-out :-

do { }  while( get_usb_bit() &&  ((int)get_tick_count()-tick < DELAY_TIMEOUT));

Re: SX260 HS Porting Thread
« Reply #572 on: 24 / March / 2013, 19:23:13 »
What happens if you comment-out :-

do { }  while( get_usb_bit() &&  ((int)get_tick_count()-tick < DELAY_TIMEOUT));
Might as well just comment out the call to wait_until_remote_button_is_released().

Ported :   A1200    SD940   G10    Powershot N    G16

Re: SX260 HS Porting Thread
« Reply #573 on: 24 / March / 2013, 19:27:03 »
I was originally using P, but, now I've tried using all modes with both versions of the files and the same thing happens.  If the flash is on, the preflash will fire after the focus flash and the camera will die before I remove the cord.
Just so I understand,  is this the same behavior you see if you try the same test with the download from the autobuild?
Ported :   A1200    SD940   G10    Powershot N    G16


Re: SX260 HS Porting Thread
« Reply #574 on: 24 / March / 2013, 19:32:53 »
@NormanA :  one last try for today if you have a few more minutes to test :

sx260hs-101a-1.2.0-mod3.zip
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SX260 HS Porting Thread
« Reply #575 on: 24 / March / 2013, 19:48:14 »
Well, now, no matter what it's set on, When the cord is plugged in, the focus light fires, then, after a little delay, a picture is taken and the camera doesn't crash when the cord is removed.  Hope this tells you something.

Re: SX260 HS Porting Thread
« Reply #576 on: 24 / March / 2013, 19:49:50 »
Nothing happens when the cord is removed.  Does that mean that sync is off?

Re: SX260 HS Porting Thread
« Reply #577 on: 24 / March / 2013, 19:52:18 »

Might as well just comment out the call to wait_until_remote_button_is_released().



There may be a problem with get_usb_bit()


Re: SX260 HS Porting Thread
« Reply #578 on: 24 / March / 2013, 19:54:23 »
Well, now, no matter what it's set on, When the cord is plugged in, the focus light fires, then, after a little delay, a picture is taken and the camera doesn't crash when the cord is removed.  Hope this tells you something.
Nothing happens when the cord is removed.  Does that mean that sync is off?
Unfortunately,  this confirms that its the call to wait_until_remote_button_is_released() that is causing the problem - or more correctly, where that call is hooked into capt_seq.c.   

The last version I sent you is the stock code from the SVN with the call to wait_until_remote_button_is_released() commented out. 

As the code in wait_until_remote_button_is_released() is common to every CHDK camera,  it seems reasonable that the function is not the problem.  We just have to find a better place to insert the call to it so that we don't [admin: avoid swearing please] off the timing of the rest of the Canon code.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SX260 HS Porting Thread
« Reply #579 on: 24 / March / 2013, 19:58:18 »
There may be a problem with get_usb_bit()
While its possible it seems unlikely.  That's the same code that's used in pretty much every recent camera.  And its the same function used to detect USB press & release for non-sync'd shooting and it work okay there.  I'm still thinking its the delay that's screwing up the rest of the capt_seq task timing. 

One other long shot is that its this (from platform_camera.h) :

Code: [Select]
#define REMOTE_SYNC_STATUS_LED 0xC022C30C  // TODO specifies an LED that turns on while camera waits for USB remote to sync
« Last Edit: 24 / March / 2013, 20:03:08 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics