my first chdk port attempt - need some help (ixus 40) - page 3 - General Discussion and Assistance - CHDK Forum supplierdeeply

my first chdk port attempt - need some help (ixus 40)

  • 23 Replies
  • 5805 Views
Re: my first chdk port attempt - need some help (ixus 40)
« Reply #20 on: 29 / July / 2008, 15:12:31 »
Advertisements
get_paramaterdata issue:

inside the getparameter function (@0xFF95A55C, i hope its the right one)
there is some asm that does:
 if ((param_id & 0xFFFF) > 0x45) return 0

Chdk calls it with id | 0x4000 -> bigger than 0x45 -> returns no data

The sd400 code has a test for 0x4000 and returns when the bit is set.


however calling getparameter without ORing with 0x4000
leads to system crashes while reading certain parameter ids
and resulting in lots of 0 :((

any ideas ? anybody ?

*

Offline pixeldoc2000

  • ****
  • 356
  • IXUS900Ti 1.00C, IXUS300HS 1.00D
    • pixel::doc homebase
Re: my first chdk port attempt - need some help (ixus 40)
« Reply #21 on: 29 / July / 2008, 16:04:24 »
@fishpepper

The memisosize issue: former versions used 0x3000, chanegd it to 0x4000 like in current chdk trunk code.
Yes, i read about this somewhere. This is because the devs includes more and more features in trunk so chdk needs more memory. current default is: 0x40000.
When build an older source against current trunk chdk simply don't have enough memory, which will cause problems! custom braches even require 0x4D000 or more. Can't find the post about that at the moment...

get_paramaterdata issue:

inside the getparameter function (@0xFF95A55C, i hope its the right one)
there is some asm that does:
 if ((param_id & 0xFFFF) > 0x45) return 0

Chdk calls it with id | 0x4000 -> bigger than 0x45 -> returns no data

The sd400 code has a test for 0x4000 and returns when the bit is set.


however calling getparameter without ORing with 0x4000
leads to system crashes while reading certain parameter ids
and resulting in lots of 0 :((

any ideas ? anybody ?
Sorry, haven't look at your fw/source yet... but i believe, this is beyound me that the moment... i have to get to this point with my port... than maybe i can help...

anyway, thanks for your answer!

Re: my first chdk port attempt - need some help (ixus 40)
« Reply #22 on: 30 / July / 2008, 06:25:47 »
some news:

-played around with the console logging/redirect to sd card -> works somehow, but i get an Event<0> and hang when i use it

fixed:
- set led stuff works now 100%. sd300 doesnt have setuniqueled and is handling the leds a bit different. fix: code my own unique led function in c. allows led on/off and pwm setting for af beam :D

new bugs found:
-seems like there is no IsStrobeCharge completet thing :(
-shooting in scripts make the cam hang. i can hear the focussing thing but then the pic hangs

scripts ok:
- led_test.bas working :)

Re: my first chdk port attempt - need some help (ixus 40)
« Reply #23 on: 30 / July / 2008, 15:32:07 »
please close. see/use
Ixus 40 / SD300 v1.00k - beta version available :)
for the code :)


 

Related Topics