GPIO table, fw 100dff423aa0: c022c0acff423aa4: c022c0b0ff423aa8: c022c0b4ff423aac: c022c0b8ff423ab0: c022c0bcff423ab4: c022c0c0ff423ab8: c022c0c4ff423abc: c022c0c8ff423ac0: c022c0cc ; #8ff423ac4: c022c0d0ff423ac8: c022c0d4ff423acc: c022c0d8ff423ad0: c022c0dcff423ad4: c022c0e0ff423ad8: c022c0e4ff423adc: c022c0e8ff423ae0: c022c0ecff423ae4: c022c0f0 ; #17ff423ae8: c022c0f4ff423aec: c022c0f8ff423af0: c022c0fcff423af4: c022c100ff423af8: c022c104ff423afc: c022c108ff423b00: c022c10cff423b04: c022c110ff423b08: c022c114ff423b0c: c022c118ff423b10: c022c11cff423b14: c022c120ff423b18: c022c124ff423b1c: c022c128ff423b20: c022c12cff423b24: c022c130ff423b28: c022c134ff423b2c: c022c138ff423b30: c022c13cff423b34: c022c140ff423b38: c022c144ff423b3c: c022c148ff423b40: c022c14cff423b44: c022c150ff423b48: c022c154ff423b4c: c022c158ff423b50: c022c15cff423b54: c022c160ff423b58: c022c164ff423b5c: c022c168ff423b60: c022c16cff423b64: c022c170ff423b68: c022c174ff423b6c: c022c178ff423b70: c022c17cff423b74: c022c180ff423b78: c022c184ff423b7c: c022c188ff423b80: c022c18cff423b84: c022c190ff423b88: c022c194ff423b8c: c022c198ff423b90: c022c19cff423b94: c022c1a0ff423b98: c022c1a4ff423b9c: c022c1a8ff423ba0: c022c1acff423ba4: c022c1b0ff423ba8: c022c1b4ff423bac: c022c1b8ff423bb0: c022c1bcff423bb4: c022c1c0ff423bb8: c022c1c4ff423bbc: c022c1c8ff423bc0: c022c1ccff423bc4: c022c1d0ff423bc8: c022c1d4ff423bcc: c022c1d8ff423bd0: c022c1dcff423bd4: c022c1e0ff423bd8: c022c1e4ff423bdc: c022c1e8ff423be0: c022c01cff423be4: c022c024ff423be8: c022c010ff423bec: c022c014ff423bf0: c022c004ff423bf4: c022c008ff423bf8: c022c020ff423bfc: c022c00cff423c00: c022c018ff423c04: c022c028ff423c08: c022c060ff423c0c: c022c064ff423c10: c022c068ff423c14: c022c06cff423c18: c022c070ff423c1c: c022c074ff423c20: c022c078ff423c24: c022c1fcff423c28: c022c200
Just added a page on my homepage where I will try to update all the intersting files.http://www.codereactor.de/ixus500hs/index.htmlAdded 2014-02-03 stubs_entry.S PRIMARY.BIN dump-ixus500hs_elph520hs-100e.txt
Poked through the addresses from 0xC0220000 to 0xC022F000 without success. So I assume that i need two adresses to turn on the LED.
switch LED onloc_ff12aba4: ; 2 refsff12aba4: push {r4, lr}ff12aba8: mov r4, r0ff12abac: ldrb r0, [r0]ff12abb0: cmp r0, #0ff12abb4: ldreq r0, [r4, #4]ff12abb8: ldreq r1, [pc, #136] ; ff12ac48: (0093d800)ff12abbc: bleq loc_ff024474ff12abc0: mov r0, #0ff12abc4: strb r0, [r4, #9]ff12abc8: pop {r4, pc}switch LED offloc_ff12abcc: ; 3 refsff12abcc: push {r4, lr}ff12abd0: mov r4, r0ff12abd4: ldrb r0, [r0]ff12abd8: cmp r0, #0ff12abdc: ldreq r0, [r4, #4]ff12abe0: ldreq r1, [pc, #100] ; ff12ac4c: (0083dc00)ff12abe4: bleq loc_ff024474ff12abe8: mov r0, #1ff12abec: strb r0, [r4, #9]ff12abf0: pop {r4, pc}GPIO_pokeloc_ff024474: ; 126 refsff024474: ldr r2, [pc, #288] ; ff02459c: (ff423aa0)ff024478: ldr r0, [r2, r0, lsl #2]ff02447c: str r1, [r0]ff024480: bx lr
for c = 0x93d800 to 0x93d80F Poke8(c, 0x46) sprintf(msgstr,"LED address = %0X",c) LCDMsg_SetStr(a,msgstr) BeepDrive(4) Wait(500) next
I didnt write asm code for a very long time so I dont really understand the code that you posted.
#define LED_PR 0xC022C200 void debug_led(int state){ // using power LED, which defaults to on // for debugging turn LED off if state is 1 and on for state = 0 // leaves LED on at end of debugging volatile long *p = (void*)LED_PR; *p = (*p & 0xFFFFFFCF) | ((state) ? 0x00 : 0x20);}
Started by philmoz « 1 2 ... 6 7 » DryOS Development
Started by snort « 1 2 ... 5 6 » DryOS Development
Started by rmackay9 « 1 2 ... 11 12 » DryOS Development
Started by Chairman72 General Discussion and Assistance
Started by pompeiisneaks « 1 2 ... 8 9 » DryOS Development