PowerShot SX230 HS - Porting Thread - page 11 - General Discussion and Assistance - CHDK Forum supplierdeeply

PowerShot SX230 HS - Porting Thread

  • 686 Replies
  • 184498 Views
Re: PowerShot SX230 HS - Porting Thread
« Reply #100 on: 01 / July / 2011, 15:40:26 »
Advertisements
I think taliesin is busy now a days, No update....
:(



In the time I have I, am working on a problem. Cant quite seam to find the cause. When I take a photo in RAW mode, the camera will crash. Not sure to the cause of it. Will post here when it is fixed.


*

Offline philmoz

  • *****
  • 3123
    • Photos
Re: PowerShot SX230 HS - Porting Thread
« Reply #101 on: 01 / July / 2011, 19:27:30 »

In the time I have I, am working on a problem. Cant quite seam to find the cause. When I take a photo in RAW mode, the camera will crash. Not sure to the cause of it. Will post here when it is fixed.


Crashes saving RAW may be caused by having capt_seq_hook_raw_here in the wrong location in capt_seq.c

The ROMLOG.LOG file may be useful in tracking down camera crashes.
If Lua scripts are working then run the Test/RomLog.Lua script, otherwise use this method - http://chdk.wikia.com/wiki/Canon_Basic/Scripts/Romlog

You may also need the core/main.dump file that corresponds to the build running on the camera.
The ROMLOG will show you what method was being executed when it crashed. The first line contains the original code file name and line number. Search for calls to DebugAssert with this file name and line number being passed as parameters. The entries in the StackDump can also help track the call sequence and parameters being passed - this is where you need the main.dump file so you can trace addresses in CHDK.

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)

*

Offline genie

  • *
  • 43
Re: PowerShot SX230 HS - Porting Thread
« Reply #102 on: 02 / July / 2011, 05:05:41 »
Hey,

I made progress in porting CHDK for SX230 HS Firmware version: GM1.00C (1.0.0.0) .

The camera boots and show CHDK splash screen and many function are working.

If anyone is willing to test it, can be downloaded form http://www.box.net/shared/pundziloovial6pis1v7 at your own risk.

Now i'm working on RAW files. .CRW files are generated, but I can not view them. I have no program for it.
Maybe someone can check whether they are correctly created?

In the generation of badpixel.bin an error occurs. no idea why!

If someone is testing my version and find bugs. Please send me a message.
Please mention, all functions which run correctly.

genie
Sorry for my bad English.I am a Bavarian and German is the only foreign language i speak.

*

Offline genie

  • *
  • 43
Re: PowerShot SX230 HS - Porting Thread
« Reply #103 on: 02 / July / 2011, 05:32:07 »
Hey,

i found a bug.

When ubasic is enabled it crash after shooting one picture.

Is not good for testing.

You can download a version, where ubasic is disabled here: http://www.box.net/shared/4coej4r2b48n7h2kxgxt at your own risk.

Can anyone tell me why it crash after one picture is taken, when ubasic or lua is enabled?

Any help is welcome.

genie
Sorry for my bad English.I am a Bavarian and German is the only foreign language i speak.


*

Offline fe50

  • ******
  • 3105
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: PowerShot SX230 HS - Porting Thread
« Reply #104 on: 02 / July / 2011, 05:33:08 »
Now i'm working on RAW files. .CRW files are generated, but I can not view them. I have no program for it.
Maybe someone can check whether they are correctly created?
You may do a simple test with the rawconvert tool...

#edit:
When ubasic is enabled it crash after shooting one picture.
It looks like there's at least one wrong address in your file I/O routines, check all those addresses (e.g. read, write, open...) in your platform stuff...
« Last Edit: 02 / July / 2011, 05:36:59 by fe50 »

Re: PowerShot SX230 HS - Porting Thread
« Reply #105 on: 02 / July / 2011, 06:05:13 »
@ genie:

Can you modify version 101A made by Taliesin so that capturing function starts in this version too. Currently is shows only CHDK menu.

*

Offline genie

  • *
  • 43
Re: PowerShot SX230 HS - Porting Thread
« Reply #106 on: 02 / July / 2011, 07:06:34 »
Hi fe50,

When ubasic is enabled it crash after shooting one picture.
It looks like there's at least one wrong address in your file I/O routines, check all those addresses (e.g. read, write, open...) in your platform stuff...

Crash is the wrong word: It turn off the camera after one picture is taken. I turn on the camera and take another one picture...

This happens only when ubasic and/or lua is enabled.
Where is the connection between the recording and ubasic/lua?

If not enabled it's ok. It creats one jpeg and one crw file and don't turn off.

genie
Sorry for my bad English.I am a Bavarian and German is the only foreign language i speak.

*

Offline genie

  • *
  • 43
Re: PowerShot SX230 HS - Porting Thread
« Reply #107 on: 02 / July / 2011, 07:13:29 »
Hi abderian2004

@ genie:

Can you modify version 101A made by Taliesin so that capturing function starts in this version too. Currently is shows only CHDK menu.

I dont't anderstand your question!.

This version is for GM1.00C and not for GM 1.01A.

When i run CHDK i can use most of its funktions.(eg. Bracketing Scripts Movie-recording Picture-recordin incl. CRW files...)

So please explain what you mean. (Sorry but my english is not so good!)

genie
Sorry for my bad English.I am a Bavarian and German is the only foreign language i speak.


*

Offline philmoz

  • *****
  • 3123
    • Photos
Re: PowerShot SX230 HS - Porting Thread
« Reply #108 on: 02 / July / 2011, 07:23:18 »
Hi fe50,

When ubasic is enabled it crash after shooting one picture.
It looks like there's at least one wrong address in your file I/O routines, check all those addresses (e.g. read, write, open...) in your platform stuff...

Crash is the wrong word: It turn off the camera after one picture is taken. I turn on the camera and take another one picture...

This happens only when ubasic and/or lua is enabled.
Where is the connection between the recording and ubasic/lua?

If not enabled it's ok. It creats one jpeg and one crw file and don't turn off.

genie


You could be running out of memory - removing ubasic/lua makes CHDK smaller so it does not steal as much of the Canon heap memory from the firmware.

Check the 'Show memory info' option under Miscellaneous stuff menu to see how much free memory is available.

I think funnel had to move CHDK into the EXMEM area on the SX220 because of limited memory in the Canon heap. The SX230 is almost the same camera except for the inclusion of the GPS.

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)

*

Offline genie

  • *
  • 43
Re: PowerShot SX230 HS - Porting Thread
« Reply #109 on: 02 / July / 2011, 07:40:29 »
Hi Phil,

Check the 'Show memory info' option under Miscellaneous stuff menu to see how much free memory is available.

Thanks for your help.

memory info shows Free 60168 Bytes.

Is that to low?

genie

The bug is in RAW-Mode !!
If i turn off RAW then all is OK

I guess: In RAW mode there are many bugs. I have to look for them, but now i have no Idea so far.

Greetings and Thanks so far
genie
 
« Last Edit: 02 / July / 2011, 07:51:04 by genie »
Sorry for my bad English.I am a Bavarian and German is the only foreign language i speak.

 

Related Topics