PowerShot SX220 HS - Porting Thread - page 11 - General Discussion and Assistance - CHDK Forum supplierdeeply

PowerShot SX220 HS - Porting Thread

  • 563 Replies
  • 202545 Views
*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #100 on: 05 / June / 2011, 16:29:32 »
Advertisements
A new user contacted me yesterday and sent me a new firmware version 101A. A few stubs and addresses needed to be corrected and seems like it's working fine according to him. The only difference was that everything above 0xFF2FC000 was offset from 0x4 to 0x18. The memory addresses all remained the same as 100A.

I uploaded the new binaries for 100A and 101A and compiled two versions, one normal and one that uses 2MB of extended memory for testing purposes. The ExMem one fixes the crash when shooting in DNG but causes a crash in PTP mode.

Binary http://www.zshare.net/download/91053583becbfb0a/

Source http://www.zshare.net/download/910677163f93fe87/
« Last Edit: 06 / June / 2011, 03:48:54 by funnel »

*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #101 on: 06 / June / 2011, 05:15:36 »

*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #102 on: 06 / June / 2011, 10:03:28 »
Ok, I forgot to free the buffer at the end of that code. Now I added ufree(buf) and works fine. But I still don't know why it works when running the code manually but doesn't at startup when conf.restore() is executed.  :-[

Re: PowerShot SX220 HS - Porting Thread
« Reply #103 on: 06 / June / 2011, 14:54:08 »
thanks for you efforts funnel
it will be possible to get manual options (shutter/aperture/iso) on video too?


*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #104 on: 06 / June / 2011, 15:12:55 »
thanks for you efforts funnel
it will be possible to get manual options (shutter/aperture/iso) on video too?
I hope so. I'd like that too.

*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #105 on: 06 / June / 2011, 15:19:57 »
Incredible but I found what was wrong. I had the wrong address for the read() and Read() function in the stubs (FF00ADB8->FF00AD58). I didn't notice that was wrong because it was auto found and the structure of the subroutine was identical in both, they just had two BL's pointed to different subs. EDIT: just one line was different "LDR     R3, [R0,#0x10]" ->" LDR     R3, [R0,#0xC]"

Now it's finally possible to change and save the settings.

Binary http://www.zshare.net/download/91089471680331ab/
« Last Edit: 06 / June / 2011, 15:27:32 by funnel »

Re: PowerShot SX220 HS - Porting Thread
« Reply #106 on: 06 / June / 2011, 18:39:41 »
Hi funnel. Ah! The magic of low level programs... ;)

Thanks a lot for your work. Will test it tomorrow and will tell something.

Saludos!

*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #107 on: 07 / June / 2011, 15:49:23 »
Today I tried to do some experiments with two props that control the video size and fps.

Framerate prop 168(0=30fps, 1=24fps, 2=240fps, 3=120fps)
Resolution prop 171(1=240p, 2=480p, 4=720p, 5=1080p)

I was interested if I can set 1080p to 30fps (default 24fps) and found that if I record a maximum of  2-3 seconds of video everything is ok but when I do longer recordings the camera crashes when stopping the video. The problem is not just in 1080p, same happens if I override 240p, 480p or 720p to 24fps(30 default). Romlog shows a MovWriter.c assert. Maybe this could be fixed someday. For now I don't know how.

And yes, it's impossible to override the slow-motion to higher resolutions, it doesn't even start and crashes.


Re: PowerShot SX220 HS - Porting Thread
« Reply #108 on: 07 / June / 2011, 19:06:11 »
Nice to see you are searching and looking over there. It looks logical that the slow motion mode (or high framerate) it needs a lower resolution because of the sensor, not for the firmware itself. But who knows... 1080@30 fps it doesn't seem too far from the original specification though.

I tested your last version, and could save and load the configuration and so could play a little more than I did until now :)

Then noticed two little things:

1- Efective Focal Lenght in OSD doesn't fit the lens specifications. With scale factor 100 it goes from 28 mm to 304 or so (I don't remember the exact value), using scale factor 115 it goes from 32 mm to 391 mm. I couldn't get a numer that fits the lens specifications.

2- When recording video and pressing the SET button to get focus, the whole camera it crashes: black screen and nothing there. I think everything it's OK in the menu, but I really didn't spent too much time with this one.

Will try more tomorrow.

Saludos!

*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #109 on: 08 / June / 2011, 04:06:28 »
Quote
1- Efective Focal Lenght in OSD doesn't fit the lens specifications. With scale factor 100 it goes from 28 mm to 304 or so (I don't remember the exact value), using scale factor 115 it goes from 32 mm to 391 mm. I couldn't get a numer that fits the lens specifications.
I haven't noticed that, will look into it.

Quote
2- When recording video and pressing the SET button to get focus, the whole camera it crashes: black screen and nothing there. I think everything it's OK in the menu, but I really didn't spent too much time with this one.
I noticed that too. The problem only occurs when you press set af and then try to zoom. The same problem has BerndtR in the IXUS1000 port (romlog ComputerZoom assert).

Another similar crash happens when you try to use the manual focus during video recording and apply fast_zoom. The reason why this is happening is because the fast_zoom key isn't diasabled in alt mode. All ports until this one had physw_status up to physw_status[2], this camera look like has up to physw_status[5] and the value in physw_status[3] changes when using fast_zoom. I tried to fix that without success for now.

 

Related Topics