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 tried with this..

    #include <LPC21xx.H>                                              // LPC2119 MPU Register
    
    /* pototype  section */
    
    
    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)
            IOCLR1 = 0x00010000;                                                                    // Clear Output Pin P1.16 (ON LED)
    
    }
    
    

    But the same thing. Port 1 remained high.
    Can you compile it and post the HEX contents so I can compare?

    thanks a lot

Reply
  • I tried with this..

    #include <LPC21xx.H>                                              // LPC2119 MPU Register
    
    /* pototype  section */
    
    
    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)
            IOCLR1 = 0x00010000;                                                                    // Clear Output Pin P1.16 (ON LED)
    
    }
    
    

    But the same thing. Port 1 remained high.
    Can you compile it and post the HEX contents so I can compare?

    thanks a lot

Children