Search results

  1. A

    GP2X Toolchain

    Talking about toolchain ... is there a way to use gdb over usb ethernet ??? its kind of a pain in the ass to debug only using traces. Alain
  2. A

    Problems With Mix_openaudio

    Alright, i still couldn't find how sdl_mixer could use high memory ... the only thing that i supect is a malloc of configuration struc, and from my tests, malloc is not redirected to high memory. still clueless ... EDIT : Ok its not in the MIX_Audio .. its somewhere else because of...
  3. A

    Problems With Mix_openaudio

    Im now working on sound and every since i added the line I get something to have illegal write over in what is supposed to be free area of upper memory. CODE Mix_OpenAudio(22050, AUDIO_S16, 2, 512); According to my memory manager somwhere between 0x3cfffec and 0x3d00000, which is my...
  4. A

    GP2X Work!

    I have a degree in computer science ... I used to work in IFE games for planes and GBA games. Done a couple of projet and after 5 years I quit and enrolled in the canadian army doing ... something ... related to computer security. I don't really hate it. Actually i love it very much, good pay...
  5. A

    Crash In Hw Blitting

    AH ha ... found it ... Actually I have two mmap in my code ... one that map All the Upper memo and skip the reserved zones And One that mmap the FrameBuffer .. I was thinking (read : assuming) the the offset from one zone would be the same using to distinct mmap.
  6. A

    Crash In Hw Blitting

    Me again ... still have problem... however when i try to copy others code it works ... and the only difference i have in mine is that I am using differents zone of upper memory .. 0x20000000 is this consider IN_VIDEO ... somebody told me yes .. but i start to doubt it .. everything work when i...
  7. A

    Crash In Hw Blitting

    I think that most of my trouble comes from the fact that I wanted to use a bitfield struct instead of array and bit manipulation. I think that when I have that kind of struct CODE typedef struct tagTRegGp2xBlitter { vu32 /*DSTCTRL*/BltDstFractionBitUnit : 5; vu32...
  8. A

    Crash In Hw Blitting

    Well i think I find the reason of my white block ... what is exaclty the bit IN_VIDEO ?? If my memory mng Use the upper 32 Meg ... is this consider In_Video ?? ... my assumption is no. So I need to use the FIFO to transfer. now setting that IN_VIDEO bit off, no setting srcAdress and srcPitch...
  9. A

    Crash In Hw Blitting

    Hmm it works now ... and i don't really understand what i'd change. weird... anyway .. the only trouble now is that All I can see is a white block instead of the sprite, a couple of pixel lower. and starting at X going to the left .. but the X_POS bit is set .. i think ehhe. keep working on it
  10. A

    Crash In Hw Blitting

    I am trying to code an HW blitting .. and first thing i figure is that it hang on the very first line ... CODE while(gRegGP2X2DEng->blitter.BltRunBusy); That is when I try to wait to see if its already in use. It also hang the telnet session!! i have to unplug and reboot the gp2x and...
  11. A

    Help Needing With Low-level Double Buffering

    nice try but as far as I know there is nothing wrong with that ... the problem was CODE gRegGP2X->LCD_DisplayAdressLow = u32((m_pFB - vmem) + 0x3101000) & 0xFFFF; gRegGP2X->LCD_DisplayAdressHigh = u32((m_pFB - vmem) + 0x3101000) >> 16...
  12. A

    Help Needing With Low-level Double Buffering

    Wooo hooo .... found it ... damn it wasn't obvious at all !! ... If anyone can find the problem in the flip code that I posted previously, that guy is strong !! I'll post the answer shortly Alain
  13. A

    Pointer Casting: Bug In Arm-gcc?

    im not sure if this can help you ... but as far as I know you cannot read from unaligned source on ARM processor. It was the same thing we i was working on GBA. short -> align on 0x2; long -> align on 0x4; we can read the source as char and copy it in a temp short if you need it in short...
  14. A

    Help Needing With Low-level Double Buffering

    Update I have change some thing after trying to take a look at what is done inside SDL CODE vmem= (u16*)mmap(NULL, 8*1024*1024, PROT_READ|PROT_WRITE, MAP_SHARED, gDevMem, 0x3101000); m_pFB= vmem; m_pBB= vmem + 0x280000; to CODE vmem= (u16*)mmap(NULL, 5*1024*1024...
  15. A

    Help Needing With Low-level Double Buffering

    I can seem to get the Double buffering system to work Here is my init code: CODE gRegGP2X2DEng = (TRegGp2x2DEng*)mmap(0, 0x200, PROT_READ|PROT_WRITE, MAP_SHARED, gDevMem, 0xE0020000); vmem = (u16*)mmap(NULL, 8*1024*1024, PROT_READ|PROT_WRITE, MAP_SHARED, gDevMem...
Back
Top