Quote from: waterwingz on 29 / November / 2013, 14:35:17Seems unlikely the port is so broken that something as simple as interval.bas will not run.Not at all... It's marked as alpha for a reason. See the last pages of the porting thread.
Seems unlikely the port is so broken that something as simple as interval.bas will not run.
Ummm ... should this really be available from the autobuild then?
Index: platform/sx210is/kbd.c===================================================================--- platform/sx210is/kbd.c (revision 3251)+++ platform/sx210is/kbd.c (working copy)@@ -287,7 +287,8 @@ //door open a19b -> 219b //power b -> 3- { 0, KEY_SHOOT_FULL , 0x00000002 }, // b -> 9+ { 0, KEY_SHOOT_FULL , 0x00002002 }, // b -> 9+ { 0, KEY_SHOOT_FULL_ONLY , 0x00000002 }, // b -> 9 { 0, KEY_SHOOT_HALF , 0x00002000 }, //a19b -> 819b { 0, KEY_UP , 0x00000080 }, // 9b -> 1b { 0, KEY_DOWN , 0x00000100 }, // 19b -> 09bIndex: platform/sx210is/sub/100c/stubs_entry.S===================================================================--- platform/sx210is/sub/100c/stubs_entry.S (revision 3251)+++ platform/sx210is/sub/100c/stubs_entry.S (working copy)@@ -36,7 +36,7 @@ DEF(canon_menu_active ,0x0000368c) // Found @0xff891c4c DEF(canon_shoot_menu_active ,0x00008511) // Found @0xff9b5a6c DEF(playrec_mode ,0x000033bc) // Found @0xff883e64-//DEF(zoom_status ,0x0000d544) // Found @0xffad4e40, ** != ** stubs_min = 0x0000d524 (0xD524)+DEF(zoom_status ,0x0000d544) // Found @0xffad4e40 DEF(some_flag_for_af_scan ,0x000075d8) // Found @0xff970d5c // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). // each entry contains 3 int value(s), the first is the zoom focus length.@@ -44,7 +44,7 @@ DEF(focus_len_table ,0xfffea1cc) // Found @0xfffea1cc DEF(zoom_busy ,0x00007140) // Found @0xff969464 DEF(focus_busy ,0x00006fc8) // Found @0xff9639d0-//DEF(recreview_hold ,0x00004140) // Found @0xff8a3648, ** != ** stubs_min = 0x00008144 (0x804C+0xF8)+DEF(recreview_hold ,0x00004140) // Found @0xff8a3648 DEF(viewport_buffers ,0xffb64808) // Found @0xff84fd4c DEF(active_viewport_buffer ,0x00002058) // Found @0xff84fae8 // Camera appears to have only 1 RAW buffer @ 0x41db3b80 (Found @0xffb2fb2c)Index: platform/sx210is/sub/100c/stubs_min.S===================================================================--- platform/sx210is/sub/100c/stubs_min.S (revision 3251)+++ platform/sx210is/sub/100c/stubs_min.S (working copy)@@ -1,6 +1,6 @@ #include "stubs_asm.h" -DEF(zoom_status, 0xD524) // ASM1989 09.19.10 -> FFAD4E40 Like in sx20 at FFAAF3EC search for "TerminateDeliverToZoomController"-DEF(recreview_hold, 0x804C + 0xF8) // ASM1989 08.30.2010 looks like FF9A0B38 0x804C but not sure about 0x0C -> Not Ok 09.19.10 FF9A1684 like in sx20 was F8+// DEF(zoom_status, 0xD524) // ASM1989 09.19.10 -> FFAD4E40 Like in sx20 at FFAAF3EC search for "TerminateDeliverToZoomController"+// DEF(recreview_hold, 0x804C + 0xF8) // ASM1989 08.30.2010 looks like FF9A0B38 0x804C but not sure about 0x0C -> Not Ok 09.19.10 FF9A1684 like in sx20 was F8 DEF(enabled_refresh_physical_screen, 0x9D48+0x20) // found at FFA1EE18 and FFA1EFB4 and FFA1EE5C -> ASM1989 08.21.2010 ?guesswork, FFA1EDDC ->0x20 , but maybe 24??? DEF(led_table, 0x24A0 + 0x04) // found at FF860EF0 & FF860EEC -> ASM1989 08.21.2010 double checked
Ran the "ubtest.bas" command - it stops after two pictures.
The test build seems to work - formatted card and copied over all the files including the default scrips. Ran "ubtest.bas" and "interval.bas". BOTH WORK GREAT
Index: platform/sx210is/kbd.c===================================================================--- platform/sx210is/kbd.c (revision 3251)+++ platform/sx210is/kbd.c (working copy)@@ -17,7 +17,7 @@ #define DELAY_TIMEOUT 10000 -#define KEYS_MASK0 (0x00002182) // physw_status[0]+#define KEYS_MASK0 (0x00802182) // physw_status[0] //#define KEYS_MASK1 (0x000FC005) //#define KEYS_MASK1 (0x000FCF05)@@ -280,6 +280,10 @@ } } +// NOP+void kbd_set_alt_mode_key_mask(long key)+{+} static KeyMap keymap[] = { @@ -287,12 +291,13 @@ //door open a19b -> 219b //power b -> 3- { 0, KEY_SHOOT_FULL , 0x00000002 }, // b -> 9+ { 0, KEY_SHOOT_FULL , 0x00002002 }, // b -> 9+ { 0, KEY_SHOOT_FULL_ONLY , 0x00000002 }, // b -> 9 { 0, KEY_SHOOT_HALF , 0x00002000 }, //a19b -> 819b { 0, KEY_UP , 0x00000080 }, // 9b -> 1b { 0, KEY_DOWN , 0x00000100 }, // 19b -> 09b+ { 0, KEY_PLAYBACK ,0x00800000 }, // Found @0xffb6586c, levent 0x601 - // 0x000FC005 #1 Mask // { 1, KEY_UP , 0x00000400 }, // fff -> bff // { 1, KEY_DOWN , 0x00000800 }, // fff -> 7ff@@ -310,6 +315,7 @@ { 1, KEY_MENU , 0x00040000 }, // ASM1989 tested (JH) - fffff -> bffff { 1, KEY_DISPLAY , 0x00020000 }, // ASM1989 tested (JH) - fffff -> dffff { 1, KEY_PRINT , 0x00080000 }, // ASM1989 tested (JH) - fffff -> 7ffff+ { 1, KEY_VIDEO , 0x00080000 }, { 0, 0, 0 } }; /*Index: platform/sx210is/platform_camera.h===================================================================--- platform/sx210is/platform_camera.h (revision 3251)+++ platform/sx210is/platform_camera.h (working copy)@@ -35,6 +35,9 @@ #undef CAM_CAN_SD_OVER_NOT_IN_MF #undef CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO+ #define CAM_ADJUSTABLE_ALT_BUTTON 1+ #define CAM_ALT_BUTTON_NAMES { "Video", "Playback" }+ #define CAM_ALT_BUTTON_OPTIONS { KEY_VIDEO, KEY_PLAYBACK } #define CAM_HAS_VIDEO_BUTTON 1 #define CAM_VIDEO_QUALITY_ONLY 1Index: platform/sx210is/sub/100c/stubs_entry.S===================================================================--- platform/sx210is/sub/100c/stubs_entry.S (revision 3251)+++ platform/sx210is/sub/100c/stubs_entry.S (working copy)@@ -36,7 +36,7 @@ DEF(canon_menu_active ,0x0000368c) // Found @0xff891c4c DEF(canon_shoot_menu_active ,0x00008511) // Found @0xff9b5a6c DEF(playrec_mode ,0x000033bc) // Found @0xff883e64-//DEF(zoom_status ,0x0000d544) // Found @0xffad4e40, ** != ** stubs_min = 0x0000d524 (0xD524)+DEF(zoom_status ,0x0000d544) // Found @0xffad4e40 DEF(some_flag_for_af_scan ,0x000075d8) // Found @0xff970d5c // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). // each entry contains 3 int value(s), the first is the zoom focus length.@@ -44,7 +44,7 @@ DEF(focus_len_table ,0xfffea1cc) // Found @0xfffea1cc DEF(zoom_busy ,0x00007140) // Found @0xff969464 DEF(focus_busy ,0x00006fc8) // Found @0xff9639d0-//DEF(recreview_hold ,0x00004140) // Found @0xff8a3648, ** != ** stubs_min = 0x00008144 (0x804C+0xF8)+DEF(recreview_hold ,0x00004140) // Found @0xff8a3648 DEF(viewport_buffers ,0xffb64808) // Found @0xff84fd4c DEF(active_viewport_buffer ,0x00002058) // Found @0xff84fae8 // Camera appears to have only 1 RAW buffer @ 0x41db3b80 (Found @0xffb2fb2c)Index: platform/sx210is/sub/100c/stubs_min.S===================================================================--- platform/sx210is/sub/100c/stubs_min.S (revision 3251)+++ platform/sx210is/sub/100c/stubs_min.S (working copy)@@ -1,6 +1,6 @@ #include "stubs_asm.h" -DEF(zoom_status, 0xD524) // ASM1989 09.19.10 -> FFAD4E40 Like in sx20 at FFAAF3EC search for "TerminateDeliverToZoomController"-DEF(recreview_hold, 0x804C + 0xF8) // ASM1989 08.30.2010 looks like FF9A0B38 0x804C but not sure about 0x0C -> Not Ok 09.19.10 FF9A1684 like in sx20 was F8+// DEF(zoom_status, 0xD524) // ASM1989 09.19.10 -> FFAD4E40 Like in sx20 at FFAAF3EC search for "TerminateDeliverToZoomController"+// DEF(recreview_hold, 0x804C + 0xF8) // ASM1989 08.30.2010 looks like FF9A0B38 0x804C but not sure about 0x0C -> Not Ok 09.19.10 FF9A1684 like in sx20 was F8 DEF(enabled_refresh_physical_screen, 0x9D48+0x20) // found at FFA1EE18 and FFA1EFB4 and FFA1EE5C -> ASM1989 08.21.2010 ?guesswork, FFA1EDDC ->0x20 , but maybe 24??? DEF(led_table, 0x24A0 + 0x04) // found at FF860EF0 & FF860EEC -> ASM1989 08.21.2010 double checked
I may have missed something...
Started by HarpoMa « 1 2 ... 58 59 » General Discussion and Assistance
Started by RoaR30 Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)
Started by CanonBlue General Chat
Started by apctjb « 1 2 » CHDK Releases
Started by mlvitor Script Writing