SX50 HS porting thread - page 28 - DryOS Development - CHDK Forum

SX50 HS porting thread

  • 350 Replies
  • 161735 Views
Re: SX50 HS porting thread
« Reply #270 on: 28 / April / 2013, 14:46:34 »
Advertisements
Reading back through this thread,  the capt_seq_hook_set_nr hook was moved back and forth in capt_seq.c to try and overcome various "cRaSh!!"  scenarios posted by radioman193. 
http://chdk.setepontos.com/index.php?topic=8932.msg97326#msg97326

Watching when the value of *nrflag changes it looks like we need to go deeper in the code for the SX50.  I was able to verify that by moving the
Code: [Select]
"BL      capt_seq_hook_set_nr\n"call to either side of the routines and observe which value "wins" once the shot completes.

capt_seq.c for sx50hs 1.00c firmware
Code: [Select]
          "LDR     R0, [R6,#0x9C]\n"
          "TST     R0, #0x10\n"
           "MOV     R0, R4\n"
           "BEQ     loc_FF1F5FC4\n"
           "BL      sub_FF38E63C\n"     <-- path 1 :
           "B       loc_FF1F5FC8\n"
    "loc_FF1F5FC4:\n"
            "BL      sub_FF1F57E0\n"     <-- path 2  : nrflag changed by this routine to "4" when dark frame subtract used
    "loc_FF1F5FC8:\n"
            "MOV     R7, R0\n"
            "B       loc_FF1F5FE0\n"
    "loc_FF1F5FD0:\n"
            "LDR     R0, =0xA430\n"
            "LDR     R0, [R0]\n"
            "CMP     R0, #0\n"
            "MOVNE   R7, #0x1D\n"
    "loc_FF1F5FE0:\n"
            "MOV     R0, R7\n"
            "LDMFD   SP!, {R3-R7,PC}\n"

The spot in the code I flagged as "Path 1" might be where it goes in continuous mode - which would explain lapser's observation about different DFS in continuous mode vs normal mode.

Update :  I confirmed that Path 1 is for continuous shooting by diverting Path 2 there.  It takes two shots when you do that but it still does dark frame subtraction - so something less decides what turns that on/off, its not just the path through the code.

« Last Edit: 28 / April / 2013, 16:09:19 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SX50 HS porting thread
« Reply #271 on: 29 / April / 2013, 23:30:01 »
Same bug confirmed for the SX50's "sister" camera - the G15 : http://chdk.setepontos.com/index.php?topic=9257.msg99940#msg99940

@philmoz :   Any hints on the value that sigfinder finds for :
Code: [Select]
static long *nrflag = (long*)(0xa414+0x0c); Looking at a complete dissassembly for the SX50,  it seems the sigfinger value found for the SX50's nrflag "base" address is only ever used once in the code.  There is a lot of stuff within 16 bytes of that but that exact address (0xA414) is only referenced once (assuming I searched correctly).

I guess I'll add a debug hack to dump thirty two or so bytes plus or minus that address to an array and call it with increasing array offsets at various points in capt_seq.c to see if I can track down if the address is right and where it needs to be set to actually override the use of dark frame subtraction. 

Painful so I'm open to a better suggestion?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: SX50 HS porting thread
« Reply #272 on: 30 / April / 2013, 06:46:14 »
@philmoz :   Any hints on the value that sigfinder finds for :
Code: [Select]
static long *nrflag = (long*)(0xa414+0x0c);

The sigfinder value looks wrong - will need to revisit that code.

Can you try this value and let me know what happens:
Code: [Select]
static long *nrflag = (long*)(0xCD4C);

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 yukia10

  • *
  • 32
  • SX50_100c
Re: SX50 HS porting thread
« Reply #273 on: 30 / April / 2013, 08:34:48 »
Can you try this value and let me know what happens:
Code: [Select]
static long *nrflag = (long*)(0xCD4C);

Phil.

Dark frame subtraction and sports mode are OK with this value. Thanks.

Re: SX50 HS porting thread
« Reply #274 on: 30 / April / 2013, 09:15:01 »
Code: [Select]
static long *nrflag = (long*)(0xCD4C);
Works on the SX50 1.00C.  Sports mode crashed fixed too.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: SX50 HS porting thread
« Reply #275 on: 30 / April / 2013, 20:50:09 »
Code: [Select]
static long *nrflag = (long*)(0xCD4C);
Works on the SX50 1.00C.  Sports mode crashed fixed too.

SVN updated with fix, and re-enabled dark frame subtraction.

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)

Re: SX50 HS porting thread
« Reply #276 on: 30 / April / 2013, 21:15:13 »
SVN updated with fix, and re-enabled dark frame subtraction.
Phil.
Thanks Phil.   I was about to waste a lot of time going down the wrong path trying to move the call to capt_seq_hook_set_nr around so I really appreciate the help.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SX50 HS porting thread : Canon vs CHDK RAW
« Reply #277 on: 11 / May / 2013, 09:02:05 »
Interesting post on dpreview today : FYI: sx50hs raw, Canon vs CHDK.

For the record,  this part c&p here :

Quote
LR v4.4 will process both, but there is NO lens correction for sx50 built in for the  DNG files, I used a sx230hs lens profile with great success, & of course you can tweak it some if you like.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SX50 HS porting thread
« Reply #278 on: 06 / July / 2013, 01:06:02 »


Manual focus to ∞| f3.4| ISO125| 60"| Light painted the foreground with LED 1200lux light at the end of exposure.

1. I pumped ISO80 x 100 but result just 125 not sure what went wrong.
2. 60" was too long, star started to create trail
3. Too much light pollution, Milkyway was not visible to naked eyes. Adjusted heavily in Lightroom5

Re: SX50 HS porting thread
« Reply #279 on: 03 / August / 2013, 23:51:26 »


I just flashed 1.2.0-3001-0 c and i found out the menu has major changes.

1. Old Shutter speed 1/100000 secs to 2048 secs (34min)

2. Old ISO from 80 to 80000

3. Old Aperture 3.4

Are those been revised now to lesser values?



1. Shutter speed (long) only 59 secs

2. ISO to 10000

3. Aperture 3.56

 

Related Topics


SimplePortal © 2008-2014, SimplePortal