IXUS160/ELPH160 Porting attempt - page 14 - DryOS Development - CHDK Forum

IXUS160/ELPH160 Porting attempt

  • 497 Replies
  • 232171 Views
*

Offline srsa_4c

  • ******
  • 4451
Re: IXUS160/ELPH160 Porting attempt
« Reply #130 on: 30 / June / 2015, 16:32:00 »
Advertisements
I'm trying to call "return call_event_proc("PTM_GetCurrentItem",ID)" scripts for ID=0x8000..8200, but it returns always -1
When an eventproc returns -1, it usually means that it is not registered. Execute UI.CreatePublic prior to calling the PTM event procedures.
Quote
When I tried to call "return call_func_ptr(0xff8a1464,ID)" it returns some values, but camera crashed on the ID=0x80c6.
The number of these UI properties is detected by the sigfinder, see stubs_entry.S:
Code: [Select]
DEF_CONST(uiprop_count                      ,0x000000c6) // Found @0xff9aeac4Requests for nonexistent properties are usually rewarded with an assert.

I can't give an answer to all those test failures at the moment, but here's a few
3. isobase - reports "set CAM_MARKET_ISO_BASE 200"
CAM_MARKET_ISO_BASE needs to be redefined in platform_camera.h
Quote
4. mftest - reports error at mftest.lua:150 - attempt to compare nil with number
This might have to do with the version control (svn is expected)?

edit:
How much free memory does CHDK report (miscellaneous stuff -> show memory info)?
« Last Edit: 30 / June / 2015, 16:34:57 by srsa_4c »

Re: IXUS160/ELPH160 Porting attempt
« Reply #131 on: 30 / June / 2015, 23:56:40 »
Execute UI.CreatePublic prior to calling the PTM event procedures.

Thank you, works good.

Why not to create standard Lua functions for UI properties, like http://chdk.wikia.com/wiki/CHDK_Scripting_Cross_Reference_Page ?

Quote
Quote
4. mftest - reports error at mftest.lua:150 - attempt to compare nil with number
This might have to do with the version control (svn is expected)?

Probably. I'm using build from adong, and he builds from own git.

Quote
How much free memory does CHDK report (miscellaneous stuff -> show memory info)?
Just after switch on: 3121736, CHDK size: 141408 bytes, loaded at: 0x185CB0
After some shoots: 2990320
After next shoots: still 2990320

« Last Edit: 01 / July / 2015, 00:17:29 by alex73 »

Re: IXUS160/ELPH160 Porting attempt
« Reply #132 on: 01 / July / 2015, 04:25:49 »

Re: IXUS160/ELPH160 Porting attempt
« Reply #133 on: 15 / July / 2015, 13:38:01 »
Hi guys,

I'm looking for a camera to work with CHDK for aerial mapping. I wanted to know if this model (IXUS 160) would work with the porting you are discussing here.

Juan


*

Offline srsa_4c

  • ******
  • 4451
Re: IXUS160/ELPH160 Porting attempt
« Reply #134 on: 15 / July / 2015, 18:24:06 »
I'm looking for a camera to work with CHDK for aerial mapping. I wanted to know if this model (IXUS 160) would work with the porting you are discussing here.
In my opinion: if you need faster shoot rate, this cam is not for you. The official spec is 0.8 shot/sec for continuous shooting, the practical rate will be even slower.

Re: IXUS160/ELPH160 Porting attempt
« Reply #135 on: 18 / July / 2015, 04:42:50 »
Hy guys,

This is a major milestone for drone aerial photography, as IXUS160/ELPH160 is the first 20MP light weight camera (127g) with CHDK. There are quite a lot of people waiting for this CHDK.

Congrats to you who make these developments work!  :)

Re: IXUS160/ELPH160 Porting attempt
« Reply #136 on: 20 / July / 2015, 14:40:18 »
Hi all, awesome work for CHDK! I just bought 2 of the ixus160 and I would like to help. I can test, but can also help with coding or scripting. It is my first project for a camera, but have some experience in other fields.

So how far is this port at this time? Where can I start?


Re: IXUS160/ELPH160 Porting attempt
« Reply #137 on: 20 / July / 2015, 14:43:55 »
Hi.

So how far is this port at this time? Where can I start?

See attachment in the http://chdk.setepontos.com/index.php?topic=12321.msg123174#msg123174 message, and use http://zenoshrdlu.com/stick/stick.html for write firmware to SD card.


*

Offline nafraf

  • *****
  • 1308
Re: IXUS160/ELPH160 Porting attempt
« Reply #138 on: 24 / July / 2015, 21:14:37 »
Thanks to diybookscanner group, now I have access to this camera :)
Based on adong port, I'm testing and preparing the patch to trunk. When I try to compile it. I got this error:
Code: [Select]
stubs_entry.S:57: Error: bad instruction `def_const(uiprop_count ,0x000000c6)'
If uiprop is defined in stubs_min.S, the port compiles. Any ideas?
I found the same problem trying to port ixus145. Thanks.

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: IXUS160/ELPH160 Porting attempt
« Reply #139 on: 24 / July / 2015, 21:42:13 »
Thanks to diybookscanner group, now I have access to this camera :)
Based on adong port, I'm testing and preparing the patch to trunk. When I try to compile it. I got this error:
Code: [Select]
stubs_entry.S:57: Error: bad instruction `def_const(uiprop_count ,0x000000c6)'
If uiprop is defined in stubs_min.S, the port compiles. Any ideas?
I found the same problem trying to port ixus145. Thanks.

If it's defined as 'def_const' (lowercase) in stubs_entry.S it will fail - the macro name is 'DEF_CONST' (uppercase).

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal