SDM 1.80 error on A590IS - Microfunguy's Builds - CHDK Forum

SDM 1.80 error on A590IS

  • 14 Replies
  • 9334 Views
SDM 1.80 error on A590IS
« on: 05 / April / 2009, 05:20:52 »
Advertisements
Hi,
I really like the features you have in SDM and can report the remote sync works well on the A590IS
thanks for all your work.
 
I am trying to make a few small changes to support a multi-camera setup.

I cannot get SDM to build the A590IS 101b

$ PATH=/arm-elf/bin:$PATH make fir
>> Entering to tools
<< Leaving tools
>> Entering to lib
>> Entering to lib/font
<< Leaving lib/font
>> Entering to lib/math
<< Leaving lib/math
>> Entering to lib/ubasic
<< Leaving lib/ubasic
>> Entering to lib/lang
<< Leaving lib/lang
<< Leaving lib
>> Entering to platform
>> Entering to platform/a590
>> Entering to platform/a590/sub
>> Entering to platform/a590/sub/101b
boot.c -> boot.o
stubs_min.S -> stubs_min.o
boot.c capt_seq.c movie_rec.c -> stubs_auto.S
stubs_auto.S -> stubs_auto.o
-> stubs_entry.S
CAUTION! 'stubs_entry.S' is not updated due to target firmware binary not found!

stubs_entry.S -> stubs_entry.o
lib.c -> lib.o
stubs_entry_2.S -> stubs_entry_2.o
capt_seq.c -> capt_seq.o
movie_rec.c -> movie_rec.o
boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o m
ovie_rec.o -> libplatformsub.a
<< Leaving platform/a590/sub/101b
<< Leaving platform/a590/sub
main.c -> main.o
lib.c -> lib.o
wrappers.c -> wrappers.o
In file included from wrappers.c:1:
../generic/wrappers.c:339:3: warning: #warning do something with this! - sizeof(
x[]) must be >= sizeof(struct tm)
../generic/wrappers.c:408:3: warning: #warning do something with this! - sizeof(
de[]) must be >= sizeof(struct dirent)
kbd.c -> kbd.o
kbd.c: In function 'wait_until_remote_button_is_released':
kbd.c:154: warning: suggest parentheses around && within ||
shooting.c -> shooting.o
main.o lib.o wrappers.o kbd.o shooting.o -> libplatform.a
<< Leaving platform/a590
<< Leaving platform
>> Entering to core
gui.c -> gui.o
gui.c:438: warning: initialization from incompatible pointer type
-> main.elf
conf.o: In function `conf_change_alt_mode_button':
conf.c:(.text+0xe2): undefined reference to `kbd_set_alt_mode_key_mask'
collect2: ld returned 1 exit status
make[1]: *** [main.elf] Error 1
make: *** [all-recursive] Error 1

my environment is vista 64, cygwyn and gcc 4.3.2
(following http://chdk.wikia.com/wiki/User:Geekmug/Compiling_CHDK_under_Windows)

CHDK builds and runs, am I missing something?

...

Also having a problem getting a new script to use get_tick_count

@title Test
get_tick_count t
print t

Error:
uBasic:2 Unk stmt




*

Offline zeno

  • *****
  • 891
Re: SDM 1.80 error on A590IS
« Reply #1 on: 05 / April / 2009, 07:12:10 »
I think you must have changed something in camera.h - the A590 does not define an adjustable alt mode button and hence the line that raises that error in conf.c should not be included in the compilation.

As far as the script problem is concerned - try the newer syntax:

  t = get_tick_count
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

Re: SDM 1.80 error on A590IS
« Reply #2 on: 05 / April / 2009, 07:50:02 »
I cannot get SDM to build the A590IS 101b

I have downloaded the source from the website and it compiles OK on my XP system with the ready-packaged windows environment.
For the A590, DISKBOOT.BIN has to be encoded so make a BAT file containing the following :-

encode diskboot.bin diskboot.bin2
pause

Put the file in the BIN folder and run it after the BAT file has been created.
Delete original DISKBOOT.BIN and rename encoded one.

Quote
gui.c:438: warning: initialization from incompatible pointer type

If you can fix that, let me know !

Quote
conf.c:(.text+0xe2): undefined reference to `kbd_set_alt_mode_key_mask'

In include\camera.h, do you have CAM_ADJUSTABLE_ALT_BUTTON set to 1 ?
It should not be, it is not in the source on the website.


Quote

Also having a problem getting a new script to use get_tick_count

That statement is supported and calls 'shooting_get_tick_count()' which returns 'get_tick_count()' (\generic\wrappers.c).
For DRYOS cameras that returns (int)_GetSystemTime(&t);
Stubs_entry.s defines NSTUB(GetSystemTime, 0xffdf1dc8)  (and adds the underline prefix).
that value seems to be correct.
In camera.h, is CAM_DRYOS set to 1, it should be ?



David

« Last Edit: 05 / April / 2009, 07:51:57 by Microfunguy »

Re: SDM 1.80 error on A590IS
« Reply #3 on: 05 / April / 2009, 07:58:13 »
I am trying to make a few small changes to support a multi-camera setup.


The record so far is eleven cameras for creating lenticular stereo prints.

Let me know your changes and if I think they are of wider interest can add them to SDM.


David

Re: SDM 1.80 error on A590IS
« Reply #4 on: 06 / April / 2009, 21:18:14 »
Thanks for the help, camera.h and encode did the trick.

The plan is to use 30 cameras to do a 180 degree shot, so automating as much as possible is a must.
I need to make changes to the remote timeout as we may need to wait alot more than 10 seconds before the shutters will be triggered (wildlife photography)

I have set my script to autostart and detect the presence of 5v on USB line.
If 5v on start then enable_usb_download.
If 0v on start then disable_usb_download and switch to record mode for remote trigger to work.

My biggest problem is if camera switch is in record mode and 5v present then USB remote takes priority and script doesnt run.

If camera switch is in playback mode, then script starts correctly and downloads work, I can download all images using WIA and Powershell, but when the 5v line drops and the the script continues the USB remote switch actives the Set button instead of shoot.

This is part of my current script:

"#START"
is_key k "remote"
if k=1 then goto "download"
goto "shoot"

:download
if k=1 then enable_usb_download
while k=1
"DOWNLOAD"
sleep 1000
is_key k "remote"
wend
"EXIT DOWNLOAD"

:shoot
disable_usb_download
record_mode
sleep_for_seconds 3
"SHOOT"
...
 configure camera settings
...
exit_alt
end

If only I didnt have to press the power button on 30 cams, each time I cycle the power :)
I will let you know how things go.

cheers
martin




Re: SDM 1.80 error on A590IS
« Reply #5 on: 06 / April / 2009, 21:20:13 »
Oh and  now I cant print t :D

@title Test
t=get_tick_count
print t

Error:
uBasic:3 Parse error


*

Offline zeno

  • *****
  • 891
Re: SDM 1.80 error on A590IS
« Reply #6 on: 07 / April / 2009, 04:38:51 »
It may be that last line isn't terminated properly. Try adding a fourth line (an "end" for example).
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

Re: SDM 1.80 error on A590IS
« Reply #7 on: 07 / April / 2009, 06:49:16 »
I need to make changes to the remote timeout as we may need to wait alot more than 10 seconds


Not possible, at least when the tests during SDM's early development were done.

The camera will 'hang'.


David

Re: SDM 1.80 error on A590IS
« Reply #8 on: 16 / April / 2009, 00:02:01 »
Thanks for the warning!, I did some tests and 15 seconds seems to be the longest delay I can get on the A590IS.
SDM build works great.

First test of my cheap Bullet Time rig, 30 cameras with excellent synchronzation thanks to SDM. interpolated up to 300 frames.
http://www.mrbubble.net/images/test1.mpeg

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: SDM 1.80 error on A590IS
« Reply #9 on: 16 / April / 2009, 00:57:38 »
can't download or play the movie. 30 cams, must be worth watching :)

 

Related Topics


SimplePortal © 2008-2014, SimplePortal