ELPH300HS aka IXUS220HS - Porting Thread - page 20 - DryOS Development - CHDK Forum

ELPH300HS aka IXUS220HS - Porting Thread

  • 899 Replies
  • 398885 Views
*

Offline tommi2water

  • ***
  • 157
  • IXUS 220 HS Firmware: 1.00c
Re: ELPH300HS aka IXUS220HS - Porting Thread
« Reply #190 on: 24 / November / 2011, 15:56:50 »
Advertisements
How do you determine the firmware revision?

You could do it the same way Sush did it: http://chdk.setepontos.com/index.php?topic=6341.msg76096#msg76096

Quote
... I believe I have 1.01c since the exif in the jpgs says 1.01 revision 3.00 ...

Make a photo and read out the EXIF information from the JPG.

Re: ELPH300HS aka IXUS220HS - Porting Thread
« Reply #191 on: 24 / November / 2011, 16:00:34 »
Can I make keypresses visible on screen to find out which keymapping I have to use?
The key map is all done for you in stub_entry.S.    These things are so easy these days ....
Ported :   A1200    SD940   G10    Powershot N    G16

Re: ELPH300HS aka IXUS220HS - Porting Thread
« Reply #192 on: 24 / November / 2011, 16:01:23 »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: ELPH300HS aka IXUS220HS - Porting Thread
« Reply #193 on: 24 / November / 2011, 16:03:50 »
I had to change in platform/kbd.c:
from: _SleepTask(*((int*)(0x1c40+0x8)));//10);
to:     _SleepTask(*((int*)(0x1c3C+0x8)));//10);
I'm not sure why they do it that way.  This works too : _SleepTask(10) ;

Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline tommi2water

  • ***
  • 157
  • IXUS 220 HS Firmware: 1.00c
Re: ELPH300HS aka IXUS220HS - Porting Thread
« Reply #194 on: 24 / November / 2011, 16:19:52 »
The key map is all done for you in stub_entry.S.    These things are so easy these days ....

Indeed, I remember some years ago when I followed the Porting Thread of DataGhost et al. for the S5IS camera. That was the time when the development for DryOS just started, if I remember correctly. Everything seemed to be much more complicated, at least to get all the addresses collected.

I already moved the key mapping values from stub_entry.S during the beginning of my porting activities. But I didn't remember again. ;)

I'm not really sure if mykbd_task is really running. I can use keys for normal Canon usage but I'm not able to activate the ALT menu.





*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: ELPH300HS aka IXUS220HS - Porting Thread
« Reply #195 on: 24 / November / 2011, 16:29:12 »

I'm not really sure if mykbd_task is really running. I can use keys for normal Canon usage but I'm not able to activate the ALT menu.


Well done :)

<ALT> is normally activated using the Print button which you don't have.
Look at the SX220 / SX230 versions to see what they did - Func + Disp together if I recall correctly.

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)

*

Offline tommi2water

  • ***
  • 157
  • IXUS 220 HS Firmware: 1.00c
Re: ELPH300HS aka IXUS220HS - Porting Thread
« Reply #196 on: 24 / November / 2011, 16:40:17 »
I already tried SET + DISPLAY but no reaction.

Just for testing I mapped PRINT Button to 0x80 which is the same like the UP Button.

But still no reaction.

I think I have to add some debug output in mykbd_task to see if it is really executed.

Can I print some debug messages on the Display or is that to complicated?

Re: ELPH300HS aka IXUS220HS - Porting Thread
« Reply #197 on: 24 / November / 2011, 16:47:51 »
Can I print some debug messages on the Display or is that to complicated?
I keep promising myself to write this down so I don't have to re-invent every time.


Code: [Select]
      extern void draw_string(coord x, coord y, const char *s, color cl);

      char buf[64];

       sprintf(buf,"%s","Test Message");
       draw_string(16,16,buf,MAKE_COLOR(COLOR_BLACK,COLOR_YELLOW));
« Last Edit: 24 / November / 2011, 16:49:29 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline tommi2water

  • ***
  • 157
  • IXUS 220 HS Firmware: 1.00c
Re: ELPH300HS aka IXUS220HS - Porting Thread
« Reply #198 on: 24 / November / 2011, 17:17:04 »
Thanks, that worked fine.

But if I would have used the search function first I would have found enough examples in this forum. Sorry.  ;)

I will continue tomorrow and report here about my investigations.

Re: ELPH300HS aka IXUS220HS - Porting Thread
« Reply #199 on: 24 / November / 2011, 20:12:19 »
But if I would have used the search function first I would have found enough examples in this forum. Sorry.  ;)
No problem - searching the forum would not have answered the question about whether your port is far enough along to print debug messages.

« Last Edit: 24 / November / 2011, 20:51:36 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics