PowerShot SX210 IS - Porting Thread - page 33 - General Discussion and Assistance - CHDK Forum

PowerShot SX210 IS - Porting Thread

  • 589 Replies
  • 301020 Views
*

Offline alvm

  • ***
  • 123
Re: PowerShot SX210 IS - Porting Thread
« Reply #320 on: 29 / October / 2010, 11:03:44 »
Advertisements
Hi asm,

The CHDK menu is white-black-gray in record mode. Is this bug or feature?
Did you check malloc() and strcat() ? I have some problem with these functions. 

Thanks,
Alex.
« Last Edit: 29 / October / 2010, 11:11:21 by alvm »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #321 on: 29 / October / 2010, 11:42:54 »
Hi Alvm,

I did'nt choose a good palete I think, you can change it in the config menu,

I also think these two function works, malloc is used quite a lot through the code, where do you have problems?

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #322 on: 29 / October / 2010, 15:37:05 »
ISO override and Flash crashing in new cams (sd4000 and sx210 for now)

Diging into that I'm trying to isolate the issue in the sx210 it crashes at FF972E14 when its called from

capt_seq_task() -> sub_FF87E4E8_my() -> in loc_FF87E678 -> "BL      sub_FF972E14\n"

This sub is called for flash stuff

*

Offline RaduP

  • *****
  • 926
Re: PowerShot SX210 IS - Porting Thread
« Reply #323 on: 29 / October / 2010, 16:04:58 »
Did you base your SX210 code on some of my SD980 code? If so, that would explain the problems with the flash and ISO overrides. I was never able to get them to work properly, although they didn't crash the camera. I think the problem with the ISO override is that the camera doesn't use the exposure you set, instead it underexposes the pictures by quite a bit in order to get more DR out of them. So it might play with the ISO internally a bit.
The flash was never a priority of mine, so I didn't work too hard at it.


*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #324 on: 29 / October / 2010, 16:13:16 »
I based my code mainly in sx200 , some of your sd980 and some shared discoveries with pixeldoc's ixus300

Iso overrides seems to work in sx210 as far as I tested, just crashed with the flash enabled

I'm testing it in manual mode, and I also think is something related to exposure

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #325 on: 30 / October / 2010, 09:07:25 »
More on flash and Iso override crash

capt_seq_task() -> sub_FF87E4E8_my() -> in loc_FF87E678 -> "BL      sub_FF972E14\n" ->

In this last function seams to crash when calling sub_FF8DC748__MainFlash.c__0

and this sub FF8DC748 seams to be some property works like:

FF8DC7A8  -> 0x108 ->  PROPCASE_TV                       264  //ASM1989 looks like
FF8DC7D0 -> 0x17 ->PROPCASE_AV                        23
FF8DC7F4 -> 0x4F -> PROPCASE_DELTA_SV                  79
FF8DC818 -> 0x51  -> Propcase 81 ?? what for looks 0 allways??
FF8DC83C  ->0x50  -> Propcase 80 ?? what for looks 0 allways??
FF8DC860 -> 0x4D  -> Propcase 77 ?? what for looks 0 allways??
FF8DC884 -> 0x79  -> PROPCASE_FLASH_ADJUST_MODE          121  //ASM1989  dont know allways 1 ??
FF8DC8EC -> 0x8D  -> PROPCASE_FLASH_MANUAL_OUTPUT    141       //ASM1989 looks like moves from 0 to 2

loc_FF8DC924......

FF8DC93C  (*)-> 0x40  -> PROPCASE_FLASH_SYNC_CURTAIN         64     //ASM1989  dont know allways 0 ??   anyway sx210 dosnt seam to have one

FF8DC960 -> 0x130  -> Propcase 304 ?? what for looks 0 allways??

->CRASH somewhere bellow this at FF8DC9B0

loc_FF8DC9D.......
 
FF8DCA0C (*) -> 0x130 -> Propcase 304 ?? what for looks 0 allways??

(*) Other function _sub_FF891554__PropertyCase.c__496, the other without (*) call to sub_FF891600__PropertyCase.c__0

Any clue from someone?
« Last Edit: 30 / October / 2010, 09:09:16 by asm1989 »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #326 on: 31 / October / 2010, 06:45:35 »
diging into unknown propcases:

0x51  -> Propcase 81
its called also from:
sub_FF8B9DA4__Sensitive.c__0 -> ??
sub_FF8C00FC__ExpMode.c__0 -> Exposure mode??
sub_FF8C0208__ExpMode.c__644
sub_FF8DC748__MainFlash.c__0
This  -> sub_FFB3AE5C  calls a sub sub_FFB3986C__PCaseWrapper.c__39 (what is propery Case wrapper for??)

0x50  -> Propcase 80
sub_FF8C00FC__ExpMode.c__0 -> Exposure mode??
sub_FF8C0208__ExpMode.c__644
sub_FF8DC748__MainFlash.c__0
sub_FF9D611C__PBInformation.c__0  -> ?? what for big sub with loot of locs....
This  -> sub_FFB3AE5C  calls a sub sub_FFB3986C__PCaseWrapper.c__39 (what is propery Case wrapper for??)

0x4D  -> Propcase 77
sub_FF852B58__PrcssFil.c__0
sub_FF8B9DA4__Sensitive.c__0 -> ??
sub_FF8C00FC__ExpMode.c__0
sub_FF8C0208__ExpMode.c__644
sub_FF8DC748__MainFlash.c__0
sub_FF904428
sub_FFA630AC
This  -> sub_FFB3AE5C  calls a sub sub_FFB3986C__PCaseWrapper.c__39 (what is propery Case wrapper for??)

0x130  -> Propcase 304
sub_FF8D2690__WBShtInf.c__0 -> looks like White Balance Shoot info ??
sub_FF8D5C58__WBCalcDM.c__0  -> white Balance calculate Distance...??
sub_FF8DC748__MainFlash.c__0
sub_FFA29D54   -> looks like exposure related stuff
 sub_FFA29E98  -> looks like exposure related stuff
sub_FFA29E98   -> looks like exposure related stuff
sub_FFA630AC
sub_FFB3AB2C -> calls a sub sub_FFB3986C__PCaseWrapper.c__39 (what is propery Case wrapper for??)
sub_FFB3E1C8 -> calls a sub sub_FFB3986C__PCaseWrapper.c__39 (what is propery Case wrapper for??)

??

Re: PowerShot SX210 IS - Porting Thread
« Reply #327 on: 31 / October / 2010, 14:19:53 »
@asm1989

Thank you, will be installing today.  There seemed to be some site maintenance that prevented me from participating earlier.

Thank you very much


*

Offline alvm

  • ***
  • 123
Re: PowerShot SX210 IS - Porting Thread
« Reply #328 on: 01 / November / 2010, 10:33:50 »
@asm1989

malloc() is OK, but strcat() has wrong address 0xff813f5c. The address which I've found is 0xff8aec20. Could you fix it, please?

stubs_entry.S from sx210-ixus1000asm1989trunk958

NSTUB(strcat, 0xff813f5c)
.....
NSTUB(strncpy, 0xff813f5c)
« Last Edit: 01 / November / 2010, 10:37:11 by alvm »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #329 on: 02 / November / 2010, 01:48:11 »
Thanks alvm, you are right, confirmed with sx200 too

Version 1.2.4 OUT

Dont know yet what it fixes, but thanks to alvm the function strcat was autodetected incorrectly

http://www.4shared.com/file/SYziH9ts/CHDK-sx210is-ASM1989-RCv124.html

 

Related Topics