Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.

We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.

Thank you for your understanding.


This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

compiler problem....somebody plz solve

i'm working on ARM7TDMI-S cored LPC2138 for which i'm using keil compiler. while programming i came to a strange situation which is as follows. i wrote many programes in keil cross-compiler they worked well and thanx to keil for giving nice software. but for few cases i got SWI inturrupt automatically even programme can't get out of startup instructions while i debug the programme and my programme couldn't go further. Later by changing the programme i solved the problem but i couldn't point out the reason for that problem.... Now again i'm facing the same problem can anyone explain me why the problem comes??

Parents Reply Children
  • Do you have a swi disable pragma in your retarget.c?
    #pragma import(__use_no_semihosting_swi)

    Have you setup the heap in the startup file? Default heap size is 0, so memory allocation functions would fail. Try with 4 K bytes for a start.

  • Thanks for your concerned reply.
    It is now some months ago that i stopped to try to get started with REALVIEW.
    To answer your question i think i've used printf, it's ideal for debugging, but i'm not so sure this time.

    I've just opened a new E-Mail-adress my_test_test_123@web.de especially for this purpose, as i hope someone will send me some helpful Files to help me getting Realview started.

    My CPU is a ADuC7026.
    I'm not sure which startup.s, which retaget.c i should have used.

    To tell the truth i have no idea what this files do, or what a heap is...

    Cincerly yours