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

GNU and uVISION3

I am trying to use GNU toolset with uvision3 for MCB2103 board.
I am getting following error when I try to build a project or compile a file.

ERROR: Can't excute 'as'

ERROR: Can't excute 'gcc'

I installed gnu tools, select gnu tools in 'component' under project menu.

What setting am I missing?

  • i am using the mocrovision3 for LPC2101 and after adding the stsrtup.s file and my source file to the target folder i builded the target but is showed a error saying "could not load file 'c/keil/dd/dd.AFX'" nad debugger aborted.
    please can anyone tell me the settings needed to fix it??

  • Hi,

    in Project -> Components, Environment and Books -> Folders/Extensions You gotta check "Use GNU Compiler", in "GNU-toll-prefix" put "arm-elf-" and in "Cygnus folder" put "C:\Program Files\GNUARM\" (I use GNUARM "http://www.gnuarm.org/" binutils "bu-2.16.1_gcc-4.0.2-c-c++_nl-1.14.0_gi-6.4.exe")

    You will have to use a different startup.s too I believe its the one in "c:\Keil\ARM\GNU\Examples\Blinky\" And You will have to modify exceptions vectors if You wanna use IRQ or SWI:

    Vectors:        LDR     PC, Reset_Addr
                    LDR     PC, Undef_Addr
                    LDR     PC, SWI_Addr         //  !!! SWI
                    LDR     PC, PAbt_Addr
                    LDR     PC, DAbt_Addr
                    NOP                            /* Reserved Vector */
    #               LDR     PC, IRQ_Addr
                    LDR     PC, [PC, #-0x0FF0]     // !!! Go to VIC
                    LDR     PC, FIQ_Addr
    
    Reset_Addr:     .word   Reset_Handler
    Undef_Addr:     .word   Undef_Handler
    SWI_Addr:       .word   vPortYieldProcessor       /* SWI */
    PAbt_Addr:      .word   PAbt_Handler
    DAbt_Addr:      .word   DAbt_Handler
                    .word   0                      /* Reserved Address */
    IRQ_Addr:       .word   IRQ_Handler
    FIQ_Addr:       .word   FIQ_Handler
    
    

    Enjoy. Mirek

    PS don't You have working example of SPI using IRQ for LPC21XX??? http://www.keil.com/forum/docs/thread7911.asp