Index: core/main.c===================================================================--- core/main.c (revision 3359)+++ core/main.c (working copy)@@ -247,12 +247,13 @@ camera_info.state.state_shooting_progress = SHOOTING_PROGRESS_DONE; } - i = 0;+ i = 3; -#ifdef DEBUG_PRINT_TO_LCD- sprintf(osd_buf, "%d", cnt ); // modify cnt to what you want to display+//#ifdef DEBUG_PRINT_TO_LCD+ extern int get_uimem_size();+ sprintf(osd_buf, "uimem free: %d", get_uimem_size() ); // modify cnt to what you want to display draw_txt_string(1, i++, osd_buf, conf.osd_color);-#endif+//#endif if (camera_info.perf.md_af_tuning) {Index: platform/a3200/lib.c===================================================================--- platform/a3200/lib.c (revision 3359)+++ platform/a3200/lib.c (working copy)@@ -113,3 +113,11 @@ int vid_get_palette_type() { return 3; } int vid_get_palette_size() { return 256 * 4; }+++int get_uimem_size()+{+ extern int _get_pvm_maxregion(int handle);+ extern int uimem_handle;+ return _get_pvm_maxregion(uimem_handle);+}Index: platform/a3200/sub/100d/stubs_entry_2.S===================================================================--- platform/a3200/sub/100d/stubs_entry_2.S (revision 3359)+++ platform/a3200/sub/100d/stubs_entry_2.S (working copy)@@ -12,3 +12,5 @@ NHSTUB(TurnOnMic, 0xFF8608E8) NHSTUB(TurnOffMic, 0xFF860914) NHSTUB(TurnOffE1, 0xff83bc20)++NHSTUB(get_pvm_maxregion, 0xFF8114CC)Index: platform/a3200/sub/100d/stubs_min.S===================================================================--- platform/a3200/sub/100d/stubs_min.S (revision 3359)+++ platform/a3200/sub/100d/stubs_min.S (working copy)@@ -1 +1,3 @@ #include "stubs_asm.h"++DEF(uimem_handle, 0x30ac)
@reyalpThanks, very interesting.The D10 also has the "usual" 400000 bytes of UI memory, I wonder what could occupy most of it... None of my cameras I tried this on showed such a low amount of free UI mem.
I have a feeling that actually using the built-in printing support could potentially use up significantly more of this memory.
Yes, that seems odd. I thought it might have something to do with the number of images on the card (~800) but deleting them and rebooting didn't seem to make any difference.It would be interesting to know if there is a pattern with camera generation / dryos version. Which cameras did you try?
I admit I haven't gone deep into the direct print menus, and certainly haven't tried to print.
ixus230_elph310hs might be a candidate too: http://chdk.setepontos.com/index.php?topic=11129.msg109393#msg109393
Sadly, I don't get a lot of feedback in the SX230 porting thread,...
..., I would consider replacing the default EXMEM config with ARAM + reduced UI mem if I did...
I have done my very best, but i only have one SX230HS.
But anyway: If there is a chance to get more ram, i will test all you you say i should test.
Started by Microfunguy General Discussion and Assistance
Started by mattkime LUA Scripting
Started by alexakc CHDK Releases
Started by fudgey General Discussion and Assistance
Started by selwonk11 General Help and Assistance on using CHDK stable releases