I add the code but i get linker error, suba_init suba_free suba_alloc is not find.I see not code in changesets for this functions
Not sure how to do this. If I try and run the exmeminf.lua script while the movie is recording the camera stops responding to any buttons (the recording keeps going; but I have to pull the battery to shutdown).
can you please upload this testcode ?then i can add it and look what my camera do.
...#define EXMEM_HEAP_SIZE (1024*1024*4) //allocate 4MB...void exmem_malloc_init() { // pool zero is EXMEM_RAMDISK on d10 void *mem = _exmem_alloc(0,EXMEM_HEAP_SIZE,0); if(mem) { // allocate but don't use mem, fill with test value unsigned long *p = (unsigned long*)mem; int i; for (i=0; i<EXMEM_HEAP_SIZE/4+8; i++) p[i] = 0xDEADBEEF; exmem_heap = 0; //exmem_heap = suba_init(mem,EXMEM_HEAP_SIZE-EXMEM_HEAP_SKIP,1,1024); }}...
...void gui_draw_debug_vals_osd() {#ifdef OPT_DEBUGGING // check exmem allocated memory for corruption (assumes 4MB allocated) unsigned long* p = (unsigned long*)0x07BFFFE0; strcpy(osd_buf,"OK"); unsigned long *f = 0; long cnt = 0; while (p <= (unsigned long*)0x07FFFFFC) { if (p[0] != 0xDEADBEEF) { if (f == 0) f = p; cnt++; } p++; } if (cnt != 0) sprintf(osd_buf, "%8x %8x %d", &f[0], f[0], cnt); draw_txt_string(2, 10, osd_buf, conf.osd_color); // end of check if (conf.debug_misc_vals_show) {...
ok, thanks for info i test that tomorrow.
ok, thanks for info i test that tomorrow.BTW: I test now with 64 megabytes and get 66493712 bytes free.if the camera have really so much RAM that can use.....
Everything that I tried, unrelated to movies, leaves this memory alone.As soon as I started recording a movie the memory changes from 0x07D08A00, and 748,800 words were changed (2,995,200 bytes).I also found that if I start the camera in playback mode and select a movie on the card then it alters 345,600 words (1,382,400 bytes) starting at 0x07E5A200.
=====================================SX30 memory map (00000000 - ffffffff)-------------------------------------00000000 ... 6,400 6.25K ?000018ff00001900 ... 61,368 59.93K Initialised data000108b7000108b8 ... 1,509,780 1.44M Unitialised data0018124b0018124c ... 2,616,756 2.5M Heap / stack ? (if have this much why so little reported free (<300K)) ... CHDK loads here003fffff ? Does heap / stack extend all the way to this address ?00400000 ... 130,023,424 124M Buffers (expanded below)07ffffff08000000 ... Empty ?3fffffff40000000 ... 134,217,728 128M Uncached copy of 00000000 - 07ffffff47ffffff48000000 ... Empty ?bfffffffc0000000 ... ? I/O???????????????? ... Empty ?ff80ffffff810000 ... 8,323,072 7.9M Firmwareffffffff=====================================SX30 memory map (00400000 - 07ffffff) [Buffers]-------------------------------------00400000 ... 32,896,688 31.4M Buffers0235f6af0235f6B0 ... 21,936,096 20.9M RAW buffer 10384AE8f0384AE90 ... 11,967,184 11.4M Buffers043b495f043b4960 .. 21,936,096 20.9M RAW buffer 2058A013f058A0140 ... 38,176,960 36.4M Buffers07d089ff07d08a00 ... 3,110,400 2.96M Video buffers ?07ffffff=====================================
Started by Microfunguy General Discussion and Assistance
Started by mp9_sit Script Writing
Started by Barney Fife Completed and Working Scripts
Started by Lebeau General Discussion and Assistance
Started by CanonBlue General Help and Assistance on using CHDK stable releases