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

Something wrong with my keil?

Hi, I have tested my ARM7 stamp baord with some of the supplied test HEX files including UART test with Tera Term. All good.

My problem however is when I generate the hex files myself with Keil uv3. Do you have any idea what I possibly could have wrong ?

I am using the supplied source files, startup file, headers etc. When I compile I have 0 errors, 0 warnings and the hex file is produced.

I appreciate any help.

thanks

Parents
  • I corrected the while(1); issue because I had modified the original code and I forgot the infinite loop at the end. I still have nothing working.

    Now I am just putting the Port Low but it is remaining @ 2.1V. How come. This is the code:

    #include <LPC21xx.H>                                              // LPC2119 MPU Register
    
    
    int main(void)
    {
      PINSEL2 &= 0xFFFFFFFC;                                                                    // Makesure GPIO1.16 = GPIO Function
      IODIR1   = 0x00010000;                                                        // Set GPIO1.16 = Output
      IOSET1   = 0x00010000;                                        // Set GPIO1.16 Output Pin (OFF LED)
    
      // Loop Blink LED on GPIO1.16 //
    
        IOCLR1 = 0x00010000;                                                                        // Clear Output Pin P1.16 (ON LED)
            while(1);
    }
    
    This is a screen shot of the options. Is there anything wrong for LPC2119?
    
    

Reply
  • I corrected the while(1); issue because I had modified the original code and I forgot the infinite loop at the end. I still have nothing working.

    Now I am just putting the Port Low but it is remaining @ 2.1V. How come. This is the code:

    #include <LPC21xx.H>                                              // LPC2119 MPU Register
    
    
    int main(void)
    {
      PINSEL2 &= 0xFFFFFFFC;                                                                    // Makesure GPIO1.16 = GPIO Function
      IODIR1   = 0x00010000;                                                        // Set GPIO1.16 = Output
      IOSET1   = 0x00010000;                                        // Set GPIO1.16 Output Pin (OFF LED)
    
      // Loop Blink LED on GPIO1.16 //
    
        IOCLR1 = 0x00010000;                                                                        // Clear Output Pin P1.16 (ON LED)
            while(1);
    }
    
    This is a screen shot of the options. Is there anything wrong for LPC2119?
    
    

Children