...The line: *(int*)(0x2638) = (*(int*)0xC0220130)&1 ? 0x200000 : 0x100000; should be *(int*)(0x25F4) = (*(int*)0xC0220130)&1 ? 0x200000 : 0x100000; ...
void __attribute__((naked,noinline)) sub_FF864E00_my( ) {asm volatile (" LDR R3, =0x25F4 \n" " CMP R2, #0 \n" " MOV R12, #0 \n" " MOVNE R2, #0x400000 \n" " STR R12, [R3] \n" " STRNE R2, [R3] \n" " CMP R0, #0 \n" " LDRNE R0, [R3] \n" " ORRNE R0, R0, #0x100000 \n" " STRNE R0, [R3] \n" " CMP R1, #0 \n" " LDRNE R0, [R3] \n" " ORRNE R0, R0, #0x200000 \n" " STRNE R0, [R3] \n" " BX LR \n" )}
how do i get the firmware version of my ixus 220hs? recommended to update to the 1.01e?
So perhaps I could update shooting_can_focus() in core/shooting.c to check AFL on cameras that don't have manual focus mode?
Found another crash bug. The universal Tv script blows up when you half-press the shutter.This is on firmware 1.01a, build 1446 from autobuild.
"loc_FF8CBE7C: \n"" LDR R0, =0xFF8C75F4 \n" //"ExpDrv.c"" BL _DebugAssert \n"" B loc_FF8CBDAC \n"
Playback button: short press => REC mode, long press => REVIEW modeOn/Off button: short press => REC mode, long press => REC mode
Playback button: short press => REVIEW mode, long press => REVIEW modeOn/Off button: short press => REVIEW mode, long press => REC mode
*(int*)(0x25F4) = (*(int*)0xC0220130)&1 ? 0x200000 : 0x100000;
*(int*)(0x25F4) = (*(int*)0xC0220130)&1 ? 0x100000 : 0x200000;
In the trunk build for this camera, subject distance override doesn't do anything (as has been mentioned before). The CHDK documentation indicates you have to be in manual focus mode in order for this to work... but the IXUS 220 doesn't _have_ manual focus mode; that's one of the reasons I want CHDK. So I played with forcing it via CAM_CAN_SD_OVER_NOT_IN_MF, and it mostly worked, but the camera crashed occasionally (presumably when its own continuous autofocus clashed with CHDK's override).As I surmised earlier,Quote from: jstanley0 on 03 / December / 2011, 08:38:16So perhaps I could update shooting_can_focus() in core/shooting.c to check AFL on cameras that don't have manual focus mode?That's what I did in the attached builds. And it seems to work. Subject distance override still does nothing when not in AF lock mode... but when you are in AF lock mode (half-press + left arrow), it works, and I haven't seen it crash.(The easiest way to see it work is:Enable AF lock (half-press + left)Enter ALT modePress UP for manual focus togglePress DOWN for infinity focusNow use the zoom lever to go out and back in; it's most noticeable when you go wrap around from 0 (closest) to 65536 (infinity)Note that the property indicating AF lock (11) was not in propset4.h, so I added it. I found that number in http://chdk.wikia.com/wiki/PropertyCase under property set 2, but confirmed that this is correct on the IXUS 220. So perhaps it should go in propset2.h and propset3.h as well.I've attached a patch, but it's probably not ready for the trunk; it needs review from CHDK gurus, especially since it is not an ELPH 300/IXUS 220-specific change.I've also attached builds--if you're interested in manual focus, please give it a try.
Quote from: jstanley0 on 03 / December / 2011, 14:54:30Found another crash bug. The universal Tv script blows up when you half-press the shutter.This is on firmware 1.01a, build 1446 from autobuild.Unless I'm mistaken, this assert in capt_seq.c is what tripped:Code: [Select]"loc_FF8CBE7C: \n"" LDR R0, =0xFF8C75F4 \n" //"ExpDrv.c"" BL _DebugAssert \n"" B loc_FF8CBDAC \n"Guessing this because 0xFF8C75F4 is near the top of the stack trace in the ROM log.Time to brush up on my ARM assembly and see if I can figure out what causes us to go there.
Started by acseven General Discussion and Assistance
Started by ELPH300 « 1 2 » Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)
Started by VincentD « 1 2 3 » General Help and Assistance on using CHDK stable releases
Started by yoshiharra General Help and Assistance on using CHDK stable releases
Started by igb General Help and Assistance on using CHDK stable releases