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
  • Yes, i have had similar problems when i switched from CARM to Realview. Could'nt solve them, so i use CARM again. I don't have time spending days and days and week's on this. Maybe you will find a solution, i really hope you will post it, so everybody can share it :-)

    Seems a library problem that some basic functions like printf or scanf use librarys which are not especially for your target-CPU. There is a RETARGET.C file, maybe it must be adapted for your target-CPU

    I wish you succes!

Reply
  • Yes, i have had similar problems when i switched from CARM to Realview. Could'nt solve them, so i use CARM again. I don't have time spending days and days and week's on this. Maybe you will find a solution, i really hope you will post it, so everybody can share it :-)

    Seems a library problem that some basic functions like printf or scanf use librarys which are not especially for your target-CPU. There is a RETARGET.C file, maybe it must be adapted for your target-CPU

    I wish you succes!

Children
More questions in this forum