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
  • Can you compile this code for an LPC2119 ?

    /*****************************************************/
    /* Examples Program For "ET-ARM STAMP LPC2119" Board */
    /* Target MCU : Philips ARM7-LPC2119 */
    /* : X-TAL : 19.6608 MHz */
    /* : Run Speed 58.9824MHz (With PLL) */
    /* Compiler : Keil ARM V2.32a */
    /* Last Update : 1/September/2005 */
    /* Function : Example Use GPIO-1 on Output Mode */
    /* : LED Blink on GPIO1.16 */
    /*****************************************************/

    #include <LPC21xx.H> // LPC2119 MPU Register

    /* pototype section */
    void delay_led(unsigned long int); // Delay Time Function

    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 // while(1) // Loop Continue { IOCLR1 = 0x00010000; // Clear Output Pin P1.16 (ON LED) delay_led(1500000); // Display LED Delay IOSET1 = 0x00010000; // Set Output Pin P1.16 (OFF LED) delay_led(1500000); // Display LED Delay }
    }

    /***********************/
    /* Delay Time Function */
    /* 1-4294967296 */
    /***********************/
    void delay_led(unsigned long int count1)
    { while(count1 > 0) {count1--;} // Loop Decrease Counter

Reply
  • Can you compile this code for an LPC2119 ?

    /*****************************************************/
    /* Examples Program For "ET-ARM STAMP LPC2119" Board */
    /* Target MCU : Philips ARM7-LPC2119 */
    /* : X-TAL : 19.6608 MHz */
    /* : Run Speed 58.9824MHz (With PLL) */
    /* Compiler : Keil ARM V2.32a */
    /* Last Update : 1/September/2005 */
    /* Function : Example Use GPIO-1 on Output Mode */
    /* : LED Blink on GPIO1.16 */
    /*****************************************************/

    #include <LPC21xx.H> // LPC2119 MPU Register

    /* pototype section */
    void delay_led(unsigned long int); // Delay Time Function

    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 // while(1) // Loop Continue { IOCLR1 = 0x00010000; // Clear Output Pin P1.16 (ON LED) delay_led(1500000); // Display LED Delay IOSET1 = 0x00010000; // Set Output Pin P1.16 (OFF LED) delay_led(1500000); // Display LED Delay }
    }

    /***********************/
    /* Delay Time Function */
    /* 1-4294967296 */
    /***********************/
    void delay_led(unsigned long int count1)
    { while(count1 > 0) {count1--;} // Loop Decrease Counter

Children