A3200IS porting thread - page 13 - DryOS Development - CHDK Forum supplierdeeply

A3200IS porting thread

  • 127 Replies
  • 56050 Views
*

Offline srsa_4c

  • ******
  • 4451
Re: A3200IS porting thread
« Reply #120 on: 03 / November / 2013, 08:54:04 »
Advertisements
capt_seq.c was rewritten to fix a possible bug in exp_drv_task(): "B       sub_FF8BEA04 \n"
Noticed that and now I tested it also: exp_drv_task no longer escapes, extra long exposures work.
I have made other changes to this port: do you mind if I commit them together with yours?

*

Offline nafraf

  • *****
  • 1308
Re: A3200IS porting thread
« Reply #121 on: 03 / November / 2013, 09:13:36 »
I have made other changes to this port: do you mind if I commit them together with yours?
No problem, please commit it with your changes.  Thanks
« Last Edit: 03 / November / 2013, 09:15:07 by nafraf »

*

Offline srsa_4c

  • ******
  • 4451
Re: A3200IS porting thread
« Reply #122 on: 03 / November / 2013, 15:15:09 »
I have made other changes to this port: do you mind if I commit them together with yours?
No problem, please commit it with your changes.  Thanks
Done.

I played a bit with motion detection with mixed results. When the detection cells (grid) are not visible, it appears to work. When they are visible (like in the basic scripts included with CHDK), the cam tends to crash on script start...
I suspect that something's wrong around the current vid_bitmap_refresh() implementation (it's nothing special, other ports use the same code).
Code: [Select]
Exception!! Vector 0x04
Occured Time  2011:01:03 01:08:27
Task ID: 14090269
Task name: SpyTask
Exc Registers:
0x00000100
0x03CB3EDB
0x00000004
0xFF81061C
0x00000300
0x00000001
0x00001A49
0x03CC29AC
0x19980218
0x19980218
0x19980218
0x19980218
0x00800400
0x0000F0AC
0x03CB3F1B
0x03CB3F1B
0x00000033
StackDump:
0x00000100
0x03CB3EDB
0x00000004
0xFF81061C
0x00000300
0x00000001
0x00001A49
0x03CC29AC
0x19980218
0x19980218
0x19980218
0x19980218
0x00800400
0x0000F0AC
0x03CB3F1B
0x03CB3F1B
0x00000033
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x0000F4A0
0x0000F298
0x00000000
0x0000F438
0x00000000
0x00000000
0x0000002F
00155560: UI:ShootState:0x32
00155560: UI:ShootState:0x1
00155560: UI:ClearEventComp
00155560: UI:DisplayPhysicalScreenCBR
00155560: UI:Re ScreenUnLock
00155560: UI:ScreenUnLock
00155570: UI:DisplayPhysicalScreenCBR
00156960: UI:ShootSeqToUI:0x2006:adr:0x200,Para:512
00156960: UI:ShootState:0x10
00156960: UI:ShootState:0x30
00156960: UI:ShtAutoShutterLib_IsActivateSmileShutter:0
00156960: UI:ShtCon_SetPreCapt
00156960: UI:DSIC:62,0
00156960: UI:ScreenLock
00156970: SS:StartFcsChk
00157020: UI:ScreenUnLock
00157030: UI:ShtCon_ResetShootingMode
00157040: UI:ShootState:0x2
00157040: UI:DisplayPhysicalScreenCBR
00157580: UI:ScreenLock
00157580: UI:ScreenUnLock
00157610: UI:DisplayPhysicalScreenCBR
00157680: UI:ScreenLock
00157680: UI:ScreenUnLock
00157690: UI:Button:0x00000820:PressLeftButton
00157690: SS:LoadTest:10
00157690: SS:AFL
00157690: SS:AFL*
00157690: UI:DSIC:3,0
00157690: UI:DSIC:1c,0
00157700: UI:ScreenLock
00157710: UI:Reduce ScreenUnLock
00157710: UI:ScreenLock
00157710: UI:ScreenUnLock
00157720: UI:DisplayPhysicalScreenCBR
00157730: UI:DisplayPhysicalScreenCBR
00157920: UI:Button:0x00000821:UnpressLeftButton
00157930: UI:Button:0x000009A2:UnpressSwOne
00157930: UI:ShtAutoShutterLib_IsActivateSmileShutter:0
00157930: UI:ShtCon_ExitSequenceState
00157930: UI:_ExitSequenceWithoutSw1Check
00157930: SS:StopFcsChk
00157960: SS:CancelPre
00158840: SS:ChargeComplete
00158840: UI:DispSwCon_MuteOffPhysicalScreen
00158840: UI:Window MuteOff
00158840: UI:MuteOffPhysicalScreen
00158840: UI:ShtCon_Deactivate
00158840: UI:DSIC:14,0
00158840: UI:DSIC:60,0
00158840: UI:DispSwCon_TurnOnDisplayDevice
00158840: UI:ScreenLock
00158890: UI:Display_CaptInfo
00158900: UI:ScreenUnLock
00158920: UI:DispSw: Unlock
00158920: UI:DispSwCon:Unlock
00158920: SS:IsQ=1
00158920: UI:TerminateDeliverToZoomController
00158930: UI:ScreenLock
00158930: UI:ScreenUnLock
00158930: UI:OPTICAL_ZOOM_POS
00158940: UI:UnpressZoomLever
00158940: SS:IsQ=1
00158940: UI:ScreenLock
00158940: UI:Reduce ScreenUnLock
00158940: UI:ScreenLock
00158940: UI:Reduce ScreenUnLock
00158940: UI:ShtCon_EntryIdleShoot
00158950: UI:ShootState:0x0
00158950: UI:DisplayPhysicalScreenCBR
00158950: UI:Re ScreenUnLock
00158950: UI:ScreenUnLock
00158950: UI:DisplayPhysicalScreenCBR
00158960: UI:DisplayPhysicalScreenCBR
00160810: UI:ScreenLock
00160810: UI:ScreenUnLock
00160830: UI:DisplayPhysicalScreenCBR
00160910: UI:ScreenLock
00160910: UI:ScreenUnLock
00160930: UI:DisplayPhysicalScreenCBR
00161890: UI:ScreenLock
00161890: UI:ScreenUnLock
00161920: UI:DisplayPhysicalScreenCBR
edit: updated exception log to match the code excerpt below
« Last Edit: 03 / November / 2013, 16:33:07 by srsa_4c »

Re: A3200IS porting thread
« Reply #123 on: 03 / November / 2013, 15:33:37 »
I played a bit with motion detection with mixed results. When the detection cells (grid) are not visible, it appears to work. When they are visible (like in the basic scripts included with CHDK), the cam tends to crash on script start...
I ran into the same thing with my A1200 while converting fudgey's MDFB script to Lua.   Seems to be an issue with calling the MD script while the camera is still focusing so in that case,  I added a two second delay to allow the camera to focus.
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline srsa_4c

  • ******
  • 4451
Re: A3200IS porting thread
« Reply #124 on: 03 / November / 2013, 16:31:48 »
@WW
Could there be a problem with the motion detection code...?

In the exception log, PC points to the instruction right after the libmotiondetect->md_draw_grid() call in gui_script_draw(). And, that instruction is "undefined", which it shouldn't be. Overwritten CHDK code?

Code: [Select]
03cb3ed0 <gui_script_draw>:
 3cb3ed0: b510      push {r4, lr}
 3cb3ed2: f7f5 fd75 bl 3ca99c0 <gui_chdk_draw>
 3cb3ed6: f7f9 ffde bl 3cade96 <mode_get>
 3cb3eda: 24c0      movs r4, #192
 3cb3edc: 00a4      lsls r4, r4, #2
 3cb3ede: 4020      ands r0, r4
 3cb3ee0: 2380      movs r3, #128
 3cb3ee2: 005b      lsls r3, r3, #1
 3cb3ee4: 4298      cmp r0, r3
 3cb3ee6: d006      beq.n 3cb3ef6 <gui_script_draw 0x26>
 3cb3ee8: f7f9 ffd5 bl 3cade96 <mode_get>
 3cb3eec: 4004      ands r4, r0
 3cb3eee: 2380      movs r3, #128
 3cb3ef0: 009b      lsls r3, r3, #2
 3cb3ef2: 429c      cmp r4, r3
 3cb3ef4: d111      bne.n 3cb3f1a <gui_script_draw 0x4a>
 3cb3ef6: 4b0a      ldr r3, [pc, #40] (3cb3f20 <gui_script_draw 0x50>)
 3cb3ef8: 33f4      adds r3, #244
 3cb3efa: 681a      ldr r2, [r3, #0]
 3cb3efc: 4b09      ldr r3, [pc, #36] (3cb3f24 <gui_script_draw 0x54>)
 3cb3efe: 2a00      cmp r2, #0
 3cb3f00: d001      beq.n 3cb3f06 <gui_script_draw 0x36>
 3cb3f02: 2205      movs r2, #5
 3cb3f04: 605a      str r2, [r3, #4]
 3cb3f06: 685a      ldr r2, [r3, #4]
 3cb3f08: 2a00      cmp r2, #0
 3cb3f0a: d006      beq.n 3cb3f1a <gui_script_draw 0x4a>
 3cb3f0c: 3a01      subs r2, #1
 3cb3f0e: 605a      str r2, [r3, #4]
 3cb3f10: 4b05      ldr r3, [pc, #20] (3cb3f28 <gui_script_draw 0x58>)
 3cb3f12: 681b      ldr r3, [r3, #0]
 3cb3f14: 6a1b      ldr r3, [r3, #32]
 3cb3f16: f000 f99d bl 3cb4254 <script_start_gui 0xc8>
 3cb3f1a: bc10      pop {r4} @ <<< *** trashed instruction? ***
 3cb3f1c: bc01      pop {r0}
 3cb3f1e: 4700      bx r0
 3cb3f20: 03cc29ac .word 0x03cc29ac
 3cb3f24: 03cc7b84 .word 0x03cc7b84
 3cb3f28: 03cc68d4 .word 0x03cc68d4
...
 3cb4254: 4718      bx r3
 3cb4256: 46c0      nop

*

Offline srsa_4c

  • ******
  • 4451
Re: A3200IS porting thread
« Reply #125 on: 05 / November / 2013, 16:59:15 »
When the detection cells (grid) are not visible, it appears to work. When they are visible (like in the basic scripts included with CHDK), the cam tends to crash on script start...
Reproduced without the grid.

Re: A3200IS porting thread
« Reply #126 on: 30 / June / 2015, 18:19:25 »
Has anyone had trouble utilizing the A3200IS 1.00A with CHDKPTP?
https://www.assembla.com/spaces/chdkptp/wiki

the 1.00C is running just fine but the 1.00A fails to initialize rsint. (error: init failed)

I was wondering if there could be a problem with the ported versions?

*

Offline srsa_4c

  • ******
  • 4451
Re: A3200IS porting thread
« Reply #127 on: 30 / June / 2015, 19:44:38 »
the 1.00C is running just fine but the 1.00A fails to initialize rsint. (error: init failed)
The 100a and 100c fw versions should be equal from CHDK perspective. You could try
- swapping the two cards
- reset CHDK settings
- reset camera settings in the Canon menu
...


 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal