IXUS 500 HS - ELPH 520 Porting Thread - page 3 - DryOS Development - CHDK Forum

IXUS 500 HS - ELPH 520 Porting Thread

  • 76 Replies
  • 35935 Views
*

Offline reyalp

  • ******
  • 14126
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #20 on: 06 / February / 2014, 00:13:13 »
Advertisements
At the moment I get low battery warnings when i start chdk. In the code I found this:

Is there a way to find out the right values or is it just try and error?
CHDK low battery warning, Canon firmware?

You can change the CHDK battery setting to show the voltage instead of % (chdk settings->osd settings->battery),  then you can let the battery run down and see how low it goes.

The values should be similar for any camera using the same type of battery, or any battery with the same chemistry and number of cells.

Note that the limits are saved in your CHDK configuration, so you will need to reset it if you change those functions (reset to defaults in the menu, or delete *.CFG from CHDK directory.

Some testing suggestions can be found in  http://chdk.wikia.com/wiki/Testing
Don't forget what the H stands for.

*

Offline Wolle

  • *
  • 22
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #21 on: 06 / February / 2014, 01:11:10 »
First tests showed the following:

No Raw files are saved.
In the Scripts menu when i try to execute "Load Script from file" the menu doesnt change. The scripts menu just changes it´s position on the screen.
The display overlay (Battery icon) is blinking all the time.
Sometimes i can see a File not found warning for a very short time.

*

Offline reyalp

  • ******
  • 14126
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #22 on: 06 / February / 2014, 01:40:38 »
No Raw files are saved.
In the Scripts menu when i try to execute "Load Script from file" the menu doesnt change. The scripts menu just changes it´s position on the screen.
Did you copy the .flt files from your build to the CHDK/modules directory?

Check free memory.
Quote
The display overlay (Battery icon) is blinking all the time.
Again, is the Canon icon or the chdk one? Is it blinking in a regular pattern, or flickering?
Don't forget what the H stands for.

*

Offline Wolle

  • *
  • 22
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #23 on: 06 / February / 2014, 01:54:06 »
No Raw files are saved.
In the Scripts menu when i try to execute "Load Script from file" the menu doesnt change. The scripts menu just changes it´s position on the screen.
Did you copy the .flt files from your build to the CHDK/modules directory?
The build generated a zip file in the bin folder. I copied the contents of the ixus500hs_elph520-100e-1.3.0-r3349-0-full.zip file to the sd card. There are 31 files in the modules directory.

Quote
Check free memory.
Quote
The display overlay (Battery icon) is blinking all the time.
Again, is the Canon icon or the chdk one? Is it blinking in a regular pattern, or flickering?

Its the chdk icon and it is blinking in a regular pattern. I can see it for a short time and then it disappears for a second. When it reappears the icon is on a different position on the screen.

*

Offline Wolle

  • *
  • 22
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #24 on: 06 / February / 2014, 02:34:04 »
The memory info shows:
2429392 Bytes of free memory
151680 chdk memory size
loaded at 0x18993C

Tried to enable the grid. Now the Message "Failed to load grid.flt. File not found" is blinking on the screen.
« Last Edit: 06 / February / 2014, 02:37:00 by Wolle »

*

Offline reyalp

  • ******
  • 14126
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #25 on: 06 / February / 2014, 02:41:05 »
The memory info shows:
2429392 Bytes of free memory
Good, this is plenty.
Quote
Tried to enable the grid. Now the Message "Failed to load grid.flt. File not found" is blinking on the screen.
This confirms there is some problem with the modules or the way they are installed on the card.

Unzipping the contents of the zip *should* get everything in the right place.
Don't forget what the H stands for.

*

Offline Wolle

  • *
  • 22
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #26 on: 06 / February / 2014, 03:25:40 »
The memory info shows:
2429392 Bytes of free memory
Good, this is plenty.
Quote
Tried to enable the grid. Now the Message "Failed to load grid.flt. File not found" is blinking on the screen.
This confirms there is some problem with the modules or the way they are installed on the card.

Unzipping the contents of the zip *should* get everything in the right place.

There are 31 *.flt files in the Modules folder. I think that there is a problem with loading these files.

*

Offline srsa_4c

  • ******
  • 4451
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #27 on: 06 / February / 2014, 11:01:46 »
Its the chdk icon and it is blinking in a regular pattern. I can see it for a short time and then it disappears for a second. When it reappears the icon is on a different position on the screen.
You still have a problem with the bitmap overlay dimensions, that might be the reason for the jumping CHDK overlay.
You most likely need these lines in platform_camera.h (taken from the ixus310 port), because the bitmap overlay has 270 pixel height (the numbers are from the firmware routine @0xff120584 (fw 100d)):
Code: [Select]
    #undef CAM_SCREEN_WIDTH
    #undef CAM_BITMAP_WIDTH
    #undef CAM_BITMAP_HEIGHT
    #define CAM_SCREEN_WIDTH 480 // Width of bitmap screen in CHDK co-ordinates
    #define CAM_BITMAP_WIDTH 960 // Actual width of bitmap screen in bytes
    #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows
Of course make sure there's only one #define CAM_BITMAP_WIDTH in that file.

About the file problem: try another card, after low level format in camera. The camera can get confused by filesystem problems that don't show up on a computer.

*

Offline Wolle

  • *
  • 22
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #28 on: 06 / February / 2014, 13:25:17 »
Current status:

    #undef CAM_BITMAP_WIDTH
    #undef CAM_BITMAP_HEIGHT

    #define CAM_BITMAP_WIDTH 960 // Actual width of bitmap screen in bytes
    #define CAM_BITMAP_HEIGHT 270 // Actual height of bitmap screen in rows

works perfect,

 #define CAM_SCREEN_WIDTH 480 // Width of bitmap screen in CHDK co-ordinates
made the menu too big to be displayed on the screen, parts of the menu were hidden outside of the screen.

*

Offline Wolle

  • *
  • 22
Re: IXUS 500 HS - ELPH 520 Porting Thread
« Reply #29 on: 06 / February / 2014, 14:52:54 »
I uploaded the latest sources and the build file to http://www.codereactor.de/ixus500hs/photos/Desktop.7z

No blinking destop overlay.
Raw images were saved to the folder.
Scripts could be loaded.

Will continue testing tomorrow and at the weekend.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal